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:
parent
ce4a0270bc
commit
abbb487dd2
1 changed files with 1 additions and 1 deletions
|
@ -250,7 +250,7 @@ Cypress.Commands.add("addComponent", (category, component) => {
|
||||||
if (component) {
|
if (component) {
|
||||||
cy.get(`[data-cy="component-${component}"]`).click({ force: true })
|
cy.get(`[data-cy="component-${component}"]`).click({ force: true })
|
||||||
}
|
}
|
||||||
cy.wait(2000)
|
cy.wait(5000)
|
||||||
cy.location().then(loc => {
|
cy.location().then(loc => {
|
||||||
const params = loc.pathname.split("/")
|
const params = loc.pathname.split("/")
|
||||||
const componentId = params[params.length - 1]
|
const componentId = params[params.length - 1]
|
||||||
|
|
Loading…
Reference in a new issue