Skip to content

Commit

Permalink
VRT fix
Browse files Browse the repository at this point in the history
  • Loading branch information
joel-jeremy committed Sep 25, 2024
1 parent 5f8bcfb commit 97c9f42
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions packages/desktop-client/e2e/page-models/mobile-budget-page.js
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,10 @@ export class MobileBudgetPage {
await this.toggleVisibleColumns();
budgetedButton = await this.getBudgetedButton(categoryName);

if ((await budgetedButton.count()) > 0) {
if (
(await budgetedButton.count()) > 0 &&
(await budgetedButton.isVisible())
) {
return budgetedButton;
}

Expand All @@ -71,7 +74,7 @@ export class MobileBudgetPage {
async getSpentButton(categoryName) {
let spentButton = this.page.getByTestId(`spent-${categoryName}-button`);

if ((await spentButton.count()) > 0) {
if ((await spentButton.count()) > 0 && (await spentButton.isVisible())) {
return spentButton;
}

Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 97c9f42

Please sign in to comment.