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 d7b4519090
commit f443127e13
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

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

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