Skip to content

Commit ef8193c

Browse files
committed
Update test to pass the correct query param value
1 parent 2016065 commit ef8193c

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

special-pages/pages/new-tab/app/subscription-winback-banner/integration-tests/subscription-winback-banner.spec.js

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ test.describe('newtab remote messaging framework subscriptionWinBackBanner', ()
55
test('fetches config + data', async ({ page }, workerInfo) => {
66
const ntp = NewtabPage.create(page, workerInfo);
77
await ntp.reducedMotion();
8-
await ntp.openPage({ winback: 'true' });
8+
await ntp.openPage({ winback: 'winback_last_day' });
99

1010
const calls1 = await ntp.mocks.waitForCallCount({ method: 'initialSetup', count: 1 });
1111
const calls2 = await ntp.mocks.waitForCallCount({ method: 'winBackOffer_getData', count: 1 });
@@ -17,11 +17,10 @@ test.describe('newtab remote messaging framework subscriptionWinBackBanner', ()
1717
test('renders a title, descriptionText an action button, and dismiss button', async ({ page }, workerInfo) => {
1818
const ntp = NewtabPage.create(page, workerInfo);
1919
await ntp.reducedMotion();
20-
await ntp.openPage({ winback: 'true' });
20+
await ntp.openPage({ winback: 'winback_last_day' });
2121

2222
await page.getByRole('heading', { name: 'Last day to save 25%!' }).waitFor();
2323
await page.getByText('Stay protected with our').waitFor();
24-
await page.locator('strong').waitFor();
2524

2625
await page.getByRole('button', { name: 'See Offer' }).click();
2726
await ntp.mocks.waitForCallCount({ method: 'winBackOffer_action', count: 1 });

special-pages/playwright.config.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ export default defineConfig({
2424
testMatch: [
2525
'favorites.spec.js',
2626
'freemium-pir-banner.spec.js',
27+
'subscription-winback-banner.spec.js',
2728
'new-tab.spec.js',
2829
'new-tab.screenshots.spec.js',
2930
'next-steps.spec.js',

0 commit comments

Comments
 (0)