Stabilize the guide toolbox drawer test
Some checks failed
Validate Sokko G / validate (push) Failing after 12m39s

This commit is contained in:
Shinuwa 2026-10-23 18:47:58 +02:00
parent ce58a21ba7
commit 7691a1dda8

View file

@ -90,6 +90,7 @@ async function copyVisibleResults(page) {
async function openDrawer(page) {
const drawer = page.locator("#toolbox-drawer");
if (!await drawer.locator(".drawer-panel").isVisible()) {
await page.locator(".topbar-actions").waitFor();
const compactTrigger = page.getByRole("tab", { name: "Toolbox", exact: true });
if (await compactTrigger.isVisible()) await compactTrigger.click();
else await page.getByRole("button", { name: "Afficher la toolbox", exact: true }).click();