Skip to content

Commit

Permalink
Update SettingsCest.php
Browse files Browse the repository at this point in the history
  • Loading branch information
felixhahnweilheim committed Dec 28, 2023
1 parent b521e31 commit 3740210
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/codeception/acceptance/SettingsCest.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,8 @@ public function testSettingsColor(AcceptanceTester $I)
$I->seeSuccess();

// Test effect
$color = $I->executeJS("getComputedStyle(document.documentElement).getPropertyValue('--background_color_page');");
$colorDarkened = $I->executeJS("getComputedStyle(document.documentElement).getPropertyValue('--background_color_page__darken__5');");
$color = $I->executeJS("return getComputedStyle(document.documentElement).getPropertyValue('--background_color_page');");
$colorDarkened = $I->executeJS("return getComputedStyle(document.documentElement).getPropertyValue('--background_color_page__darken__5');");

if ($color !== self::BG_COLOR_PG) {
throw new Exception("Unexpected color: $color");
Expand Down

0 comments on commit 3740210

Please sign in to comment.