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, "video": true,
"projectId": "bmbemn", "projectId": "bmbemn",
"env": { "env": {

View File

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

View File

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

View File

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

View File

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