Skip to content

Commit

Permalink
Assert data-navbar-state attribute
Browse files Browse the repository at this point in the history
  • Loading branch information
joel-jeremy committed Oct 14, 2024
1 parent 557a4f4 commit 738703d
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions packages/desktop-client/e2e/page-models/mobile-navigation.js
Original file line number Diff line number Diff line change
@@ -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';
Expand Down Expand Up @@ -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);
}
Expand Down

0 comments on commit 738703d

Please sign in to comment.