mirror of
https://github.com/maputnik/editor.git
synced 2026-07-09 23:47:25 +00:00
24 lines
744 B
TypeScript
24 lines
744 B
TypeScript
import { beforeEach, describe, test } from "./fixtures";
|
|
import { MaputnikDriver } from "./maputnik-driver";
|
|
|
|
describe("code editor", () => {
|
|
const { given, get, when, then } = new MaputnikDriver();
|
|
|
|
beforeEach(async () => {
|
|
await given.setupMockBackedResponses();
|
|
await when.setStyle("both");
|
|
});
|
|
|
|
test("open code editor", async () => {
|
|
await when.click("nav:code-editor");
|
|
await then(get.element(".maputnik-code-editor")).shouldExist();
|
|
});
|
|
|
|
test("closes code editor", async () => {
|
|
await when.click("nav:code-editor");
|
|
await then(get.element(".maputnik-code-editor")).shouldExist();
|
|
await when.click("nav:code-editor");
|
|
await then(get.element(".maputnik-code-editor")).shouldNotExist();
|
|
});
|
|
});
|