Closed moygospadin closed 7 months ago
Playwright config
import { defineConfig, devices } from "@playwright/test";
import { defineBddConfig } from "playwright-bdd";
require("dotenv").config({ path: __dirname + "/.env" });
const testDir = defineBddConfig({
importTestFrom: "./tests/steps/fixtures.ts",
paths: ["./tests/features"],
require: ["./tests/steps/*.ts"],
quotes: "backtick",
featuresRoot: "./tests/features",
});
export default defineConfig({
testDir,
reporter: "html",
webServer: [
{
env: {
googleRefreshToken: process.env.GOOGLE_REFRESH_TOKEN as string,
googleClientId: process.env.REACT_APP_GOOGLE_CLIENTID as string,
googleClientSecret: process.env
.REACT_APP_GOOGLE_CLIENT_SECRET as string,
},
command: "yarn run start:e2e",
url: "http://localhost:8080",
reuseExistingServer: true,
},
],
use: {
screenshot: "only-on-failure",
baseURL: "https://finops-staging.globalgiving.org",
},
projects: [
{
name: "chromium",
use: {
...devices["Desktop Chrome"],
storageState: "./setup/storage-state.json",
},
},
],
});
Hi @moygospadin
I've tried to reproduce the issue in playwright-bdd example in hooks-fixtures-85 branch.
After running npm test
it correctly shows that browser and page are defined:
npm test
on it?Closing as not reproducible.
the same for
page or browser is undefined "@playwright/test": "^1.40.1", "@cucumber/cucumber": "^10.0.1", "playwright-bdd": "^5.7.1",