diff --git a/package.json b/package.json index 2b814b22..b276013b 100644 --- a/package.json +++ b/package.json @@ -77,7 +77,6 @@ "@typescript-eslint/eslint-plugin": "^5.62.0", "@typescript-eslint/parser": "^5.62.0", "autoprefixer": "^10.4.4", - "axios-mock-adapter": "^2.1.0", "eslint": "^8.45.0", "eslint-config-airbnb": "^19.0.4", "eslint-config-airbnb-typescript": "^17.0.0", diff --git a/tests/example.spec.ts b/tests/example.spec.ts new file mode 100644 index 00000000..a149fe32 --- /dev/null +++ b/tests/example.spec.ts @@ -0,0 +1,18 @@ +import { test, expect } from "@playwright/test"; + +test("has title", async ({ page }) => { + await page.goto("https://playwright.dev/"); + + // Expect a title "to contain" a substring. + await expect(page).toHaveTitle(/Playwright/); +}); + +test("get started link", async ({ page }) => { + await page.goto("https://playwright.dev/"); + + // Click the get started link. + await page.getByRole("link", { name: "Get started" }).click(); + + // Expects page to have a heading with the name of Installation. + await expect(page.getByRole("heading", { name: "Installation" })).toBeVisible(); +}); diff --git a/tsconfig.build.json b/tsconfig.build.json index 1eeee90e..a8b07e7d 100644 --- a/tsconfig.build.json +++ b/tsconfig.build.json @@ -3,6 +3,7 @@ "exclude": [ "__tests__/**/*.tests.*", "jest.setup.ts", - "jest.config.ts" + "jest.config.ts", + "tests/**/*.spec.*" ] } \ No newline at end of file diff --git a/tsconfig.json b/tsconfig.json index a03762d5..814f9764 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -47,7 +47,8 @@ "playwright.config.ts", "__tests__/**/*.tests.*", "jest.setup.ts", - "jest.config.ts" + "jest.config.ts", + "tests/**/*.spec.*" ], "exclude": ["node_modules"] } \ No newline at end of file diff --git a/yarn.lock b/yarn.lock index 88179c9d..8e99b6e6 100644 --- a/yarn.lock +++ b/yarn.lock @@ -3482,14 +3482,6 @@ axe-core@^4.10.0: resolved "https://registry.yarnpkg.com/axe-core/-/axe-core-4.10.2.tgz#85228e3e1d8b8532a27659b332e39b7fa0e022df" integrity sha512-RE3mdQ7P3FRSe7eqCWoeQ/Z9QXrtniSjp1wUjt5nRC3WIpz5rSCve6o3fsZ2aCpJtrZjSZgjwXAoTO5k4tEI0w== -axios-mock-adapter@^2.1.0: - version "2.1.0" - resolved "https://registry.yarnpkg.com/axios-mock-adapter/-/axios-mock-adapter-2.1.0.tgz#25ab2d7558f915e391744a40bbeb7374ad5985a4" - integrity sha512-AZUe4OjECGCNNssH8SOdtneiQELsqTsat3SQQCWLPjN436/H+L9AjWfV7bF+Zg/YL9cgbhrz5671hoh+Tbn98w== - dependencies: - fast-deep-equal "^3.1.3" - is-buffer "^2.0.5" - axios@^1.4.0: version "1.7.9" resolved "https://registry.yarnpkg.com/axios/-/axios-1.7.9.tgz#d7d071380c132a24accda1b2cfc1535b79ec650a" @@ -5773,11 +5765,6 @@ is-boolean-object@^1.2.1: call-bound "^1.0.2" has-tostringtag "^1.0.2" -is-buffer@^2.0.5: - version "2.0.5" - resolved "https://registry.yarnpkg.com/is-buffer/-/is-buffer-2.0.5.tgz#ebc252e400d22ff8d77fa09888821a24a658c191" - integrity sha512-i2R6zNFDwgEHJyQUtJEk0XFi1i0dPFn/oqjK3/vPCcDeJvW5NQ83V8QbicfF1SupOaB0h8ntgBC2YiE7dfyctQ== - is-bun-module@^1.0.2: version "1.3.0" resolved "https://registry.yarnpkg.com/is-bun-module/-/is-bun-module-1.3.0.tgz#ea4d24fdebfcecc98e81bcbcb506827fee288760"