Skip to content

Commit

Permalink
Refactor date parameter in app.open() calls
Browse files Browse the repository at this point in the history
  • Loading branch information
akdasa committed Dec 17, 2023
1 parent 5c5d087 commit 77a32cf
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions tests/review/ReviewDeck.Schedule.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ test.describe('Review Deck › Schedule', () => {
*/
test('Skip multiple days', async ({ page }) => {
// act:
await app.open(nextDays(10))
await app.open({ date: nextDays(10) })

// assert:
// 1. we create 6 cards per verse, so we should see 6 cards
Expand All @@ -30,7 +30,7 @@ test.describe('Review Deck › Schedule', () => {
*/
test('Scheduled cards for tomorrow message', async ({ page }) => {
// act:
await app.open(nextDays(1))
await app.open({ date: nextDays(1) })
await app.tabs.reviewTab.click()

await app.reviewDeck.card('BG 1.1', "NumberToTranslation").click()
Expand All @@ -46,12 +46,12 @@ test.describe('Review Deck › Schedule', () => {
*/
test('Schedule card for the next day', async ({ page }) => {
// act:
await app.open(nextDays(1))
await app.open({ date: nextDays(1) })
await app.tabs.reviewTab.click()

await app.reviewDeck.card('BG 1.1', "NumberToTranslation").click()
await app.reviewDeck.good.click()
await app.open(nextDays(2))
await app.open({ date: nextDays(2) })
await app.tabs.reviewTab.click()

// assert:
Expand Down

0 comments on commit 77a32cf

Please sign in to comment.