Skip to content

Commit 1e8f0a2

Browse files
ci(multisite): Fix for non multisite
1 parent 5d0f0a4 commit 1e8f0a2

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

tests/e2e-ddev/utils/helpers.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ const wait = (ms) => new Promise((resolve) => setTimeout(resolve, ms));
1919
jest.setTimeout(TIMEOUT);
2020

2121
const goToAdmin = async (endpoint = "") => {
22-
const adminUrl = MULTISITE ? `${ADMIN_URL}network` : `${ADMIN_URL}`;
22+
const adminUrl = MULTISITE == "true" ? `${ADMIN_URL}network` : `${ADMIN_URL}`;
2323
await page.goto(`${adminUrl}${endpoint}`);
2424
};
2525

@@ -37,7 +37,7 @@ const runCacheAction = async (actionType = "refresh", otherParams = "") => {
3737
};
3838

3939
const onAdminGoToSettingsPage = async () => {
40-
if (MULTISITE) {
40+
if (MULTISITE == "true") {
4141
await goToPublicPage("/wp-admin/network/");
4242
}
4343
// CrowdSec Menu
@@ -81,7 +81,7 @@ const onAdminSaveSettings = async (check = true) => {
8181
await page.click("[type=submit]");
8282

8383
if (check) {
84-
if (MULTISITE) {
84+
if (MULTISITE == "true") {
8585
await expect(page).toHaveText(".notice", "saved.");
8686
} else {
8787
await expect(page).toHaveText(

0 commit comments

Comments
 (0)