Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions tests/EndToEnd.suite.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,10 @@ modules:
capabilities:
"goog:chromeOptions":
args:
- "--headless"
- "--disable-gpu"
- "--disable-dev-shm-usage"
- "--disable-software-rasterizer"
- "--proxy-server='direct://'"
- "--proxy-bypass-list=*"
- "--no-sandbox"
Expand Down
21 changes: 17 additions & 4 deletions tests/Support/Helper/ThirdPartyPlugin.php
Original file line number Diff line number Diff line change
Expand Up @@ -65,10 +65,23 @@ public function deactivateThirdPartyPlugin($I, $name)
// Wait for the Plugins page to load.
$I->waitForElementVisible('body.plugins-php');

// Deactivate the Plugin.
$I->checkOption('//*[@data-slug="' . $name . '"]/th/input');
$I->selectOption('action', 'deactivate-selected');
$I->click('#doaction');
// Depending on the Plugin name, perform deactivation.
switch ($name) {
case 'wpforms-lite':
// Using the check option results in a 502 Bad Gateway error.
$I->click('a#deactivate-' . $name);
break;

default:
// Deactivate the Plugin.
$I->checkOption('//*[@data-slug="' . $name . '"]/th/input');
$I->selectOption('action', 'deactivate-selected');
$I->click('#doaction');

// Wait for the Plugins page to load with the Plugin deactivated, to confirm it deactivated.
$I->waitForElementVisible('table.plugins tr[data-slug=' . $name . '].inactive');
break;
}
}

/**
Expand Down