File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -19,7 +19,7 @@ const wait = (ms) => new Promise((resolve) => setTimeout(resolve, ms));
1919jest . setTimeout ( TIMEOUT ) ;
2020
2121const 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
3939const 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 (
You can’t perform that action at this time.
0 commit comments