Skip to content

Commit

Permalink
Merged playwright test utils
Browse files Browse the repository at this point in the history
  • Loading branch information
marekdedic committed Oct 22, 2023
1 parent bc77824 commit 0ced37a
Show file tree
Hide file tree
Showing 19 changed files with 17 additions and 90 deletions.
2 changes: 1 addition & 1 deletion __tests__/frontend/basic.spec.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { expect, test } from "@playwright/test";

import { setup } from "../test-utils-playwright/stub-endpoints";
import { setup } from "../test-utils/stub-endpoints";

test("works with basic configuration", async ({ page }) => {
await page.goto("/");
Expand Down
2 changes: 1 addition & 1 deletion __tests__/frontend/configuration.spec.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { expect, test } from "@playwright/test";

import { setup } from "../test-utils-playwright/stub-endpoints";
import { setup } from "../test-utils/stub-endpoints";

test("works with copy configuration", async ({ page }) => {
await page.goto("/");
Expand Down
2 changes: 1 addition & 1 deletion __tests__/frontend/destination-selection-api-error.spec.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { expect, test } from "@playwright/test";

import { setup } from "../test-utils-playwright/stub-endpoints";
import { setup } from "../test-utils/stub-endpoints";

test("handles raw errors in source folder selection gracefully", async ({
page,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { expect, test } from "@playwright/test";

import { setup } from "../test-utils-playwright/stub-endpoints";
import { setup } from "../test-utils/stub-endpoints";

test("handles raw errors in source folder selection gracefully", async ({
page,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { expect, test } from "@playwright/test";

import { setup } from "../test-utils-playwright/stub-endpoints";
import { setup } from "../test-utils/stub-endpoints";

test("handles raw errors in source folder selection gracefully", async ({
page,
Expand Down
2 changes: 1 addition & 1 deletion __tests__/frontend/move-api-error.spec.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { expect, test } from "@playwright/test";

import { setup } from "../test-utils-playwright/stub-endpoints";
import { setup } from "../test-utils/stub-endpoints";

test("works with an API error", async ({ page }) => {
await page.goto("/");
Expand Down
2 changes: 1 addition & 1 deletion __tests__/frontend/move-folders-equal-error.spec.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { expect, test } from "@playwright/test";

import { setup } from "../test-utils-playwright/stub-endpoints";
import { setup } from "../test-utils/stub-endpoints";

test("works with source and destination folders being equal", async ({
page,
Expand Down
2 changes: 1 addition & 1 deletion __tests__/frontend/move-repeat-after-timeout.spec.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { expect, test } from "@playwright/test";

import { setup } from "../test-utils-playwright/stub-endpoints";
import { setup } from "../test-utils/stub-endpoints";

test("works with an unhandled move error", async ({ page }) => {
await page.goto("/");
Expand Down
2 changes: 1 addition & 1 deletion __tests__/frontend/move-unhandled-error.spec.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { expect, test } from "@playwright/test";

import { setup } from "../test-utils-playwright/stub-endpoints";
import { setup } from "../test-utils/stub-endpoints";

test("works with an unhandled move error", async ({ page }) => {
await page.goto("/");
Expand Down
2 changes: 1 addition & 1 deletion __tests__/frontend/move-unknown-error.spec.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { expect, test } from "@playwright/test";

import { setup } from "../test-utils-playwright/stub-endpoints";
import { setup } from "../test-utils/stub-endpoints";

test("works with an unknown move error", async ({ page }) => {
await page.goto("/");
Expand Down
2 changes: 1 addition & 1 deletion __tests__/frontend/navigation.spec.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { expect, test } from "@playwright/test";

import { setup } from "../test-utils-playwright/stub-endpoints";
import { setup } from "../test-utils/stub-endpoints";

test("works with basic configuration", async ({ page }) => {
await page.goto("/");
Expand Down
2 changes: 1 addition & 1 deletion __tests__/frontend/non-empty.spec.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { expect, test } from "@playwright/test";

import { setup } from "../test-utils-playwright/stub-endpoints";
import { setup } from "../test-utils/stub-endpoints";

test("works with non-empty destination folder", async ({ page }) => {
await page.goto("/");
Expand Down
2 changes: 1 addition & 1 deletion __tests__/frontend/source-destination-selection.spec.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { expect, test } from "@playwright/test";

import { setup } from "../test-utils-playwright/stub-endpoints";
import { setup } from "../test-utils/stub-endpoints";

test("works with folder selection", async ({ page }) => {
await page.goto("/");
Expand Down
2 changes: 1 addition & 1 deletion __tests__/frontend/source-selection-api-error.spec.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { expect, test } from "@playwright/test";

import { setup } from "../test-utils-playwright/stub-endpoints";
import { setup } from "../test-utils/stub-endpoints";

test("handles raw errors in source folder selection gracefully", async ({
page,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { expect, test } from "@playwright/test";

import { setup } from "../test-utils-playwright/stub-endpoints";
import { setup } from "../test-utils/stub-endpoints";

test("handles raw errors in source folder selection gracefully", async ({
page,
Expand Down
2 changes: 1 addition & 1 deletion __tests__/frontend/source-selection-unknown-error.spec.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { expect, test } from "@playwright/test";

import { setup } from "../test-utils-playwright/stub-endpoints";
import { setup } from "../test-utils/stub-endpoints";

test("handles raw errors in source folder selection gracefully", async ({
page,
Expand Down
2 changes: 1 addition & 1 deletion __tests__/frontend/success-with-errors.spec.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { expect, test } from "@playwright/test";

import { setup } from "../test-utils-playwright/stub-endpoints";
import { setup } from "../test-utils/stub-endpoints";

test("works and displays moving errors", async ({ page }) => {
await page.goto("/");
Expand Down
File renamed without changes.
73 changes: 0 additions & 73 deletions __tests__/test-utils/stubEndpoints.ts

This file was deleted.

0 comments on commit 0ced37a

Please sign in to comment.