mirror of
https://github.com/bitwarden/browser
synced 2026-02-02 09:43:29 +00:00
Change name for playwright helpers to be more general
This commit is contained in:
2
.github/CODEOWNERS
vendored
2
.github/CODEOWNERS
vendored
@@ -219,4 +219,4 @@ apps/web/src/locales/en/messages.json
|
||||
**/jest.config.js @bitwarden/team-platform-dev
|
||||
**/project.jsons @bitwarden/team-platform-dev
|
||||
libs/pricing @bitwarden/team-billing-dev
|
||||
libs/playwright-scenes @bitwarden/team-architecture
|
||||
libs/playwright-helpers @bitwarden/team-architecture
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import { test, expect } from "@playwright/test";
|
||||
|
||||
import { Play, SingleUserRecipe } from "@bitwarden/playwright-scenes";
|
||||
import { Play, SingleUserRecipe } from "@bitwarden/playwright-helpers";
|
||||
|
||||
test("login with password", async ({ page }) => {
|
||||
using scene = await Play.scene(new SingleUserRecipe({ email: "test@example.com" }));
|
||||
|
||||
@@ -59,7 +59,7 @@ module.exports = {
|
||||
"<rootDir>/libs/tools/send/send-ui/jest.config.js",
|
||||
"<rootDir>/libs/user-core/jest.config.js",
|
||||
"<rootDir>/libs/vault/jest.config.js",
|
||||
"<rootDir>/libs/playwright-scenes/jest.config.js",
|
||||
"<rootDir>/libs/playwright-helpers/jest.config.js",
|
||||
],
|
||||
|
||||
// Workaround for a memory leak that crashes tests in CI:
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
# playwright-scenes
|
||||
# playwright-helpers
|
||||
|
||||
Owned by: architecture
|
||||
|
||||
|
||||
@@ -2,12 +2,12 @@ const sharedConfig = require("../../libs/shared/jest.config.angular");
|
||||
|
||||
module.exports = {
|
||||
...sharedConfig,
|
||||
displayName: "playwright-scenes",
|
||||
displayName: "playwright-helpers",
|
||||
preset: "../../jest.preset.js",
|
||||
testEnvironment: "node",
|
||||
transform: {
|
||||
"^.+\\.[tj]s$": ["ts-jest", { tsconfig: "<rootDir>/tsconfig.spec.json" }],
|
||||
},
|
||||
moduleFileExtensions: ["ts", "js", "html"],
|
||||
coverageDirectory: "../../coverage/libs/playwright-scenes",
|
||||
coverageDirectory: "../../coverage/libs/playwright-helpers",
|
||||
};
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
{
|
||||
"name": "@bitwarden/playwright-scenes",
|
||||
"name": "@bitwarden/playwright-helpers",
|
||||
"version": "0.0.1",
|
||||
"description": "Framework for writing end-to-end playwright tests",
|
||||
"private": true,
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
{
|
||||
"name": "playwright-scenes",
|
||||
"name": "playwright-helpers",
|
||||
"$schema": "../../node_modules/nx/schemas/project-schema.json",
|
||||
"sourceRoot": "libs/playwright-scenes/src",
|
||||
"sourceRoot": "libs/playwright-helpers/src",
|
||||
"projectType": "library",
|
||||
"tags": ["!dependsOn:common"],
|
||||
"targets": {
|
||||
@@ -9,25 +9,25 @@
|
||||
"executor": "@nx/js:tsc",
|
||||
"outputs": ["{options.outputPath}"],
|
||||
"options": {
|
||||
"outputPath": "dist/libs/playwright-scenes",
|
||||
"main": "libs/playwright-scenes/src/index.ts",
|
||||
"tsConfig": "libs/playwright-scenes/tsconfig.lib.json",
|
||||
"assets": ["libs/playwright-scenes/*.md"],
|
||||
"rootDir": "libs/playwright-scenes/src"
|
||||
"outputPath": "dist/libs/playwright-helpers",
|
||||
"main": "libs/playwright-helpers/src/index.ts",
|
||||
"tsConfig": "libs/playwright-helpers/tsconfig.lib.json",
|
||||
"assets": ["libs/playwright-helpers/*.md"],
|
||||
"rootDir": "libs/playwright-helpers/src"
|
||||
}
|
||||
},
|
||||
"lint": {
|
||||
"executor": "@nx/eslint:lint",
|
||||
"outputs": ["{options.outputFile}"],
|
||||
"options": {
|
||||
"lintFilePatterns": ["libs/playwright-scenes/**/*.ts"]
|
||||
"lintFilePatterns": ["libs/playwright-helpers/**/*.ts"]
|
||||
}
|
||||
},
|
||||
"test": {
|
||||
"executor": "@nx/jest:jest",
|
||||
"outputs": ["{workspaceRoot}/coverage/{projectRoot}"],
|
||||
"options": {
|
||||
"jestConfig": "libs/playwright-scenes/jest.config.js"
|
||||
"jestConfig": "libs/playwright-helpers/jest.config.js"
|
||||
}
|
||||
},
|
||||
"e2e": {
|
||||
|
||||
8
package-lock.json
generated
8
package-lock.json
generated
@@ -395,8 +395,8 @@
|
||||
"version": "0.0.0",
|
||||
"license": "GPL-3.0"
|
||||
},
|
||||
"libs/playwright-scenes": {
|
||||
"name": "@bitwarden/playwright-scenes",
|
||||
"libs/playwright-helpers": {
|
||||
"name": "@bitwarden/playwright-helpers",
|
||||
"version": "0.0.1",
|
||||
"license": "GPL-3.0"
|
||||
},
|
||||
@@ -4690,8 +4690,8 @@
|
||||
"resolved": "libs/platform",
|
||||
"link": true
|
||||
},
|
||||
"node_modules/@bitwarden/playwright-scenes": {
|
||||
"resolved": "libs/playwright-scenes",
|
||||
"node_modules/@bitwarden/playwright-helpers": {
|
||||
"resolved": "libs/playwright-helpers",
|
||||
"link": true
|
||||
},
|
||||
"node_modules/@bitwarden/pricing": {
|
||||
|
||||
@@ -49,7 +49,7 @@
|
||||
"@bitwarden/nx-plugin": ["libs/nx-plugin/src/index.ts"],
|
||||
"@bitwarden/platform": ["./libs/platform/src"],
|
||||
"@bitwarden/platform/*": ["./libs/platform/src/*"],
|
||||
"@bitwarden/playwright-scenes": ["libs/playwright-scenes/src/index.ts"],
|
||||
"@bitwarden/playwright-helpers": ["libs/playwright-helpers/src/index.ts"],
|
||||
"@bitwarden/pricing": ["libs/pricing/src/index.ts"],
|
||||
"@bitwarden/send-ui": ["./libs/tools/send/send-ui/src"],
|
||||
"@bitwarden/serialization": ["libs/serialization/src/index.ts"],
|
||||
|
||||
Reference in New Issue
Block a user