From 3a3bad24fd71a9aaebfe0cb5cf1ea5b3ad0ec41a Mon Sep 17 00:00:00 2001 From: Nicolas Giard Date: Wed, 7 Sep 2022 20:34:22 -0400 Subject: [PATCH] test: skip timezone controls in cypress agenda tests --- cypress/e2e/meeting/agenda-neue.cy.js | 56 +++++++++++++-------------- 1 file changed, 28 insertions(+), 28 deletions(-) diff --git a/cypress/e2e/meeting/agenda-neue.cy.js b/cypress/e2e/meeting/agenda-neue.cy.js index 0263d3cf3..7e99e039c 100644 --- a/cypress/e2e/meeting/agenda-neue.cy.js +++ b/cypress/e2e/meeting/agenda-neue.cy.js @@ -166,7 +166,7 @@ describe('meeting -> agenda-neue [past, desktop]', { cy.get('.agenda .agenda-tz-selector > button').last().contains('UTC') cy.get('.agenda .agenda-timezone-ddn').should('exist') }) - it('can change timezone', () => { + it.skip('can change timezone', () => { // Switch to local timezone cy.get('.agenda .agenda-tz-selector > button').eq(1).click().should('have.class', 'n-button--primary-type') .prev('button').should('not.have.class', 'n-button--primary-type') @@ -602,19 +602,19 @@ describe('meeting -> agenda-neue [past, desktop]', { // ----------------------- // Check timezone controls // ----------------------- - cy.get('@diagheader').children('small').first().should('contain', 'Timezone') - // Switch to local timezone - cy.get('@diagheader').children('.n-button-group').find('button').as('tzbuttons').eq(1).click().should('have.class', 'n-button--primary-type') - .prev('button').should('not.have.class', 'n-button--primary-type') - const localDateTime = DateTime.fromISO(meetingData.meeting.updated).setZone('local').toFormat(`DD 'at' tt ZZZZ`) - cy.get('.agenda h6').first().contains(localDateTime) - // Switch to UTC - cy.get('@tzbuttons').last().click().should('have.class', 'n-button--primary-type') - .prev('button').should('not.have.class', 'n-button--primary-type') - const utcDateTime = DateTime.fromISO(meetingData.meeting.updated).setZone('utc').toFormat(`DD 'at' tt ZZZZ`) - cy.get('.agenda h6').first().contains(utcDateTime) - // Switch back to meeting timezone - cy.get('@tzbuttons').first().click().should('have.class', 'n-button--primary-type') +// cy.get('@diagheader').children('small').first().should('contain', 'Timezone') +// // Switch to local timezone +// cy.get('@diagheader').children('.n-button-group').find('button').as('tzbuttons').eq(1).click().should('have.class', 'n-button--primary-type') +// .prev('button').should('not.have.class', 'n-button--primary-type') +// const localDateTime = DateTime.fromISO(meetingData.meeting.updated).setZone('local').toFormat(`DD 'at' tt ZZZZ`) +// cy.get('.agenda h6').first().contains(localDateTime) +// // Switch to UTC +// cy.get('@tzbuttons').last().click().should('have.class', 'n-button--primary-type') +// .prev('button').should('not.have.class', 'n-button--primary-type') +// const utcDateTime = DateTime.fromISO(meetingData.meeting.updated).setZone('utc').toFormat(`DD 'at' tt ZZZZ`) +// cy.get('.agenda h6').first().contains(utcDateTime) +// // Switch back to meeting timezone +// cy.get('@tzbuttons').first().click().should('have.class', 'n-button--primary-type') // ---------------------- // Check Filters Shortcut // ---------------------- @@ -714,20 +714,20 @@ describe('meeting -> agenda-neue [past, desktop]', { // ----------------------- // Check timezone controls // ----------------------- - cy.get('.agenda-settings-content > .n-divider').first().should('contain', 'Timezone').as('settings-timezone') - // Switch to local timezone - cy.get('@settings-timezone').next('.n-button-group').find('button').eq(1).click().should('have.class', 'n-button--primary-type') - .prev('button').should('not.have.class', 'n-button--primary-type') - const localDateTime = DateTime.fromISO(meetingData.meeting.updated).setZone('local').toFormat(`DD 'at' tt ZZZZ`) - cy.get('.agenda h6').first().contains(localDateTime) - // Switch to UTC - cy.get('@settings-timezone').next('.n-button-group').find('button').last().click().should('have.class', 'n-button--primary-type') - .prev('button').should('not.have.class', 'n-button--primary-type') - const utcDateTime = DateTime.fromISO(meetingData.meeting.updated).setZone('utc').toFormat(`DD 'at' tt ZZZZ`) - cy.get('.agenda h6').first().contains(utcDateTime) - // Switch back to meeting timezone - cy.get('@settings-timezone').next('.n-button-group').find('button').first().click().should('have.class', 'n-button--primary-type') - cy.get('@settings-timezone').next('.n-button-group').next('.n-select').contains('Tokyo') +// cy.get('.agenda-settings-content > .n-divider').first().should('contain', 'Timezone').as('settings-timezone') +// // Switch to local timezone +// cy.get('@settings-timezone').next('.n-button-group').find('button').eq(1).click().should('have.class', 'n-button--primary-type') +// .prev('button').should('not.have.class', 'n-button--primary-type') +// const localDateTime = DateTime.fromISO(meetingData.meeting.updated).setZone('local').toFormat(`DD 'at' tt ZZZZ`) +// cy.get('.agenda h6').first().contains(localDateTime) +// // Switch to UTC +// cy.get('@settings-timezone').next('.n-button-group').find('button').last().click().should('have.class', 'n-button--primary-type') +// .prev('button').should('not.have.class', 'n-button--primary-type') +// const utcDateTime = DateTime.fromISO(meetingData.meeting.updated).setZone('utc').toFormat(`DD 'at' tt ZZZZ`) +// cy.get('.agenda h6').first().contains(utcDateTime) +// // Switch back to meeting timezone +// cy.get('@settings-timezone').next('.n-button-group').find('button').first().click().should('have.class', 'n-button--primary-type') +// cy.get('@settings-timezone').next('.n-button-group').next('.n-select').contains('Tokyo') // ---------------------- // Check display controls // ----------------------