Skip to content

Commit b468597

Browse files
committed
refactor: move e2e tests to test/e2e
1 parent 3f7104b commit b468597

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

test/e2e.test.ts renamed to test/e2e/e2e.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { chromium, Page, Browser } from "playwright"
2-
import { CODE_SERVER_ADDRESS } from "./constants"
2+
import { CODE_SERVER_ADDRESS } from "../utils/constants"
33

44
let browser: Browser
55
let page: Page

test/goHome.test.ts renamed to test/e2e/goHome.test.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { chromium, Page, Browser, BrowserContext, Cookie } from "playwright"
2-
import { hash } from "../src/node/util"
3-
import { CODE_SERVER_ADDRESS, PASSWORD, STORAGE } from "./constants"
4-
import { createCookieIfDoesntExist } from "./helpers"
2+
import { hash } from "../../src/node/util"
3+
import { CODE_SERVER_ADDRESS, PASSWORD, STORAGE, E2E_VIDEO_DIR } from "../utils/constants"
4+
import { createCookieIfDoesntExist } from "../utils/helpers"
55

66
describe("go home", () => {
77
let browser: Browser
@@ -45,7 +45,7 @@ describe("go home", () => {
4545

4646
context = await browser.newContext({
4747
storageState: { cookies: maybeUpdatedCookies },
48-
recordVideo: { dir: "./test/videos/" },
48+
recordVideo: { dir: E2E_VIDEO_DIR },
4949
})
5050
})
5151

test/login.test.ts renamed to test/e2e/login.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { chromium, Page, Browser, BrowserContext } from "playwright"
2-
import { CODE_SERVER_ADDRESS, PASSWORD } from "./constants"
2+
import { CODE_SERVER_ADDRESS, PASSWORD } from "../utils/constants"
33

44
describe("login", () => {
55
let browser: Browser

0 commit comments

Comments
 (0)