* chore: cleanup handling of a bad read

* chore: configure e2e testing

* chore: version bump
This commit is contained in:
Carlos Valente
2023-04-02 19:07:13 +02:00
committed by GitHub
parent 0e47b5c10c
commit 03e7428348
17 changed files with 140 additions and 303 deletions
+8 -19
View File
@@ -1,12 +1,6 @@
import type { PlaywrightTestConfig } from '@playwright/test';
import { devices } from '@playwright/test';
/**
* Read environment variables from file.
* https://github.com/motdotla/dotenv
*/
// require('dotenv').config();
/**
* See https://playwright.dev/docs/test-configuration.
*/
@@ -19,8 +13,14 @@ const config: PlaywrightTestConfig = {
fullyParallel: true,
forbidOnly: !!process.env.CI,
retries: process.env.CI ? 2 : 0,
workers: process.env.CI ? 1 : undefined,
workers: 1,
reporter: 'html',
webServer: {
command: "turbo run dev:test",
port: 4001,
reuseExistingServer: false,
timeout: 60 * 1000,
},
use: {
screenshot: 'only-on-failure',
viewport: { width: 1920, height: 1080 },
@@ -29,9 +29,6 @@ const config: PlaywrightTestConfig = {
ignoreHTTPSErrors: true,
trace: 'on-first-retry',
},
webServer: {
command: "pnpm dev:server"
},
projects: [
{
name: 'chromium',
@@ -40,17 +37,9 @@ const config: PlaywrightTestConfig = {
},
},
{
name: 'firefox',
testMatch: /.*.spec.all.ts/,
use: {
...devices['Desktop Firefox'],
},
},
{
name: 'webkit',
testMatch: /.*.spec.ts/,
testMatch: /.*.spec.mac.ts/,
use: {
...devices['Desktop Safari'],
},