mirror of https://github.com/coder/code-server.git
refactor: move e2e tests to test/e2e
This commit is contained in:
parent
3f7104bb4e
commit
b468597872
|
@ -1,5 +1,5 @@
|
||||||
import { chromium, Page, Browser } from "playwright"
|
import { chromium, Page, Browser } from "playwright"
|
||||||
import { CODE_SERVER_ADDRESS } from "./constants"
|
import { CODE_SERVER_ADDRESS } from "../utils/constants"
|
||||||
|
|
||||||
let browser: Browser
|
let browser: Browser
|
||||||
let page: Page
|
let page: Page
|
|
@ -1,7 +1,7 @@
|
||||||
import { chromium, Page, Browser, BrowserContext, Cookie } from "playwright"
|
import { chromium, Page, Browser, BrowserContext, Cookie } from "playwright"
|
||||||
import { hash } from "../src/node/util"
|
import { hash } from "../../src/node/util"
|
||||||
import { CODE_SERVER_ADDRESS, PASSWORD, STORAGE } from "./constants"
|
import { CODE_SERVER_ADDRESS, PASSWORD, STORAGE, E2E_VIDEO_DIR } from "../utils/constants"
|
||||||
import { createCookieIfDoesntExist } from "./helpers"
|
import { createCookieIfDoesntExist } from "../utils/helpers"
|
||||||
|
|
||||||
describe("go home", () => {
|
describe("go home", () => {
|
||||||
let browser: Browser
|
let browser: Browser
|
||||||
|
@ -45,7 +45,7 @@ describe("go home", () => {
|
||||||
|
|
||||||
context = await browser.newContext({
|
context = await browser.newContext({
|
||||||
storageState: { cookies: maybeUpdatedCookies },
|
storageState: { cookies: maybeUpdatedCookies },
|
||||||
recordVideo: { dir: "./test/videos/" },
|
recordVideo: { dir: E2E_VIDEO_DIR },
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
import { chromium, Page, Browser, BrowserContext } from "playwright"
|
import { chromium, Page, Browser, BrowserContext } from "playwright"
|
||||||
import { CODE_SERVER_ADDRESS, PASSWORD } from "./constants"
|
import { CODE_SERVER_ADDRESS, PASSWORD } from "../utils/constants"
|
||||||
|
|
||||||
describe("login", () => {
|
describe("login", () => {
|
||||||
let browser: Browser
|
let browser: Browser
|
Loading…
Reference in New Issue