Skip to content

Commit

Permalink
Fix: e2e tests
Browse files Browse the repository at this point in the history
  • Loading branch information
MatissJanis committed Nov 13, 2023
1 parent 62d0a4c commit fe3a4e1
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
8 changes: 8 additions & 0 deletions packages/desktop-client/e2e/page-models/mobile-navigation.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,17 @@ export class MobileNavigation {
}

async goToSettingsPage() {
await this.dragNavbarUp();

const link = this.page.getByRole('link', { name: 'Settings' });
await link.click();

return new SettingsPage(this.page);
}

async dragNavbarUp() {
await this.page
.locator('[role="navigation"]')

Check warning on line 43 in packages/desktop-client/e2e/page-models/mobile-navigation.js

View workflow job for this annotation

GitHub Actions / lint

Avoid using straight quotes (' or ") in user-visible text. Use curly quotes (‘ ’ or “ ”) instead

Check warning on line 43 in packages/desktop-client/e2e/page-models/mobile-navigation.js

View workflow job for this annotation

GitHub Actions / lint

Avoid using straight quotes (' or ") in user-visible text. Use curly quotes (‘ ’ or “ ”) instead
.dragTo(this.page.locator('[data-testid="budget-table"]'));

Check warning on line 44 in packages/desktop-client/e2e/page-models/mobile-navigation.js

View workflow job for this annotation

GitHub Actions / lint

Avoid using straight quotes (' or ") in user-visible text. Use curly quotes (‘ ’ or “ ”) instead

Check warning on line 44 in packages/desktop-client/e2e/page-models/mobile-navigation.js

View workflow job for this annotation

GitHub Actions / lint

Avoid using straight quotes (' or ") in user-visible text. Use curly quotes (‘ ’ or “ ”) instead
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -164,6 +164,7 @@ export default function MobileNavTabs() {

return (
<animated.div
role="navigation"
{...bind()}
style={{
y,
Expand Down

0 comments on commit fe3a4e1

Please sign in to comment.