1
0
Fork 0
mirror of synced 2024-06-18 18:35:37 +12:00

Changing Environment

I had this as the test env, changing it back to what it was previously.
This commit is contained in:
Mitch-Budibase 2021-09-30 13:52:20 +01:00
parent 0b88a0a2f2
commit ee9a1135ba
7 changed files with 8 additions and 16 deletions

View file

@ -1,5 +1,5 @@
{
"baseUrl": "https://test.budi.live/builder/",
"baseUrl": "http://localhost:10001/builder/",
"video": true,
"projectId": "bmbemn",
"env": {

View file

@ -37,4 +37,4 @@ context("Add Multi-Option Datatype", () => {
cy.getComponent(componentId).find('.spectrum-Picker-label').contains("(5)")
})
})
})
})

View file

@ -33,7 +33,3 @@ it("should add Radio Buttons options picker on form, add data, and confirm", ()
cy.addCustomSourceOptions(totalRadioButtons)
}
})

View file

@ -2,7 +2,7 @@ context("Create an Application", () => {
it("should create a new application", () => {
cy.login()
cy.createTestApp()
cy.visit(`https://test.budi.live/builder`)
cy.visit(`localhost:${Cypress.env("PORT")}/builder`)
cy.contains("Cypress Tests").should("exist")
})
})

View file

@ -1,7 +1,3 @@
Cypress.on('uncaught:exception', (err, runnable) => {
return false;
});
context("Create a View", () => {
before(() => {
cy.login()

View file

@ -58,4 +58,4 @@ context("Custom Theming Properties", () => {
.get('[title="Gray 800"]').children().find('[aria-label="Checkmark"]')
}
})
})

View file

@ -6,7 +6,7 @@
//
Cypress.Commands.add("login", () => {
cy.visit(`https://test.budi.live/builder`)
cy.visit(`localhost:${Cypress.env("PORT")}/builder`)
cy.wait(2000)
cy.url().then(url => {
if (url.includes("builder/admin")) {
@ -29,7 +29,7 @@ Cypress.Commands.add("login", () => {
})
Cypress.Commands.add("createApp", name => {
cy.visit(`https://test.budi.live/builder`)
cy.visit(`localhost:${Cypress.env("PORT")}/builder`)
cy.wait(500)
cy.contains(/Create (new )?app/).click()
cy.wait(500)
@ -48,7 +48,7 @@ Cypress.Commands.add("createApp", name => {
})
Cypress.Commands.add("deleteApp", () => {
cy.visit(`https://test.budi.live/builder`)
cy.visit(`localhost:${Cypress.env("PORT")}/builder`)
cy.wait(1000)
cy.request(`https://test.budi.live/api/applications?status=all`)
.its("body")
@ -232,4 +232,4 @@ Cypress.Commands.add("addCustomSourceOptions", totalOptions => {
// Save options
cy.get(".spectrum-Button").contains("Save").click({force: true})
})
})
})