-
Notifications
You must be signed in to change notification settings - Fork 23
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
74aa788
commit 5863c74
Showing
4 changed files
with
40 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file added
BIN
+717 KB
tests/test-results/akamai-test-playstation-com-BotBrowser-antibots/video.webm
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
perimeterx.spec.ts |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
import { expect, test } from '../global-setup'; | ||
|
||
test('test playstation.com', async ({ page }) => { | ||
await page.goto('https://www.playstation.com/en-us/'); | ||
await page.locator('button >> text=Sign In').click(); | ||
|
||
await page.locator('input#signin-entrance-input-signinId').focus(); | ||
await page | ||
.locator('input#signin-entrance-input-signinId') | ||
.pressSequentially( | ||
Math.random().toString(36).substring(2) + | ||
Math.random().toString(36).substring(2) + | ||
'@gmail.com', | ||
{ delay: 100 }, | ||
); | ||
|
||
await page.keyboard.press('Enter'); | ||
|
||
await page.locator('input#signin-password-input-password').focus(); | ||
await page | ||
.locator('input#signin-password-input-password') | ||
.pressSequentially( | ||
Math.random().toString(36).substring(2) + | ||
Math.random().toString(36).substring(5) + | ||
'AC?_', | ||
{ delay: 150 }, | ||
); | ||
|
||
const responseWaiter = page.waitForResponse( | ||
(resp) => | ||
resp.url() === 'https://ca.account.sony.com/api/v1/ssocookie' && | ||
resp.status() === 400, | ||
); | ||
await page.keyboard.press('Enter'); | ||
|
||
expect(await responseWaiter).toBeTruthy(); | ||
}); |