Update commands.js + createApp.spec.js
commands.js - Increasing wait due to timing issue for specific test runs. - Added `{ force: true }` to assist with adding components createApp.spec.js - Increasing wait due to timing issue for specific test runs
This commit is contained in:
parent
04519cf950
commit
ce4a0270bc
2 changed files with 4 additions and 4 deletions
|
@ -135,7 +135,7 @@ filterTests(['smoke', 'all'], () => {
|
||||||
cy.wait(5000)
|
cy.wait(5000)
|
||||||
|
|
||||||
cy.visit(`${Cypress.config().baseUrl}/builder`)
|
cy.visit(`${Cypress.config().baseUrl}/builder`)
|
||||||
cy.wait(1000)
|
cy.wait(2000)
|
||||||
|
|
||||||
cy.applicationInAppTable(templateNameText)
|
cy.applicationInAppTable(templateNameText)
|
||||||
cy.deleteApp(templateNameText)
|
cy.deleteApp(templateNameText)
|
||||||
|
|
|
@ -245,12 +245,12 @@ Cypress.Commands.add("createUser", email => {
|
||||||
|
|
||||||
Cypress.Commands.add("addComponent", (category, component) => {
|
Cypress.Commands.add("addComponent", (category, component) => {
|
||||||
if (category) {
|
if (category) {
|
||||||
cy.get(`[data-cy="category-${category}"]`).click()
|
cy.get(`[data-cy="category-${category}"]`).click({ force: true })
|
||||||
}
|
}
|
||||||
if (component) {
|
if (component) {
|
||||||
cy.get(`[data-cy="component-${component}"]`).click()
|
cy.get(`[data-cy="component-${component}"]`).click({ force: true })
|
||||||
}
|
}
|
||||||
cy.wait(1000)
|
cy.wait(2000)
|
||||||
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