diff --git a/test/playwright/cmfive.utils.ts b/test/playwright/cmfive.utils.ts index 818c765..e64a3bf 100644 --- a/test/playwright/cmfive.utils.ts +++ b/test/playwright/cmfive.utils.ts @@ -22,11 +22,8 @@ export class CmfiveHelper { static async isBootstrap5(page: Page) { - try { - await page.locator('.body') - } catch (e) { - await page.waitForSelector('.body'); - } + await page.waitForSelector('#cmfive-body, body > .row-fluid'); + return await page.locator('html.theme').count() > 0 } @@ -70,4 +67,4 @@ export class CmfiveHelper { await page.keyboard.type(search); await page.locator('.ui-menu-item :text("' + value + '")').click(); } -} \ No newline at end of file +}