Skip to content

Commit 1b42d9d

Browse files
Open home before unlocking Plus in the restore e2e
unlockPlus imports the entitlement module from the running app, so the page has to be on kody.video first. Co-authored-by: me <me@kentcdodds.com>
1 parent 41b5199 commit 1b42d9d

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

tests/e2e/restore.spec.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { test, expect } from '@playwright/test'
2-
import { unlockPlus } from './helpers'
2+
import { gotoHome, unlockPlus } from './helpers'
33

44
test.describe('Plus restore codes', () => {
55
test('the Plus device shows a code the other browser can redeem', async ({
@@ -10,6 +10,7 @@ test.describe('Plus restore codes', () => {
1010
const receiverContext = await browser.newContext({ baseURL })
1111
const receiver = await receiverContext.newPage()
1212
try {
13+
await gotoHome(page)
1314
await unlockPlus(page)
1415
await page.goto('/about')
1516
await page.getByRole('button', { name: 'Use Plus on another device' }).click()

0 commit comments

Comments
 (0)