chore: remove playwright

This commit is contained in:
DIYgod
2023-05-22 16:03:28 +01:00
parent 48641ef5cd
commit d8dcf1b8ea
4 changed files with 0 additions and 79 deletions
-6
View File
@@ -1,6 +0,0 @@
import { expect, test } from "@playwright/test"
test("Home page should load", async ({ page }) => {
await page.goto("/")
expect(await page.textContent("h1")).toBe("Proselog")
})
-1
View File
@@ -156,7 +156,6 @@
"@ducanh2912/next-pwa": "^8.4.1",
"@iconify/tailwind": "^0.1.2",
"@next/bundle-analyzer": "13.4.3",
"@playwright/test": "1.33.0",
"@trivago/prettier-plugin-sort-imports": "4.1.1",
"@types/async-lock": "^1.4.0",
"@types/canvas-confetti": "^1.6.0",
-52
View File
@@ -1,52 +0,0 @@
import path from "path"
import { PlaywrightTestConfig, devices } from "@playwright/test"
// Reference: https://playwright.dev/docs/test-configuration
const config: PlaywrightTestConfig = {
timeout: 30 * 1000,
testDir: path.join(__dirname, "e2e"),
retries: 2,
outputDir: "test-results/",
webServer: {
command: "npm run dev",
port: 3000,
timeout: 120 * 1000,
reuseExistingServer: !process.env.CI,
},
use: {
trace: "retry-with-trace",
},
projects: [
{
name: "Desktop Chrome",
use: {
...devices["Desktop Chrome"],
},
},
// Keep it simple for now, only testing desktop chrome
// {
// name: 'Desktop Firefox',
// use: {
// ...devices['Desktop Firefox'],
// },
// },
// {
// name: 'Desktop Safari',
// use: {
// ...devices['Desktop Safari'],
// },
// },
// {
// name: 'Mobile Chrome',
// use: {
// ...devices['Pixel 5'],
// },
// },
// {
// name: 'Mobile Safari',
// use: devices['iPhone 13'],
// },
],
}
export default config
-20
View File
@@ -381,9 +381,6 @@ devDependencies:
'@next/bundle-analyzer':
specifier: 13.4.3
version: 13.4.3
'@playwright/test':
specifier: 1.33.0
version: 1.33.0
'@trivago/prettier-plugin-sort-imports':
specifier: 4.1.1
version: 4.1.1(prettier@2.8.8)
@@ -3872,17 +3869,6 @@ packages:
tslib: 2.5.2
dev: true
/@playwright/test@1.33.0:
resolution: {integrity: sha512-YunBa2mE7Hq4CfPkGzQRK916a4tuZoVx/EpLjeWlTVOnD4S2+fdaQZE0LJkbfhN5FTSKNLdcl7MoT5XB37bTkg==}
engines: {node: '>=14'}
hasBin: true
dependencies:
'@types/node': 20.2.1
playwright-core: 1.33.0
optionalDependencies:
fsevents: 2.3.2
dev: true
/@polka/url@1.0.0-next.21:
resolution: {integrity: sha512-a5Sab1C4/icpTZVzZc5Ghpz88yQtGOyNqYXcZgOssB2uuAr+wF/MvN6bgtW32q7HHrvBki+BsZ0OuNv6EV3K9g==}
dev: true
@@ -11037,12 +11023,6 @@ packages:
find-up: 4.1.0
dev: true
/playwright-core@1.33.0:
resolution: {integrity: sha512-aizyPE1Cj62vAECdph1iaMILpT0WUDCq3E6rW6I+dleSbBoGbktvJtzS6VHkZ4DKNEOG9qJpiom/ZxO+S15LAw==}
engines: {node: '>=14'}
hasBin: true
dev: true
/pngjs@5.0.0:
resolution: {integrity: sha512-40QW5YalBNfQo5yRYmiw7Yz6TKKVr3h6970B2YE+3fQpsWcrbj1PzJgxeJ19DRQjhMbKPIuMY8rFaXc8moolVw==}
engines: {node: '>=10.13.0'}