Skip to content

Commit

Permalink
Fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
joppuyo committed Dec 18, 2023
1 parent 91d42a6 commit 9b66f9d
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions tests/acceptance/AcceptanceCest.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,6 @@ public function iSeeDropCap(AcceptanceTester $I)
$I->loginAsAdmin();
$I->amOnPage('wp-admin/post-new.php');

//$I->clickTextField();

if (version_compare($wp_version, '6.3', 'ge')) {
$I->switchToIFrame("editor-canvas");
$I->wait(1);
Expand All @@ -30,7 +28,10 @@ public function iSeeDropCap(AcceptanceTester $I)
$I->click('.block-editor-default-block-appender__content');
}

if (version_compare($wp_version, '6.0', 'ge')) {
if (version_compare($wp_version, '6.4', 'ge')) {
$I->click("aria-label='Typography options']");
$I->wait(1);
} else if (version_compare($wp_version, '6.0', 'ge')) {
$I->click('//*[@id="editor"]/div/div[1]/div[1]/div[2]/div[3]/div/div[3]/div/div[3]/div[1]/div/button');
$I->wait(1);
}
Expand All @@ -44,7 +45,6 @@ public function iActivatePlugin(AcceptanceTester $I)
{
$I->loginAsAdmin();
$I->amOnPluginsPage();
//$I->activatePlugin('remove-drop-cap');
$I->activatePlugin('disable-drop-cap');
}

Expand All @@ -64,9 +64,11 @@ public function iDontSeeDropCap(AcceptanceTester $I)
} else {
$I->click('.block-editor-default-block-appender__content');
}
//$I->clickTextField();

if (version_compare($wp_version, '6.0', 'ge')) {
if (version_compare($wp_version, '6.4', 'ge')) {
$I->click("aria-label='Typography options']");
$I->wait(1);
} else if (version_compare($wp_version, '6.0', 'ge')) {
$I->click('//*[@id="editor"]/div/div[1]/div[1]/div[2]/div[3]/div/div[3]/div/div[3]/div[1]/div/button');
$I->wait(1);
}
Expand Down

0 comments on commit 9b66f9d

Please sign in to comment.