openreplay/frontend/cypress/e2e/generalStability.cy.ts
Delirium 7dec39300f
feat(ui/tracker): create integrated e2e testing for tracker and player
* fix(ui): fix create note modal

* change(ui): remove tests for a moment

* change(ui): fix job name

* change(ui): fix job action

* change(ui): fix job action

* change(ui): fix job action

* change(ui): fix job action

* change(ui): add testing public dir

* change(ui): return silent server start

* change(ui): fix session url

* change(ui): fix session url

* change(ui): fix session url

* change(ui): fix mockup

* change(ui): fix mockup

* change(ui): fix snapshot images

* change(ui): fix snapshot images

* change(ui): fix testing app

* change(ui): fix testing app

* change(ui): fix testing flow and add loggs

* change(ui): add network and events

* change(ui): fix table view

* change(ui): fix table view

* change(ui): fix acc req intercept

* change(ui): fix mob req intercept

* change(ui): change jump method
2023-02-03 16:58:08 +01:00

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('[data-test-id=login]').type(Cypress.env('account').replaceAll('"', ''));
cy.get('[data-test-id=password]').type(Cypress.env('password').replaceAll('"', ''));
cy.get('[data-test-id=log-button]').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)
})
})