Skip to content

Commit

Permalink
Fix e2e test to not assume it’s been run on Feb 28, 2023 (#717)
Browse files Browse the repository at this point in the history
  • Loading branch information
j-f1 authored Mar 1, 2023
1 parent de69e15 commit 4e59bdf
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions packages/desktop-client/e2e/schedules.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -57,11 +57,16 @@ test.describe('Schedules', () => {
// go to rules page
const rulesPage = await navigation.goToRulesPage();
expect(await rulesPage.getNthRule(0)).toMatchObject({
actions: ['link schedule Home Depot (2023-02-28)'],
// actions: ['link schedule Home Depot (2023-02-28)'],
actions: [
expect.stringMatching(
/^link schedule Home Depot \(\d{4}-\d{2}-\d{2}\)$/,
),
],
conditions: [
'payee is Home Depot',
'account is HSBC',
'date is approx Every month on the 28th',
expect.stringMatching(/^date is approx Every month on the/),
'amount is approx -25.00',
],
});
Expand Down

0 comments on commit 4e59bdf

Please sign in to comment.