Browse Source

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
pull/5832/head
Mitch-Budibase 4 years ago
parent
commit
702deee511
  1. 2
      packages/builder/cypress/integration/createApp.spec.js
  2. 6
      packages/builder/cypress/support/commands.js

2
packages/builder/cypress/integration/createApp.spec.js

@ -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)

6
packages/builder/cypress/support/commands.js

@ -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]

Loading…
Cancel
Save