瀏覽代碼

test: Removed first_day_of_week test case

version-14
Komal-Saraf0609 3 年之前
父節點
當前提交
27cbcc3e8d
共有 1 個文件被更改,包括 0 次插入48 次删除
  1. +0
    -48
      cypress/integration/control_date.js

+ 0
- 48
cypress/integration/control_date.js 查看文件

@@ -68,52 +68,4 @@ context('Date Control', () => {
//Verifying if clicking on "Today" button matches today's date
cy.get_field('date', 'Date').should('have.value', todays_date);
});

it('Configuring first day of the week', () => {
//Visiting "System Settings" page
cy.visit('/app/system-settings/System%20Settings');

//Visiting the "Date and Number Format" section
cy.contains('Date and Number Format').click();

//Changing the configuration for "First day of the week" field
cy.get('select[data-fieldname="first_day_of_the_week"]').select('Tuesday');
cy.get('.page-head .page-actions').findByRole('button', {name: 'Save'}).click();
cy.new_form('Test Date Control');
cy.get_field('date', 'Date').click();

//Checking if the first day shown in the datepicker is the one which is configured in the System Settings Page
cy.get('.datepicker--days-names').eq(0).should('contain.text', 'Tu');
cy.visit('/app/doctype');

//Adding filter in the doctype list
cy.add_filter();
cy.get('.fieldname-select-area').type('Created On{enter}');
cy.get('.filter-field > .form-group > .input-with-feedback').click();

//Checking if the first day shown in the datepicker is the one which is configured in the System Settings Page
cy.get('.datepicker--days-names').eq(0).should('contain.text', 'Tu');

//Adding event
cy.visit('/app/event');
cy.click_listview_primary_button('Add Event');
cy.get('textarea[data-fieldname=subject]').type('Test');
cy.fill_field('starts_on', '01-01-2022 00:00:00', 'Datetime');
cy.click_listview_primary_button('Save');
cy.visit('/app/event');
cy.get('.custom-btn-group > .btn').click();

//Opening Calendar view for the event created
cy.get('[data-view="Calendar"] > .grey-link').click();

//Checking if the calendar view has the first day as the configured day in the System Settings Page
cy.get('.fc-head-container').eq(0).should('contain.text', 'Tue');

//Deleting the created event
cy.visit('/app/event');
cy.get('.list-row-checkbox').eq(0).click();
cy.get('.actions-btn-group > .btn').contains('Actions').click();
cy.get('.actions-btn-group > .dropdown-menu [data-label="Delete"]').click();
cy.click_modal_primary_button('Yes');
});
});

Loading…
取消
儲存