Smoke build test changes
This time it is adding appropriate deleteAllApps commands and adding waits - The waits seem to be essential for the smoke build. - Tests pass locally, but timing issues causes failure on the smoke build
This commit is contained in:
parent
377bbe9c52
commit
a4bbdd39db
|
@ -6,7 +6,7 @@ filterTests(["smoke", "all"], () => {
|
||||||
before(() => {
|
before(() => {
|
||||||
cy.login()
|
cy.login()
|
||||||
cy.deleteApp("Cypress Tests")
|
cy.deleteApp("Cypress Tests")
|
||||||
cy.createApp("Cypress Tests")
|
cy.createApp("Cypress Tests", false)
|
||||||
})
|
})
|
||||||
|
|
||||||
it("should create a user via basic onboarding", () => {
|
it("should create a user via basic onboarding", () => {
|
||||||
|
@ -45,7 +45,8 @@ filterTests(["smoke", "all"], () => {
|
||||||
if(i < 1){
|
if(i < 1){
|
||||||
cy.createApp(name)
|
cy.createApp(name)
|
||||||
} else {
|
} else {
|
||||||
cy.visit(`${Cypress.config().baseUrl}/builder`)
|
cy.visit(`${Cypress.config().baseUrl}/builder`, { timeout: 5000})
|
||||||
|
cy.wait(500)
|
||||||
cy.get(interact.CREATE_APP_BUTTON, { timeout: 1000 }).click({ force: true })
|
cy.get(interact.CREATE_APP_BUTTON, { timeout: 1000 }).click({ force: true })
|
||||||
cy.createAppFromScratch(name)
|
cy.createAppFromScratch(name)
|
||||||
}
|
}
|
||||||
|
@ -53,7 +54,7 @@ filterTests(["smoke", "all"], () => {
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
// Navigate back to the user
|
// Navigate back to the user
|
||||||
cy.visit(`${Cypress.config().baseUrl}/builder`, { timeout: 500})
|
cy.visit(`${Cypress.config().baseUrl}/builder`, { timeout: 5000})
|
||||||
cy.get(interact.SPECTRUM_SIDENAV).contains("Users").click()
|
cy.get(interact.SPECTRUM_SIDENAV).contains("Users").click()
|
||||||
cy.get(interact.SPECTRUM_TABLE, { timeout: 500 }).contains("bbuser").click()
|
cy.get(interact.SPECTRUM_TABLE, { timeout: 500 }).contains("bbuser").click()
|
||||||
for (let i = 0; i < 3; i++) {
|
for (let i = 0; i < 3; i++) {
|
||||||
|
|
|
@ -5,6 +5,7 @@ filterTests(["all"], () => {
|
||||||
context("Application Overview screen", () => {
|
context("Application Overview screen", () => {
|
||||||
before(() => {
|
before(() => {
|
||||||
cy.login()
|
cy.login()
|
||||||
|
cy.deleteAllApps()
|
||||||
cy.createTestApp()
|
cy.createTestApp()
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|
|
@ -6,7 +6,8 @@ filterTests(['all'], () => {
|
||||||
context("Publish Application Workflow", () => {
|
context("Publish Application Workflow", () => {
|
||||||
before(() => {
|
before(() => {
|
||||||
cy.login()
|
cy.login()
|
||||||
cy.createTestApp()
|
cy.deleteAllApps()
|
||||||
|
cy.createApp("Cypress Tests", false)
|
||||||
})
|
})
|
||||||
|
|
||||||
it("Should reflect the unpublished status correctly", () => {
|
it("Should reflect the unpublished status correctly", () => {
|
||||||
|
|
|
@ -111,6 +111,7 @@ filterTests(["all"], () => {
|
||||||
// Save relationship & reload page
|
// Save relationship & reload page
|
||||||
cy.get(".spectrum-Button").contains("Save").click({ force: true })
|
cy.get(".spectrum-Button").contains("Save").click({ force: true })
|
||||||
cy.reload()
|
cy.reload()
|
||||||
|
cy.wait(1000)
|
||||||
})
|
})
|
||||||
// Confirm table length & relationship name
|
// Confirm table length & relationship name
|
||||||
cy.get(".spectrum-Table", { timeout: 1000 })
|
cy.get(".spectrum-Table", { timeout: 1000 })
|
||||||
|
|
Loading…
Reference in New Issue