♻️ (playwright.config.ts): disable fullyParallel and reduce workers to 1 for stability

♻️ (playwright.config.ts): comment out headless option for Chrome
♻️ (playwright.config.ts): comment out Firefox configuration for simplicity
✅ (chatInputOutputUser.spec.ts): update test assertions for better readability and accuracy

✅ (flowSettings.spec.ts, store.spec.ts): add steps to close modal after saving settings to ensure proper test flow and cleanup
This commit is contained in:
cristhianzl 2024-06-05 14:04:49 -03:00
commit 778abd7bdb
4 changed files with 24 additions and 20 deletions

View file

@ -15,13 +15,13 @@ dotenv.config({ path: path.resolve(__dirname, "../../.env") });
export default defineConfig({
testDir: "./tests",
/* Run tests in files in parallel */
fullyParallel: true,
fullyParallel: false,
/* Fail the build on CI if you accidentally left test.only in the source code. */
forbidOnly: !!process.env.CI,
/* Retry on CI only */
retries: process.env.CI ? 2 : 0,
/* Opt out of parallel tests on CI. */
workers: 10,
workers: 1,
/* Reporter to use. See https://playwright.dev/docs/test-reporters */
timeout: 120 * 1000,
// reporter: [
@ -46,7 +46,7 @@ export default defineConfig({
use: {
...devices["Desktop Chrome"],
launchOptions: {
headless: false,
// headless: false,
},
contextOptions: {
// chromium-specific permissions
@ -55,19 +55,19 @@ export default defineConfig({
},
},
{
name: "firefox",
use: {
...devices["Desktop Firefox"],
launchOptions: {
headless: false,
firefoxUserPrefs: {
"dom.events.asyncClipboard.readText": true,
"dom.events.testing.asyncClipboard": true,
},
},
},
},
// {
// name: "firefox",
// use: {
// ...devices["Desktop Firefox"],
// launchOptions: {
// headless: false,
// firefoxUserPrefs: {
// "dom.events.asyncClipboard.readText": true,
// "dom.events.testing.asyncClipboard": true,
// },
// },
// },
// },
],
webServer: [
{