test(cypress): reduce dependency on static wait (cy.wait)

Signed-off-by: Raju Udava <sivadstala@gmail.com>
This commit is contained in:
Raju Udava
2021-11-28 16:57:01 +05:30
parent 3fa708be79
commit 0616b48bf6
19 changed files with 319 additions and 611 deletions

View File

@@ -66,9 +66,6 @@ export const genTest = (type, xcdb) => {
describe(`Import from excel`, () => {
before(() => {
// cy.waitForSpinners()
// cy.signinOrSignup(roles.owner.credentials)
// cy.wait(2000)
cy.task('readSheetList', { file: `./scripts/cypress/fixtures/${filepath}` })
.then((rows) => {
@@ -182,8 +179,8 @@ export const genTest = (type, xcdb) => {
// delete project once all operations are completed
mainPage.toolBarTopLeft(mainPage.HOME).click()
cy.wait(1000)
cy.get(`.nc-${type}-project-row .mdi-delete-circle-outline`, { timeout: 10000 })
.should('exist')
.last()
.invoke('show')
.click();
@@ -277,8 +274,8 @@ export const genTest = (type, xcdb) => {
after(() => {
// delete project once all operations are completed
mainPage.toolBarTopLeft(mainPage.HOME).click()
cy.wait(1000)
cy.get(`.nc-${type}-project-row .mdi-delete-circle-outline`, { timeout: 10000 })
.should('exist')
.last()
.invoke('show')
.click();