Skip to content
Snippets Groups Projects
Commit 696c45b4 authored by qsm-odoo's avatar qsm-odoo
Browse files

[FIX] website: stop showing CSS variable assertion tour step to users

Commit [1] introduced a website tour util to assert the value of a CSS
variable. This was used at the start of theme tours to check we are in
fact on the right theme before starting the tour.

While it's great for those tours when they are started as a test, it was
not meant to be shown to users following that tour. This commit fixes
that. Notice that theme tours are currently broken so the issue was
probably hidden. Those will be fixed at [2].

[1]: https://github.com/odoo/odoo/commit/b29e17765f4e912b2dd472493b5be500b3a32c87
[2]: https://github.com/odoo/odoo/pull/106703



Related to task-3084175

closes odoo/odoo#106725

Signed-off-by: default avatarQuentin Smetz (qsm) <qsm@odoo.com>
parent 101d83d4
No related branches found
No related tags found
No related merge requests found
......@@ -17,6 +17,7 @@ function assertCssVariable(variableName, variableValue, trigger = 'iframe body')
return {
content: `Check CSS variable ${variableName}=${variableValue}`,
trigger: trigger,
auto: true,
run: function () {
const styleValue = getComputedStyle(this.$anchor[0]).getPropertyValue(variableName);
if ((styleValue && styleValue.trim()) !== variableValue.trim()) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment