Skip to content

Commit f1bce86

Browse files
committed
remove example tests from playwright template
1 parent b84c9a9 commit f1bce86

File tree

1 file changed

+1
-23
lines changed

1 file changed

+1
-23
lines changed

integration/tests/example.spec.ts

Lines changed: 1 addition & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,6 @@
11
import { test, expect, Cookie } from '@playwright/test';
22
import { chromium, firefox, webkit } from 'playwright';
33

4-
test('has title', async ({ page }) => {
5-
await page.goto('https://playwright.dev/');
6-
7-
// Expect a title "to contain" a substring.
8-
await expect(page).toHaveTitle(/Playwright/);
9-
});
10-
11-
test('get started link', async ({ page }) => {
12-
await page.goto('https://playwright.dev/');
13-
14-
// Click the get started link.
15-
await page.getByRole('link', { name: 'Get started' }).click();
16-
17-
// Expects page to have a heading with the name of Installation.
18-
await expect(page.getByRole('heading', { name: 'Installation' })).toBeVisible();
19-
});
20-
21-
// The end of default test examples.
22-
234
test('should fetch the CF endpoint correctly', async ({ page }) => {
245
const response = await page.goto("https://www.branowl.xyz/action/allow");
256
expect(response?.status()).toBe(200);
@@ -66,7 +47,7 @@ test('should generate an action token after execute() by clicking the button', a
6647
const responsePromise = page.waitForResponse(response =>
6748
response.url().includes('/token/action') &&
6849
response.request().method() === 'GET' &&
69-
!!response.request().headers()['x-recaptcha-token'] // Check if the header exists and is truthy
50+
!!response.request().headers()['x-recaptcha-token'] // Check if the header exists
7051
);
7152

7253
// Click the "Execute Button"
@@ -84,9 +65,6 @@ test('should generate an action token after execute() by clicking the button', a
8465
});
8566

8667
test('should get session token after visiting the intended injectJS path', async ({ page }) => {
87-
let cookies : Cookie[] = [];
88-
const browser = await chromium.launch({ headless: true});
89-
const context = await browser.newContext();
9068
const endpointUrl = "https://www.branowl.xyz/hello.html";
9169

9270
await page.goto(`${endpointUrl}`);

0 commit comments

Comments
 (0)