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:
Mitch-Budibase 2022-05-11 21:13:57 +01:00
parent 04519cf950
commit ce4a0270bc
2 changed files with 4 additions and 4 deletions

View File

@ -135,7 +135,7 @@ filterTests(['smoke', 'all'], () => {
cy.wait(5000)
cy.visit(`${Cypress.config().baseUrl}/builder`)
cy.wait(1000)
cy.wait(2000)
cy.applicationInAppTable(templateNameText)
cy.deleteApp(templateNameText)

View File

@ -245,12 +245,12 @@ Cypress.Commands.add("createUser", email => {
Cypress.Commands.add("addComponent", (category, component) => {
if (category) {
cy.get(`[data-cy="category-${category}"]`).click()
cy.get(`[data-cy="category-${category}"]`).click({ force: true })
}
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 => {
const params = loc.pathname.split("/")
const componentId = params[params.length - 1]