mirror of
https://github.com/coder/code-server.git
synced 2024-11-30 11:46:20 +03:00
da4de439e0
This uses the current dev build by default but can be overidden with CODE_SERVER_TEST_ENTRY (for example to test a release or some other version). Each instance has a separate state directory. This should make parallelization work. This also means you are no longer required to specify the password and address yourself (or the extension directory once we add a test extension). `yarn test:e2e` should just work as-is. Lastly, it means the tests are no longer subject to yarn watch randomly restarting.
16 lines
497 B
TypeScript
16 lines
497 B
TypeScript
import { storageState } from "../utils/constants"
|
|
import { describe, test, expect } from "./baseFixture"
|
|
|
|
// This test is to make sure the globalSetup works as expected
|
|
// meaning globalSetup ran and stored the storageState
|
|
describe("globalSetup", () => {
|
|
test.use({
|
|
storageState,
|
|
})
|
|
|
|
test("should keep us logged in using the storageState", async ({ codeServerPage }) => {
|
|
// Make sure the editor actually loaded
|
|
expect(await codeServerPage.isEditorVisible()).toBe(true)
|
|
})
|
|
})
|