| 1 |
import { registry } from "@web/core/registry"; |
| 2 |
|
| 3 |
registry.category("web_tour.tours").add("skip_to_content", { |
| 4 |
url: "/", |
| 5 |
steps: () => [ |
| 6 |
{ |
| 7 |
content: "Make sure that Skip to Content button is on top of all the links present in header", |
| 8 |
trigger: "a:first-child[class~='o_skip_to_content']", |
| 9 |
run: "click" |
| 10 |
}, |
| 11 |
{ |
| 12 |
content: "Check if we have been redirected to #wrap", |
| 13 |
trigger: "body", |
| 14 |
run: () => { |
| 15 |
if (!window.location.href.endsWith("#wrap")) { |
| 16 |
console.error("We should be on #wrap."); |
| 17 |
} |
| 18 |
} |
| 19 |
} |
| 20 |
] |
| 21 |
}); |