Skip to content

Commit

Permalink
test(playwright): Set test dir to e2e
Browse files Browse the repository at this point in the history
move screenshots to subfolder of e2e
  • Loading branch information
ff6347 committed Nov 11, 2023
1 parent 767aa86 commit fcefd0e
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion e2e/example.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ test("basic screenshot", async ({ page }) => {

const viewport = await page.viewportSize();
await page.screenshot({
path: "screenshot.png",
path: "e2e/screenshots/basic-screenshot.png",
clip: {
x: 0,
y: 0,
Expand Down
Binary file added e2e/screenshots/basic-screenshot.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion playwright.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ const ciConfig = {
* See https://playwright.dev/docs/test-configuration.
*/
export default defineConfig({
testDir: "./tests",
testDir: "./e2e",
/* Run tests in files in parallel */
fullyParallel: true,
/* Fail the build on CI if you accidentally left test.only in the source code. */
Expand Down

0 comments on commit fcefd0e

Please sign in to comment.