Commit f41b23a
authored
test: add test for terms of use before registration [WPB-24831] (#21156)
* test(registration): add test for terms of use before registration
This commit implements TC-1621 to ensure users are properly
informed about the terms of use when creating a personal account
via the SSO login flow.
The implemented scenario verifies:
- Entering an unregistered email on the SSO sign-in page.
- Navigating to the personal account registration page.
- The visibility of the Terms of Use link.
- Opening the link and validating the correct routing to the
`/legal#terms` URL in a new tab.
Refs: WPB-24831
* test(registration): refactor popup handling for terms of use test
The test now uses `Promise.all` with `page.waitForEvent('popup')`
instead of `context().waitForEvent('page')` to handle the new tab
creation.
Refs: WPB-248311 file changed
Lines changed: 23 additions & 0 deletions
Lines changed: 23 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
32 | 32 | | |
33 | 33 | | |
34 | 34 | | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
35 | 58 | | |
36 | 59 | | |
37 | 60 | | |
| |||
0 commit comments