mirror of
https://github.com/maputnik/editor.git
synced 2026-07-09 15:37:28 +00:00
21 lines
575 B
TypeScript
21 lines
575 B
TypeScript
import { MaputnikDriver } from "./maputnik-driver";
|
|
|
|
const test = it;
|
|
|
|
describe("code editor", () => {
|
|
const { beforeAndAfter, when, get, then } = new MaputnikDriver();
|
|
beforeAndAfter();
|
|
|
|
test("open code editor", () => {
|
|
when.click("nav:code-editor");
|
|
then(get.element(".maputnik-code-editor")).shouldExist();
|
|
});
|
|
|
|
test("closes code editor", () => {
|
|
when.click("nav:code-editor");
|
|
then(get.element(".maputnik-code-editor")).shouldExist();
|
|
when.click("nav:code-editor");
|
|
then(get.element(".maputnik-code-editor")).shouldNotExist();
|
|
});
|
|
});
|