diff options
author | John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com> | 2022-10-05 12:14:03 +0200 |
---|---|---|
committer | John Molakvoæ <skjnldsv@protonmail.com> | 2022-10-13 12:13:39 +0200 |
commit | db831359d3ad10d35536bd5f0e72ba629b828471 (patch) | |
tree | 5b953a93ef251e5ed8ea012e80e9fe1327a7b662 /tests/acceptance | |
parent | 4b46c5a5a02b6c1c77b99cf21b9ff933fabbcc35 (diff) | |
download | nextcloud-server-db831359d3ad10d35536bd5f0e72ba629b828471.tar.gz nextcloud-server-db831359d3ad10d35536bd5f0e72ba629b828471.zip |
Allow to pick custom colour
Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
Diffstat (limited to 'tests/acceptance')
-rw-r--r-- | tests/acceptance/features/app-theming.feature | 4 | ||||
-rw-r--r-- | tests/acceptance/features/bootstrap/ThemingAppContext.php | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/tests/acceptance/features/app-theming.feature b/tests/acceptance/features/app-theming.feature index 6f11a61455f..7a660ed52da 100644 --- a/tests/acceptance/features/app-theming.feature +++ b/tests/acceptance/features/app-theming.feature @@ -13,7 +13,7 @@ Feature: app-theming And I see that the non-plain background color variable is eventually "#0082c9" When I set the "Color" parameter in the Theming app to "#C9C9C9" Then I see that the parameters in the Theming app are eventually saved - And I see that the primary color is eventually "#C9C9C9" + And I see that the primary color is eventually "#00639a" And I see that the non-plain background color variable is eventually "#C9C9C9" Scenario: resetting the color updates the primary color @@ -23,7 +23,7 @@ Feature: app-theming And I see that the color selector in the Theming app has loaded And I set the "Color" parameter in the Theming app to "#C9C9C9" And I see that the parameters in the Theming app are eventually saved - And I see that the primary color is eventually "#C9C9C9" + And I see that the primary color is eventually "#00639a" And I see that the non-plain background color variable is eventually "#C9C9C9" When I reset the "Color" parameter in the Theming app to its default value Then I see that the parameters in the Theming app are eventually saved diff --git a/tests/acceptance/features/bootstrap/ThemingAppContext.php b/tests/acceptance/features/bootstrap/ThemingAppContext.php index adf04eaca00..eea964a1449 100644 --- a/tests/acceptance/features/bootstrap/ThemingAppContext.php +++ b/tests/acceptance/features/bootstrap/ThemingAppContext.php @@ -146,7 +146,7 @@ class ThemingAppContext implements Context, ActorAwareInterface { */ public function iSeeThatTheNonPlainBackgroundColorVariableIsEventually($color) { $colorVariableMatchesCallback = function () use ($color) { - $colorVariable = $this->actor->getSession()->evaluateScript("return getComputedStyle(document.documentElement).getPropertyValue('--color-main-background-not-plain').trim();"); + $colorVariable = $this->actor->getSession()->evaluateScript("return getComputedStyle(document.documentElement).getPropertyValue('--color-primary-default').trim();"); $colorVariable = $this->getRGBArray($colorVariable); $color = $this->getRGBArray($color); |