We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6180c2d commit ca8f832Copy full SHA for ca8f832
.eslintrc.yaml
@@ -15,10 +15,12 @@ extends:
15
- plugin:import/recommended
16
- plugin:import/typescript
17
- plugin:prettier/recommended
18
- - prettier # Removes eslint rules that conflict with prettier.
19
# Recommended by jest-playwright
20
# https://github.com/playwright-community/jest-playwright#globals
21
- plugin:jest-playwright/recommended
+ # Prettier should always be last
22
+ # Removes eslint rules that conflict with prettier.
23
+ - prettier
24
25
rules:
26
# Sometimes you need to add args to implement a function signature even
test/e2e/globalSetup.test.ts
@@ -10,17 +10,12 @@ describe("globalSetup", () => {
10
const storageState = JSON.parse(STORAGE) || {}
11
await jestPlaywright.resetContext({
12
storageState,
13
- logger: {
14
- isEnabled: (name, severity) => name === "browser",
- log: (name, severity, message, args) => console.log(`${name} ${message}`),
- },
})
await page.goto(CODE_SERVER_ADDRESS, { waitUntil: "networkidle" })
it("should keep us logged in using the storageState", async () => {
- // See the editor
- const codeServerEditor = await page.isVisible(".monaco-workbench")
- expect(codeServerEditor).toBeTruthy()
+ // Make sure the editor actually loaded
+ expect(await page.isVisible("div.monaco-workbench"))
test/e2e/login.test.ts
@@ -3,12 +3,7 @@ import { CODE_SERVER_ADDRESS, PASSWORD } from "../utils/constants"
3
4
describe("login", () => {
5
beforeEach(async () => {
6
- await jestPlaywright.resetBrowser({
7
8
9
- })
+ await jestPlaywright.resetBrowser()
@@ -18,8 +13,7 @@ describe("login", () => {
// Click the submit button and login
await page.click(".submit")
await page.waitForLoadState("networkidle")
test/e2e/logout.test.ts
describe("logout", () => {
@@ -18,9 +13,8 @@ describe("logout", () => {
// Click the Application menu
await page.click("[aria-label='Application Menu']")
test/e2e/openHelpAbout.test.ts
@@ -8,10 +8,6 @@ describe("Open Help > About", () => {
test/package.json
@@ -7,16 +7,14 @@
"@types/node-fetch": "^2.5.8",
"@types/supertest": "^2.0.10",
"jest": "^26.6.3",
+ "jest-playwright-preset": "^1.5.1",
"jsdom": "^16.4.0",
"node-fetch": "^2.6.1",
"playwright": "^1.8.0",
- "supertest": "^6.1.1",
- "ts-jest": "^26.4.4"
- "dependencies": {
- "jest-playwright-preset": "^1.5.1",
"playwright-chromium": "^1.10.0",
"playwright-firefox": "^1.10.0",
- "playwright-webkit": "^1.10.0"
+ "playwright-webkit": "^1.10.0",
+ "supertest": "^6.1.1",
+ "ts-jest": "^26.4.4"
}
test/utils/globalSetup.ts
@@ -2,8 +2,8 @@
2
// so that it authenticates us into code-server
// ensuring that we're logged in before we run any tests
import { chromium } from "playwright"
-import { PASSWORD } from "./constants"
import { hash } from "../../src/node/util"
+import { PASSWORD } from "./constants"
import * as wtfnode from "./wtfnode"
const cookieToStore = {
AltStyle によって変換されたページ (->オリジナル) / アドレス: モード: デフォルト 音声ブラウザ ルビ付き 配色反転 文字拡大 モバイル
0 commit comments