Skip to content

Commit

Permalink
upd for v7
Browse files Browse the repository at this point in the history
  • Loading branch information
vitalets committed Jul 25, 2024
1 parent 87ab4f9 commit bf1d20c
Showing 1 changed file with 10 additions and 8 deletions.
18 changes: 10 additions & 8 deletions playwright.config.ts
Original file line number Diff line number Diff line change
@@ -1,22 +1,24 @@
import { defineConfig, devices } from '@playwright/test';
import { defineBddConfig, cucumberReporter } from 'playwright-bdd';
import { defineConfig, devices } from "@playwright/test";
import { defineBddConfig, cucumberReporter } from "playwright-bdd";

const testDir = defineBddConfig({
paths: ['features/*.feature'],
importTestFrom: 'steps/fixtures.ts',
features: "features/*.feature",
steps: "steps/*.ts",
});

export default defineConfig({
testDir,
reporter: [cucumberReporter('html', { outputFile: 'cucumber-report/report.html' })],
reporter: [
cucumberReporter("html", { outputFile: "cucumber-report/report.html" }),
],
projects: [
{
name: 'chromium',
use: { ...devices['Desktop Chrome'] },
name: "chromium",
use: { ...devices["Desktop Chrome"] },
},
// {
// name: 'firefox',
// use: { ...devices['Desktop Firefox'] },
// },
]
],
});

0 comments on commit bf1d20c

Please sign in to comment.