mirror of
https://github.com/maputnik/editor.git
synced 2026-07-09 15:37:28 +00:00
Move playwrite stuff to utils folder
This commit is contained in:
@@ -1,4 +1,4 @@
|
|||||||
import { test, describe, beforeEach } from "./fixtures";
|
import { test, describe, beforeEach } from "./utils/fixtures";
|
||||||
import { MaputnikDriver } from "./maputnik-driver";
|
import { MaputnikDriver } from "./maputnik-driver";
|
||||||
|
|
||||||
describe("accessibility", () => {
|
describe("accessibility", () => {
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
import { beforeEach, describe, test } from "./fixtures";
|
import { beforeEach, describe, test } from "./utils/fixtures";
|
||||||
import { MaputnikDriver } from "./maputnik-driver";
|
import { MaputnikDriver } from "./maputnik-driver";
|
||||||
|
|
||||||
describe("code editor", () => {
|
describe("code editor", () => {
|
||||||
|
|||||||
+1
-1
@@ -1,4 +1,4 @@
|
|||||||
import { beforeEach, describe, test } from "./fixtures";
|
import { beforeEach, describe, test } from "./utils/fixtures";
|
||||||
import { MaputnikDriver } from "./maputnik-driver";
|
import { MaputnikDriver } from "./maputnik-driver";
|
||||||
|
|
||||||
describe("history", () => {
|
describe("history", () => {
|
||||||
|
|||||||
+1
-1
@@ -1,4 +1,4 @@
|
|||||||
import { beforeEach, describe, test } from "./fixtures";
|
import { beforeEach, describe, test } from "./utils/fixtures";
|
||||||
import { MaputnikDriver } from "./maputnik-driver";
|
import { MaputnikDriver } from "./maputnik-driver";
|
||||||
|
|
||||||
describe("i18n", () => {
|
describe("i18n", () => {
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
import { beforeEach, describe, test } from "./fixtures";
|
import { beforeEach, describe, test } from "./utils/fixtures";
|
||||||
import { MaputnikDriver } from "./maputnik-driver";
|
import { MaputnikDriver } from "./maputnik-driver";
|
||||||
|
|
||||||
describe("keyboard", () => {
|
describe("keyboard", () => {
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
import { v1 as uuid } from "uuid";
|
import { v1 as uuid } from "uuid";
|
||||||
import { beforeEach, describe, test } from "./fixtures";
|
import { beforeEach, describe, test } from "./utils/fixtures";
|
||||||
import { MaputnikDriver } from "./maputnik-driver";
|
import { MaputnikDriver } from "./maputnik-driver";
|
||||||
|
|
||||||
describe("layer editor", () => {
|
describe("layer editor", () => {
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
import { beforeEach, describe, test } from "./fixtures";
|
import { beforeEach, describe, test } from "./utils/fixtures";
|
||||||
import { MaputnikDriver } from "./maputnik-driver";
|
import { MaputnikDriver } from "./maputnik-driver";
|
||||||
|
|
||||||
describe("layers list", () => {
|
describe("layers list", () => {
|
||||||
|
|||||||
+1
-1
@@ -1,4 +1,4 @@
|
|||||||
import { beforeEach, describe, test } from "./fixtures";
|
import { beforeEach, describe, test } from "./utils/fixtures";
|
||||||
import { MaputnikDriver } from "./maputnik-driver";
|
import { MaputnikDriver } from "./maputnik-driver";
|
||||||
|
|
||||||
describe("map", () => {
|
describe("map", () => {
|
||||||
|
|||||||
@@ -3,7 +3,7 @@ import path from "node:path";
|
|||||||
import { fileURLToPath } from "node:url";
|
import { fileURLToPath } from "node:url";
|
||||||
import { expect, type Locator, type Page, type Request } from "@playwright/test";
|
import { expect, type Locator, type Page, type Request } from "@playwright/test";
|
||||||
import { readCoverage } from "./coverage";
|
import { readCoverage } from "./coverage";
|
||||||
import { currentPage, recordCoverageChunk } from "./fixtures";
|
import { currentPage, recordCoverageChunk } from "./utils/fixtures";
|
||||||
import { ModalDriver } from "./modal-driver";
|
import { ModalDriver } from "./modal-driver";
|
||||||
|
|
||||||
const baseUrl = "http://localhost:8888/";
|
const baseUrl = "http://localhost:8888/";
|
||||||
|
|||||||
+1
-1
@@ -1,4 +1,4 @@
|
|||||||
import { test, expect, describe, beforeEach } from "./fixtures";
|
import { test, expect, describe, beforeEach } from "./utils/fixtures";
|
||||||
import { MaputnikDriver } from "./maputnik-driver";
|
import { MaputnikDriver } from "./maputnik-driver";
|
||||||
import tokens from "../src/config/tokens.json" with { type: "json" };
|
import tokens from "../src/config/tokens.json" with { type: "json" };
|
||||||
|
|
||||||
|
|||||||
@@ -9,8 +9,8 @@ const baseURL = process.env.E2E_BASE_URL ?? "http://localhost:8888/";
|
|||||||
export default defineConfig({
|
export default defineConfig({
|
||||||
testDir: "./e2e",
|
testDir: "./e2e",
|
||||||
testMatch: "**/*.spec.ts",
|
testMatch: "**/*.spec.ts",
|
||||||
globalSetup: "./e2e/global-setup.ts",
|
globalSetup: "./e2e/e2e-setup.ts",
|
||||||
globalTeardown: "./e2e/global-teardown.ts",
|
globalTeardown: "./e2e/e2e-teardown.ts",
|
||||||
fullyParallel: true,
|
fullyParallel: true,
|
||||||
forbidOnly: isCI,
|
forbidOnly: isCI,
|
||||||
retries: isCI ? 2 : 0,
|
retries: isCI ? 2 : 0,
|
||||||
|
|||||||
Reference in New Issue
Block a user