34 lines
No EOL
1.5 KiB
TypeScript
34 lines
No EOL
1.5 KiB
TypeScript
describe('Testing general stability', {
|
|
viewportHeight: 900,
|
|
viewportWidth: 1400,
|
|
}, () => {
|
|
it('Checking if app will crash', () => {
|
|
cy.intercept('/api/account').as('getAccount')
|
|
|
|
cy.visit('/')
|
|
cy.get(':nth-child(1) > .relative > .p-2').type(Cypress.env('account').replaceAll("\"", ''))
|
|
cy.get(':nth-child(2) > .relative > .p-2').type(Cypress.env('password').replaceAll("\"", ''))
|
|
cy.get('.justify-center > .h-10').click()
|
|
cy.wait('@getAccount')
|
|
|
|
cy.get('#search').should('be.visible')
|
|
|
|
|
|
cy.get('[href="/2/dashboard"] > span').click()
|
|
|
|
cy.get(':nth-child(1) > .relative > :nth-child(1) > #menu-manage-alerts > .w-full').should('be.visible')
|
|
|
|
|
|
cy.visit('/client/account')
|
|
|
|
cy.get(':nth-child(2) > .profileSettings-module__left--D4pCi > .profileSettings-module__info--DhVpL').should('be.visible')
|
|
|
|
cy.get(':nth-child(3) > .relative > :nth-child(1) > .sideMenuItem-module__menuItem--UzuXv > .w-full > .sideMenuItem-module__iconLabel--Cl_48 > .sideMenuItem-module__title--IFkbw').click()
|
|
cy.get(':nth-child(4) > .relative > :nth-child(1) > .sideMenuItem-module__menuItem--UzuXv > .w-full > .sideMenuItem-module__iconLabel--Cl_48 > .sideMenuItem-module__title--IFkbw').click()
|
|
cy.get(':nth-child(5) > .relative > :nth-child(1) > .sideMenuItem-module__menuItem--UzuXv > .w-full > .sideMenuItem-module__iconLabel--Cl_48 > .sideMenuItem-module__title--IFkbw').click()
|
|
|
|
cy.get('.webhooks-module__tabHeader--I0FXb').should('be.visible')
|
|
|
|
// if test has not failed, we assume that app is not crashed (so far)
|
|
})
|
|
}) |