Merge pull request 'Multi Load Tests Fix (timing issues)' (#126) from multi-load-tests into main
All checks were successful
Release / Build-production-and-ng-test (push) Successful in 3m54s
Release / Build-and-test-development (push) Successful in 8m3s
Release / release (push) Successful in 8m24s

Reviewed-on: #126
This commit is contained in:
allan 2024-09-02 07:30:55 +00:00
commit fe049256b5

View File

@ -192,7 +192,10 @@ const checkIfTreeHasTables = (tables: string[], clickOnNode?: string, callback?:
} }
} }
if (nodeToClick) cy.get(nodeToClick).trigger('click') if (nodeToClick) {
cy.wait(1000)
cy.get(nodeToClick).trigger('click')
}
if (callback) callback(nodesCorrect) if (callback) callback(nodesCorrect)
}) })
@ -201,6 +204,7 @@ const checkIfTreeHasTables = (tables: string[], clickOnNode?: string, callback?:
const submitTables = () => { const submitTables = () => {
cy.get('#submit-all').trigger('click') cy.get('#submit-all').trigger('click')
cy.get('#submit-tables').trigger('click') cy.get('#submit-tables').trigger('click')
cy.wait(1000)
} }
const hasSuccessSubmits = (expectedNoOfSubmits: number, callback: (valid: boolean) => void) => { const hasSuccessSubmits = (expectedNoOfSubmits: number, callback: (valid: boolean) => void) => {