From 738703d2fe3aca5b3af7306d5f925588b3814caa Mon Sep 17 00:00:00 2001 From: Joel Jeremy Marquez Date: Sun, 13 Oct 2024 18:31:36 -0700 Subject: [PATCH] Assert data-navbar-state attribute --- packages/desktop-client/e2e/page-models/mobile-navigation.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/packages/desktop-client/e2e/page-models/mobile-navigation.js b/packages/desktop-client/e2e/page-models/mobile-navigation.js index d25b82ded44..b9600e201bc 100644 --- a/packages/desktop-client/e2e/page-models/mobile-navigation.js +++ b/packages/desktop-client/e2e/page-models/mobile-navigation.js @@ -1,3 +1,5 @@ +import { expect } from '@playwright/test'; + import { MobileAccountsPage } from './mobile-accounts-page'; import { MobileBudgetPage } from './mobile-budget-page'; import { MobileReportsPage } from './mobile-reports-page'; @@ -68,6 +70,8 @@ export class MobileNavigation { return false; } + await expect(this.navbar).toHaveAttribute('data-navbar-state'); + const dataNavbarState = await this.navbar.getAttribute('data-navbar-state'); return states.includes(dataNavbarState); }