Skip to content

Commit ece56fc

Browse files
committed
chore: update variable names
1 parent 0db9207 commit ece56fc

File tree

4 files changed

+11
-11
lines changed

4 files changed

+11
-11
lines changed

cypress/integration-old/admin/pageBuilder/menus/pagesListMenuItemType.spec.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ context("Menus Module", () => {
5454
.findByText("Save menu")
5555
.click()
5656
.findByText("Record saved successfully.")
57-
.visit(Cypress.env("SITE_URL"))
57+
.visit(Cypress.env("WEBSITE_URL"))
5858
.reloadUntil(() => {
5959
// We wait until the document contains the newly added menu.
6060
return Cypress.$(`:contains(${id})`).length;
@@ -97,7 +97,7 @@ context("Menus Module", () => {
9797
.findByText("Save menu")
9898
.click()
9999
.findByText("Record saved successfully.")
100-
.visit(Cypress.env("SITE_URL"))
100+
.visit(Cypress.env("WEBSITE_URL"))
101101
.reloadUntil(() => {
102102
// We wait until the document contains the newly added menu.
103103
return Cypress.$(`:contains(${idEdited})`).length;
@@ -129,7 +129,7 @@ context("Menus Module", () => {
129129
cy.findByText("Save menu")
130130
.click()
131131
.findByText("Record saved successfully.")
132-
.visit(Cypress.env("SITE_URL"))
132+
.visit(Cypress.env("WEBSITE_URL"))
133133
.reloadUntil(() => {
134134
// We wait until the document contains the newly added menu.
135135
return Cypress.$(`:contains(${idEdited})`).length === 0;

cypress/integration-old/admin/settings/siteRefresh.spec.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ context("Page Builder Settings", () => {
1414
.click()
1515
.findByText("Settings updated successfully.");
1616

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

45-
cy.visit(Cypress.env("SITE_URL"))
45+
cy.visit(Cypress.env("WEBSITE_URL"))
4646
.reloadUntil(() => {
4747
// We wait until the document contains the newly added menu.
4848
return Cypress.$(`a[href="${facebook}"]`).length;

cypress/integration-old/adminInstallation/installation.spec.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
context("Admin Installation", () => {
1212
it("should be able to complete the initial installation wizard", () => {
1313
// 1. Security installation.
14-
cy.visit(Cypress.env("SITE_URL"))
14+
cy.visit(Cypress.env("WEBSITE_URL"))
1515
.wait(2000)
1616
.findByText("Admin UI")
1717
.click()
@@ -63,7 +63,7 @@ context("Admin Installation", () => {
6363
cy.findByText("Value is required.").should("exist");
6464

6565
cy.findByLabelText("Site Name")
66-
.type(Cypress.env("SITE_NAME"))
66+
.type(Cypress.env("WEBSITE_NAME"))
6767
.findByTestId("install-pb-button")
6868
.click()
6969
.wait(25000); // Wait for the Page Builder installation to finish.

example.cypress.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,17 @@
11
{
22
"viewportWidth": 1600,
33
"viewportHeight": 1200,
4-
"baseUrl": "https://SITE_CDN_ID.cloudfront.net",
4+
"baseUrl": "https://WEBSITE_CDN_ID.cloudfront.net",
55
"defaultCommandTimeout": 30000,
66
"video": false,
77
"retries": {
88
"runMode": 5,
99
"openMode": 0
1010
},
1111
"env": {
12-
"SITE_NAME": "Cypress Test Site",
13-
"SITE_URL": "https://SITE_CDN_ID.cloudfront.net",
14-
"ADMIN_URL": "https://SITE_CDN_ID.cloudfront.net/admin",
12+
"WEBSITE_NAME": "Cypress Test Website",
13+
"WEBSITE_URL": "https://WEBSITE_CDN_ID.cloudfront.net",
14+
"ADMIN_URL": "https://WEBSITE_CDN_ID.cloudfront.net/admin",
1515
"API_URL": "https://API_CDN_ID.cloudfront.net",
1616
"GRAPHQL_API_URL": "https://API_CDN_ID.cloudfront.net/graphql",
1717
"AUTHORIZATION_TOKEN_KEY": "webiny-token",

0 commit comments

Comments
 (0)