Skip to content

Commit

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

if (version_compare($wp_version, '6.3', 'ge')) {
$I->switchToIFrame("editor-canvas");
$I->wait(1);
Expand All @@ -29,7 +29,7 @@ public function iSeeDropCap(AcceptanceTester $I)
}

if (version_compare($wp_version, '6.4', 'ge')) {
$I->click("aria-label='Typography options']");
$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');
Expand Down Expand Up @@ -66,7 +66,7 @@ public function iDontSeeDropCap(AcceptanceTester $I)
}

if (version_compare($wp_version, '6.4', 'ge')) {
$I->click("aria-label='Typography options']");
$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');
Expand Down

0 comments on commit 8691a67

Please sign in to comment.