-
Notifications
You must be signed in to change notification settings - Fork 49
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: e2e missing package and linter (#1414)
* fix: e2e missing package and linter * chore: revert stackblitz to window and declare types
- Loading branch information
Showing
31 changed files
with
21,671 additions
and
12,363 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
{ | ||
"extends": ["../../biome.json"], | ||
"files": { | ||
"ignore": ["playwright-report", "reports", "test-results"] | ||
}, | ||
"linter": { | ||
"rules": { | ||
"complexity": { | ||
"noForEach": "off" | ||
} | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,14 +2,13 @@ import { test, expect } from "@playwright/test"; | |
import { HomePage } from "../page-objects/HomePage"; | ||
import { ProductPage } from "../page-objects/ProductPage"; | ||
import { LoginForm } from "../page-objects/LoginPage"; | ||
import find from "find-up"; | ||
export const findEnv = () => find.sync(process.env.ENV_FILE || ".env"); | ||
import { findEnv } from "../utils/helpers"; | ||
|
||
require("dotenv").config({ path: findEnv() }); | ||
const userEmail = process.env.USER_EMAIL || "[email protected]"; | ||
const password = process.env.PASSWORD || "shopware123"; | ||
|
||
test.describe.only("Add review", () => { | ||
test.describe("Add review", () => { | ||
let homePage: HomePage; | ||
let productPage: ProductPage; | ||
let loginform: LoginForm; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,16 +5,15 @@ import { CheckoutPage } from "../page-objects/CheckoutPage"; | |
import { ProductPage } from "../page-objects/ProductPage"; | ||
import { CartPage } from "../page-objects/CartPage"; | ||
import { LoginForm } from "../page-objects/LoginPage"; | ||
import find from "find-up"; | ||
export const findEnv = () => find.sync(process.env.ENV_FILE || ".env"); | ||
import { faker } from "@faker-js/faker"; | ||
import { findEnv } from "../utils/helpers"; | ||
|
||
require("dotenv").config({ path: findEnv() }); | ||
const userEmail = process.env.USER_EMAIL || "[email protected]"; | ||
const password = process.env.PASSWORD || "shopware123"; | ||
test.setTimeout(50000); | ||
|
||
test.describe.only("Create Order", () => { | ||
test.describe("Create Order", () => { | ||
let homePage: HomePage; | ||
let registrationPage: RegisterForm; | ||
let checkoutPage: CheckoutPage; | ||
|
@@ -39,8 +38,8 @@ test.describe.only("Create Order", () => { | |
await homePage.openRegistrationPage(); | ||
await page.waitForLoadState("networkidle"); | ||
await registrationPage.fillCustomerData( | ||
"e2e " + faker.person.firstName(), | ||
"e2e " + faker.person.lastName(), | ||
`e2e ${faker.person.firstName()}`, | ||
`e2e ${faker.person.lastName()}`, | ||
faker.internet.exampleEmail(), | ||
faker.internet.password(), | ||
); | ||
|
@@ -82,8 +81,8 @@ test.describe.only("Create Order", () => { | |
await checkoutPage.goToCheckout(); | ||
await checkoutPage.checkNotCreateAccount(); | ||
await checkoutPage.fillGuestUserData( | ||
"e2e " + faker.person.firstName(), | ||
"e2e " + faker.person.lastName(), | ||
`e2e ${faker.person.firstName()}`, | ||
`e2e ${faker.person.lastName()}`, | ||
faker.internet.exampleEmail(), | ||
faker.location.street(), | ||
faker.location.zipCode(), | ||
|
Oops, something went wrong.