1
0
Fork 0
mirror of synced 2024-06-21 11:51:00 +12:00

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 be6dea74aa
commit 702deee511
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]