test: adopt Playwright test()/test.describe() naming in e2e specs

Mechanical rename of it() -> test() and describe() -> test.describe() so the
subsequent Playwright migration diff only touches test bodies, not the
suite/case wrappers.
This commit is contained in:
HarelM
2026-07-08 12:42:13 +03:00
parent 8af1cfd5f8
commit f7b48139a4
9 changed files with 174 additions and 174 deletions
+10 -10
View File
@@ -1,10 +1,10 @@
import { MaputnikDriver } from "./maputnik-driver";
describe("map", () => {
test.describe("map", () => {
const { beforeAndAfter, get, when, then } = new MaputnikDriver();
beforeAndAfter();
describe("zoom level", () => {
it("via url", () => {
test.describe("zoom level", () => {
test("via url", () => {
const zoomLevel = 12.37;
when.setStyle("geojson", zoomLevel);
then(get.elementByTestId("maplibre:ctrl-zoom")).shouldBeVisible();
@@ -13,7 +13,7 @@ describe("map", () => {
);
});
it("via map controls", () => {
test("via map controls", () => {
const zoomLevel = 12.37;
when.setStyle("geojson", zoomLevel);
then(get.elementByTestId("maplibre:ctrl-zoom")).shouldBeVisible();
@@ -23,7 +23,7 @@ describe("map", () => {
);
});
it("via style file definition", () => {
test("via style file definition", () => {
when.setStyle("zoom_7_center_0_51");
then(get.elementByTestId("maplibre:ctrl-zoom")).shouldBeVisible();
then(get.elementByTestId("maplibre:ctrl-zoom")).shouldContainText(
@@ -39,23 +39,23 @@ describe("map", () => {
});
});
describe("search", () => {
it("should exist", () => {
test.describe("search", () => {
test("should exist", () => {
then(get.searchControl()).shouldBeVisible();
});
});
describe("popup", () => {
test.describe("popup", () => {
beforeEach(() => {
when.setStyle("rectangles");
then(get.locationHash().should("exist"));
});
it("should open on feature click", () => {
test("should open on feature click", () => {
when.clickCenter("maplibre:map");
then(get.elementByTestId("feature-layer-popup")).shouldBeVisible();
});
it("should open a second feature after closing popup", () => {
test("should open a second feature after closing popup", () => {
when.clickCenter("maplibre:map");
then(get.elementByTestId("feature-layer-popup")).shouldBeVisible();
when.closePopup();