2021-06-10 13:09:38 +00:00
|
|
|
import { storageState } from "../utils/constants"
|
2021-06-22 21:34:44 +00:00
|
|
|
import { describe, test, expect } from "./baseFixture"
|
2021-04-01 18:48:23 +00:00
|
|
|
|
|
|
|
// This test is to make sure the globalSetup works as expected
|
2021-06-10 13:09:38 +00:00
|
|
|
// meaning globalSetup ran and stored the storageState
|
2021-06-22 21:34:44 +00:00
|
|
|
describe("globalSetup", () => {
|
2021-06-10 13:09:38 +00:00
|
|
|
test.use({
|
|
|
|
storageState,
|
2021-04-21 21:31:15 +00:00
|
|
|
})
|
2021-06-10 13:09:38 +00:00
|
|
|
|
|
|
|
test("should keep us logged in using the storageState", async ({ codeServerPage }) => {
|
2021-04-05 22:18:13 +00:00
|
|
|
// Make sure the editor actually loaded
|
2021-06-10 13:09:38 +00:00
|
|
|
expect(await codeServerPage.isEditorVisible()).toBe(true)
|
2021-04-01 18:48:23 +00:00
|
|
|
})
|
|
|
|
})
|