1
0
Fork 0
mirror of synced 2024-09-28 07:11:40 +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, "video": true,
"projectId": "bmbemn", "projectId": "bmbemn",
"env": { "env": {

View file

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

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

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")
@ -232,4 +232,4 @@ Cypress.Commands.add("addCustomSourceOptions", totalOptions => {
// Save options // Save options
cy.get(".spectrum-Button").contains("Save").click({force: true}) cy.get(".spectrum-Button").contains("Save").click({force: true})
}) })
}) })