diff --git a/cypress/integration/control_date.js b/cypress/integration/control_date.js index 0feffbb05d..35c585306c 100644 --- a/cypress/integration/control_date.js +++ b/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'); - }); }); \ No newline at end of file