Untitled
unknown
plain_text
3 months ago
3.6 kB
11
Indexable
qase(442, it('#A18: Check that the First & last name, timezone, notification times changes were applied, SHARP-7259. Known issue: SMDN-207', () => {
cy.login('[email protected]', Cypress.env('password'))
cy.intercept('GET', '/api/v1/timezones').as('timezones')
cy.intercept('PATCH', '/api/v2/client_users/**').as('patch_client_users')
// Precondition
cy.visit("/profile?tab=notifications").wait("@timezones")
// cy.contains(profileMenu.scheduleNotification, "Daily").click().wait(501)
cy.get(profileMenu.dailyOption).click().wait(5000)
cy.get(profileMenu.timeNotification).click()
cy.get(profileMenu.timeEightMorning).click()
cy.get(profileMenu.timeZoneSection).click().wait('@patch_client_users')
cy.get(profileMenu.stockholmTimeZone).click()//.wait('@patch_client_users').wait(1002)
cy.get(profileMenu.timeZoneSection).should('contain','Europe/Stockholm').wait(4000)
cy.get(profileMenu.timeZoneSection).click()
cy.get(profileMenu.amsterdamTimeZone).click().wait('@patch_client_users').wait(3002)
cy.get(profileMenu.timeZoneSection).should('contain','Europe/Amsterdam')
cy.visit("/profile")
cy.get(profileMenu.sectionUserName).clear().type("Thick")
cy.get(profileMenu.sectionPhoneNumber).clear().type("0500000000")
// Steps
cy.get(profileMenu.sectionUserName).clear().type("Thick-1")
cy.get(profileMenu.sectionPhoneNumber).clear().type("44444444")
cy.get(profileMenu.sectionUserName).should('have.value','Thick-1')
cy.get(profileMenu.sectionPhoneNumber).should('have.value','44444444')
cy.visit("/profile?tab=notifications").wait("@timezones")
cy.get(profileMenu.frequencyTimeNotification).should('be.visible').click()
cy.get(profileMenu.timeNineMorning).click().wait('@patch_client_users')
cy.get(profileMenu.sectionFrequencyTimeNotification).should('contain','09:00')
cy.get(profileMenu.frequencyTimeNotification).should('be.visible').click()
cy.get(profileMenu.timeTenMorning).click().wait('@patch_client_users')
cy.get(profileMenu.sectionFrequencyTimeNotification).should('contain','10:00').wait(3000)
cy.get(profileMenu.weeklyTimeNotification).click({force:true}).wait(5000).should('be.checked')
cy.get(profileMenu.sectionDays).should('be.visible').click()
cy.get(profileMenu.optionTuesday).click().wait('@patch_client_users')
cy.get(profileMenu.sectionDays).should('contain',' Tuesday ').wait(4000)
cy.get(profileMenu.sectionDays).should('be.visible').click()
cy.get(profileMenu.optionMonday).click().wait('@patch_client_users')
cy.get(profileMenu.sectionDays).should('contain',' Monday ')
cy.get(profileMenu.frequencyTimeNotification).should('be.visible').click()
cy.get(profileMenu.timeNineMorning).click()
cy.get(profileMenu.sectionFrequencyTimeNotification).should('contain','09:00')
cy.visit("/profile")
cy.get(profileMenu.sectionUserName).clear().type("Thick")
cy.get(profileMenu.sectionPhoneNumber).clear().type("0500000000")
cy.visit('/sales/my-projects?status=all')
cy.get(commonLoc.listDataProject).should('exist')
}))
Editor is loading...
Leave a Comment