Skip to content

Commit

Permalink
chore: update variable names
Browse files Browse the repository at this point in the history
  • Loading branch information
adrians5j committed Jan 15, 2021
1 parent 0db9207 commit ece56fc
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ context("Menus Module", () => {
.findByText("Save menu")
.click()
.findByText("Record saved successfully.")
.visit(Cypress.env("SITE_URL"))
.visit(Cypress.env("WEBSITE_URL"))
.reloadUntil(() => {
// We wait until the document contains the newly added menu.
return Cypress.$(`:contains(${id})`).length;
Expand Down Expand Up @@ -97,7 +97,7 @@ context("Menus Module", () => {
.findByText("Save menu")
.click()
.findByText("Record saved successfully.")
.visit(Cypress.env("SITE_URL"))
.visit(Cypress.env("WEBSITE_URL"))
.reloadUntil(() => {
// We wait until the document contains the newly added menu.
return Cypress.$(`:contains(${idEdited})`).length;
Expand Down Expand Up @@ -129,7 +129,7 @@ context("Menus Module", () => {
cy.findByText("Save menu")
.click()
.findByText("Record saved successfully.")
.visit(Cypress.env("SITE_URL"))
.visit(Cypress.env("WEBSITE_URL"))
.reloadUntil(() => {
// We wait until the document contains the newly added menu.
return Cypress.$(`:contains(${idEdited})`).length === 0;
Expand Down
4 changes: 2 additions & 2 deletions cypress/integration-old/admin/settings/siteRefresh.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ context("Page Builder Settings", () => {
.click()
.findByText("Settings updated successfully.");

cy.visit(Cypress.env("SITE_URL"))
cy.visit(Cypress.env("WEBSITE_URL"))
.reloadUntil(() => {
// We wait until the document contains the newly added menu.
return Cypress.$(`:contains(New-site-name-${id})`).length;
Expand Down Expand Up @@ -42,7 +42,7 @@ context("Page Builder Settings", () => {
.click()
.findByText("Settings updated successfully.");

cy.visit(Cypress.env("SITE_URL"))
cy.visit(Cypress.env("WEBSITE_URL"))
.reloadUntil(() => {
// We wait until the document contains the newly added menu.
return Cypress.$(`a[href="${facebook}"]`).length;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
context("Admin Installation", () => {
it("should be able to complete the initial installation wizard", () => {
// 1. Security installation.
cy.visit(Cypress.env("SITE_URL"))
cy.visit(Cypress.env("WEBSITE_URL"))
.wait(2000)
.findByText("Admin UI")
.click()
Expand Down Expand Up @@ -63,7 +63,7 @@ context("Admin Installation", () => {
cy.findByText("Value is required.").should("exist");

cy.findByLabelText("Site Name")
.type(Cypress.env("SITE_NAME"))
.type(Cypress.env("WEBSITE_NAME"))
.findByTestId("install-pb-button")
.click()
.wait(25000); // Wait for the Page Builder installation to finish.
Expand Down
8 changes: 4 additions & 4 deletions example.cypress.json
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
{
"viewportWidth": 1600,
"viewportHeight": 1200,
"baseUrl": "https://SITE_CDN_ID.cloudfront.net",
"baseUrl": "https://WEBSITE_CDN_ID.cloudfront.net",
"defaultCommandTimeout": 30000,
"video": false,
"retries": {
"runMode": 5,
"openMode": 0
},
"env": {
"SITE_NAME": "Cypress Test Site",
"SITE_URL": "https://SITE_CDN_ID.cloudfront.net",
"ADMIN_URL": "https://SITE_CDN_ID.cloudfront.net/admin",
"WEBSITE_NAME": "Cypress Test Website",
"WEBSITE_URL": "https://WEBSITE_CDN_ID.cloudfront.net",
"ADMIN_URL": "https://WEBSITE_CDN_ID.cloudfront.net/admin",
"API_URL": "https://API_CDN_ID.cloudfront.net",
"GRAPHQL_API_URL": "https://API_CDN_ID.cloudfront.net/graphql",
"AUTHORIZATION_TOKEN_KEY": "webiny-token",
Expand Down

0 comments on commit ece56fc

Please sign in to comment.