Skip to content

Commit

Permalink
1.43
Browse files Browse the repository at this point in the history
  • Loading branch information
Xotabu4 committed Apr 8, 2024
1 parent 9684723 commit 88e6f69
Show file tree
Hide file tree
Showing 3 changed files with 49 additions and 43 deletions.
46 changes: 23 additions & 23 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"author": "",
"license": "ISC",
"devDependencies": {
"@playwright/test": "^1.42.0",
"@playwright/test": "1.43.0",
"@types/node": "^20.10.3",
"@typescript-eslint/eslint-plugin": "^6.4.1",
"@typescript-eslint/parser": "^6.4.1",
Expand Down
44 changes: 25 additions & 19 deletions tests/examples/capturing-elements.test.ts
Original file line number Diff line number Diff line change
@@ -1,24 +1,30 @@
import { expect, test } from '@playwright/test';
import { test } from "@playwright/test";



test('Capturing captcha popup', {
tag: ['@test', '@JIRAID=123123'],
test(
"Capturing captcha popup",
{
tag: ["@test", "@JIRAID=123123"],
annotation: [
{ type: 'issue', description: '123123' },
{ type: 'issue', description: '123123' },
{ type: 'issue', description: '123123' },
]
}, async ({ page }) => {
{ type: "issue", description: "123123" },
{ type: "issue", description: "123123" },
{ type: "issue", description: "123123" },
],
},
async ({ page }) => {
// Setup the handler.
await page.addLocatorHandler(
page.getByRole('alertdialog'),
async () => {
console.log('cookie popup found')
await page.getByRole('button', { name: 'Allow All' }).click();
});
await page.addLocatorHandler(page.getByRole("alertdialog"), async () => {
console.log("cookie popup found");
await page.getByRole("button", { name: "Allow All" }).click();
});
// Write the test as usual.
await page.goto('https://www.cookiepro.com/knowledge/how-do-i-test-cookie-blocking-implementation/');
await page.locator('#maincontent').getByRole('link', { name: 'Pricing' }).click();
await page.goto(
"https://www.cookiepro.com/knowledge/how-do-i-test-cookie-blocking-implementation/"
);
await page.pause();
await page
.locator("#maincontent")
.getByRole("link", { name: "Pricing" })
.click();
// await page.waitForTimeout(60000);
})
}
);

0 comments on commit 88e6f69

Please sign in to comment.