1
0
Fork 0
mirror of synced 2024-06-27 18:40:42 +12:00

Increase wait for addComponent

Sometimes after adding a component, the incorrect component ID is selected, causing test fails. This wait should allow the correct component ID to be selected
This commit is contained in:
Mitch-Budibase 2022-05-11 23:14:06 +01:00
parent 702deee511
commit cb6b312145

View file

@ -250,7 +250,7 @@ Cypress.Commands.add("addComponent", (category, component) => {
if (component) {
cy.get(`[data-cy="component-${component}"]`).click({ force: true })
}
cy.wait(2000)
cy.wait(5000)
cy.location().then(loc => {
const params = loc.pathname.split("/")
const componentId = params[params.length - 1]