1
0
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:
Matt Gibson
2025-10-10 10:09:36 -07:00
parent d716a8744e
commit c57f439161
9 changed files with 21 additions and 21 deletions

2
.github/CODEOWNERS vendored
View File

@@ -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

View File

@@ -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" }));

View File

@@ -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:

View File

@@ -1,4 +1,4 @@
# playwright-scenes
# playwright-helpers
Owned by: architecture

View File

@@ -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",
};

View File

@@ -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,

View File

@@ -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
View File

@@ -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": {

View File

@@ -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"],