mirror of
https://github.com/maputnik/editor.git
synced 2026-07-04 21:17:27 +00:00
84adbe6eb2
Added shellygo package. Refactor driver and e2e tests. Added data-wd attributes to missing places. --------- Co-authored-by: shelly_goldblit <shelly_goldblit@dell.com>
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.isExists(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.isExists(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.isExists(selector);
|
|
when.tab().tab().tab();
|
|
should.beFocused(selector);
|
|
when.click(selector);
|
|
should.canvasBeFocused();
|
|
});
|
|
});
|
|
});
|