1
0
Fork 0
mirror of synced 2024-10-03 19:43:32 +13:00

Smoke Build Changes - Timing issues

Timing issues persist for the smoke build.

Increasing timeout values to try and combat this
This commit is contained in:
Mitch-Budibase 2022-07-07 11:07:05 +01:00
parent 985ab8f4a2
commit d467bec7bd
5 changed files with 11 additions and 14 deletions

View file

@ -13,7 +13,7 @@
"HOST_IP": "" "HOST_IP": ""
}, },
"retries": { "retries": {
"runMode": 0, "runMode": 1,
"openMode": 0 "openMode": 0
} }
} }

View file

@ -46,8 +46,8 @@ filterTests(["smoke", "all"], () => {
cy.createApp(name) cy.createApp(name)
} else { } else {
cy.visit(`${Cypress.config().baseUrl}/builder`, { timeout: 5000}) cy.visit(`${Cypress.config().baseUrl}/builder`, { timeout: 5000})
cy.wait(500) cy.wait(1000)
cy.get(interact.CREATE_APP_BUTTON, { timeout: 1000 }).click({ force: true }) cy.get(interact.CREATE_APP_BUTTON, { timeout: 2000 }).click({ force: true })
cy.createAppFromScratch(name) cy.createAppFromScratch(name)
} }
} }

View file

@ -333,8 +333,8 @@ filterTests(["all"], () => {
cy.wait(1000) cy.wait(1000)
}) })
cy.visit(`${Cypress.config().baseUrl}/builder`, { timeout: 5000 }) cy.visit(`${Cypress.config().baseUrl}/builder`, { timeout: 10000 })
cy.get(".appTable .app-row-actions button", { timeout: 1000 }) cy.get(".appTable .app-row-actions button", { timeout: 5000 })
.contains("Manage") .contains("Manage")
.eq(0) .eq(0)
.click({ force: true }) .click({ force: true })

View file

@ -151,7 +151,7 @@ filterTests(["all"], () => {
cy.get("@query").its("response.body").should("not.be.empty") cy.get("@query").its("response.body").should("not.be.empty")
// Save query // Save query
cy.get(".spectrum-Button").contains("Save Query").click({ force: true }) cy.get(".spectrum-Button").contains("Save Query").click({ force: true })
cy.get(".hierarchy-items-container").should("contain", queryName) cy.get(".spectrum-Tabs-content", { timeout: 2000 }).should("contain", queryName)
}) })
it("should switch to schema with no tables", () => { it("should switch to schema with no tables", () => {

View file

@ -12,7 +12,7 @@ filterTests(["all"], () => {
const appName = "Cypress Tests" const appName = "Cypress Tests"
const appRename = "Cypress Renamed" const appRename = "Cypress Renamed"
// Rename app, Search for app, Confirm name was changed // Rename app, Search for app, Confirm name was changed
cy.visit(`${Cypress.config().baseUrl}/builder`) cy.visit(`${Cypress.config().baseUrl}/builder`, { timeout: 5000 })
renameApp(appName, appRename) renameApp(appName, appRename)
cy.reload() cy.reload()
cy.searchForApplication(appRename) cy.searchForApplication(appRename)
@ -39,7 +39,7 @@ filterTests(["all"], () => {
.click({ force: true }) .click({ force: true })
}) })
// Rename app, Search for app, Confirm name was changed // Rename app, Search for app, Confirm name was changed
cy.visit(`${Cypress.config().baseUrl}/builder`) cy.visit(`${Cypress.config().baseUrl}/builder`, { timeout: 5000 })
renameApp(appName, appRename, true) renameApp(appName, appRename, true)
cy.get(interact.APP_TABLE).find(interact.WRAPPER).should("have.length", 1) cy.get(interact.APP_TABLE).find(interact.WRAPPER).should("have.length", 1)
cy.applicationInAppTable(appRename) cy.applicationInAppTable(appRename)
@ -47,7 +47,7 @@ filterTests(["all"], () => {
it("Should try to rename an application to have no name", () => { it("Should try to rename an application to have no name", () => {
const appName = "Cypress Tests" const appName = "Cypress Tests"
cy.visit(`${Cypress.config().baseUrl}/builder`) cy.visit(`${Cypress.config().baseUrl}/builder`, { timeout: 5000 })
renameApp(appName, " ", false, true) renameApp(appName, " ", false, true)
// Close modal and confirm name has not been changed // Close modal and confirm name has not been changed
cy.get(interact.SPECTRUM_DIALOG_GRID, { timeout: 1000 }).contains("Cancel").click() cy.get(interact.SPECTRUM_DIALOG_GRID, { timeout: 1000 }).contains("Cancel").click()
@ -57,7 +57,7 @@ filterTests(["all"], () => {
xit("Should create two applications with the same name", () => { xit("Should create two applications with the same name", () => {
// It is not possible to have applications with the same name // It is not possible to have applications with the same name
const appName = "Cypress Tests" const appName = "Cypress Tests"
cy.visit(`${Cypress.config().baseUrl}/builder`) cy.visit(`${Cypress.config().baseUrl}/builder`, { timeout: 5000 })
cy.get(interact.SPECTRUM_BUTTON), { timeout: 500 } cy.get(interact.SPECTRUM_BUTTON), { timeout: 500 }
.contains("Create app") .contains("Create app")
.click({ force: true }) .click({ force: true })
@ -80,18 +80,15 @@ filterTests(["all"], () => {
const appName = "Cypress Tests" const appName = "Cypress Tests"
const numberName = 12345 const numberName = 12345
const specialCharName = "£$%^" const specialCharName = "£$%^"
cy.visit(`${Cypress.config().baseUrl}/builder`) cy.visit(`${Cypress.config().baseUrl}/builder`, { timeout: 5000 })
renameApp(appName, numberName) renameApp(appName, numberName)
cy.reload()
cy.applicationInAppTable(numberName) cy.applicationInAppTable(numberName)
cy.reload()
renameApp(numberName, specialCharName) renameApp(numberName, specialCharName)
cy.get(interact.ERROR).should( cy.get(interact.ERROR).should(
"have.text", "have.text",
"App name must be letters, numbers and spaces only" "App name must be letters, numbers and spaces only"
) )
// Set app name back to Cypress Tests // Set app name back to Cypress Tests
cy.reload()
renameApp(numberName, appName) renameApp(numberName, appName)
}) })