Skip to content
This repository has been archived by the owner on Sep 8, 2024. It is now read-only.

Commit

Permalink
fix(lint): remove unneccessary example file
Browse files Browse the repository at this point in the history
  • Loading branch information
l3d00m authored Aug 20, 2024
1 parent 3746ddc commit f255a41
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 447 deletions.
16 changes: 8 additions & 8 deletions e2e/example.spec.ts
Original file line number Diff line number Diff line change
@@ -1,18 +1,18 @@
import { test, expect } from '@playwright/test';
import { test, expect } from '@playwright/test'

test('has title', async ({ page }) => {

Check failure on line 3 in e2e/example.spec.ts

View workflow job for this annotation

GitHub Actions / ci

e2e/example.spec.ts

Error: Playwright Test did not expect test() to be called here. Most common reasons include: - You are calling test() in a configuration file. - You are calling test() in a file that is imported by the configuration file. - You have two different versions of @playwright/test. This usually happens when one of the dependencies in your package.json depends on @playwright/test. ❯ TestTypeImpl._currentSuite .yarn/cache/playwright-npm-1.46.1-b809f5e477-17b0e7495a.zip/node_modules/playwright/lib/common/testType.js:71:13 ❯ TestTypeImpl._createTest .yarn/cache/playwright-npm-1.46.1-b809f5e477-17b0e7495a.zip/node_modules/playwright/lib/common/testType.js:80:24 ❯ Module.<anonymous> .yarn/cache/playwright-npm-1.46.1-b809f5e477-17b0e7495a.zip/node_modules/playwright/lib/transform/transform.js:256:12 ❯ e2e/example.spec.ts:3:1
await page.goto('https://playwright.dev/');
await page.goto('https://playwright.dev/')

// Expect a title "to contain" a substring.
await expect(page).toHaveTitle(/Playwright/);
});
await expect(page).toHaveTitle(/Playwright/)
})

test('get started link', async ({ page }) => {
await page.goto('https://playwright.dev/');
await page.goto('https://playwright.dev/')

// Click the get started link.
await page.getByRole('link', { name: 'Get started' }).click();
await page.getByRole('link', { name: 'Get started' }).click()

// Expects page to have a heading with the name of Installation.
await expect(page.getByRole('heading', { name: 'Installation' })).toBeVisible();
});
await expect(page.getByRole('heading', { name: 'Installation' })).toBeVisible()
})
4 changes: 2 additions & 2 deletions playwright.config.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { defineConfig, devices } from '@playwright/test';
import { defineConfig, devices } from '@playwright/test'

/**
* Read environment variables from file.
Expand Down Expand Up @@ -75,4 +75,4 @@ export default defineConfig({
// url: 'http://127.0.0.1:3000',
// reuseExistingServer: !process.env.CI,
// },
});
})
Loading

0 comments on commit f255a41

Please sign in to comment.