mirror of
https://github.com/maputnik/editor.git
synced 2026-07-05 13:37:25 +00:00
40 lines
1.0 KiB
TypeScript
40 lines
1.0 KiB
TypeScript
import MaputnikDriver from "./driver";
|
|
|
|
describe("accessibility", () => {
|
|
let { beforeAndAfter, given, when, get, should } = new MaputnikDriver();
|
|
beforeAndAfter();
|
|
|
|
describe("skip links", () => {
|
|
beforeEach(() => {
|
|
when.setStyle("layer");
|
|
});
|
|
|
|
it("skip link to layer list", () => {
|
|
const selector = "root:skip:layer-list";
|
|
should.exist(selector);
|
|
when.tab();
|
|
should.beFocused(selector);
|
|
when.click(selector);
|
|
should.beFocused("skip-target-layer-list");
|
|
});
|
|
|
|
it("skip link to layer editor", () => {
|
|
const selector = "root:skip:layer-editor";
|
|
should.exist(selector);
|
|
when.tab().tab();
|
|
should.beFocused(selector);
|
|
when.click(selector);
|
|
should.beFocused("skip-target-layer-editor");
|
|
});
|
|
|
|
it("skip link to map view", () => {
|
|
const selector = "root:skip:map-view";
|
|
should.exist(selector);
|
|
when.tab().tab().tab();
|
|
should.beFocused(selector);
|
|
when.click(selector);
|
|
should.canvasBeFocused();
|
|
});
|
|
});
|
|
});
|