Skip to content

Commit

Permalink
test(e2e,playwright): unsubscribe page improvement(added test for the…
Browse files Browse the repository at this point in the history
… flash) (freeCodeCamp#52505)
  • Loading branch information
weilirs authored Dec 27, 2023
1 parent d8db4b2 commit 1407dcb
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions e2e/unsubscribed.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -82,5 +82,10 @@ test.describe('The unsubscribed page with unsubscribeId', () => {
await resubscribeButton.click();

await expect(page).toHaveURL(`${encoded_url_text}`);
await expect(
page.getByText(
"We've successfully updated your email preferences. Thank you for resubscribing."
)
).toBeVisible();
});
});

0 comments on commit 1407dcb

Please sign in to comment.