Skip to content

Commit

Permalink
mock folder name changed
Browse files Browse the repository at this point in the history
  • Loading branch information
hasan-py committed Oct 26, 2024
1 parent e7dd51d commit ae8d114
Show file tree
Hide file tree
Showing 13 changed files with 19 additions and 19 deletions.
13 changes: 0 additions & 13 deletions client/e2e/fixtures/index.ts

This file was deleted.

File renamed without changes.
File renamed without changes.
13 changes: 13 additions & 0 deletions client/e2e/mockResponses/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
import createModeratorResponse from "./createModerator";
import gameListResponse from "./gameList";
import moderatorExistsResponse from "./moderatorExists";
import moderatorNotExistsResponse from "./moderatorNotExists";
import mapDataResponse from "./mapData";

export {
createModeratorResponse,
gameListResponse,
moderatorExistsResponse,
moderatorNotExistsResponse,
mapDataResponse,
};
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion client/e2e/tests/addEditGame.spec.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { test, expect } from "@playwright/test";
import { API_ROUTES } from "../support/constants";
import { gameListResponse, moderatorExistsResponse } from "../fixtures";
import { gameListResponse, moderatorExistsResponse } from "../mockResponses";

test.describe("Games: Add, Edit from Admin panel", () => {
const currentGame = gameListResponse.data[0];
Expand Down
2 changes: 1 addition & 1 deletion client/e2e/tests/gameListAndReview.spec.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { test, expect } from "@playwright/test";
import { API_ROUTES } from "../support/constants";
import { gameListResponse, moderatorExistsResponse } from "../fixtures";
import { gameListResponse, moderatorExistsResponse } from "../mockResponses";

test.describe("Game List", () => {
test.beforeEach(async ({ page }) => {
Expand Down
2 changes: 1 addition & 1 deletion client/e2e/tests/home.spec.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { expect, test } from "@playwright/test";
import { gameListResponse } from "../fixtures";
import { gameListResponse } from "../mockResponses";
import { API_ROUTES } from "../support/constants";

test("Home page: Rendered successfully and show hero text", async ({
Expand Down
2 changes: 1 addition & 1 deletion client/e2e/tests/login.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import {
createModeratorResponse,
moderatorExistsResponse,
moderatorNotExistsResponse,
} from "../fixtures";
} from "../mockResponses";
import { API_ROUTES } from "../support/constants";

test.describe("Create Moderator", () => {
Expand Down
2 changes: 1 addition & 1 deletion client/e2e/tests/moderator.spec.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { test, expect } from "@playwright/test";
import { API_ROUTES } from "../support/constants";
import { moderatorExistsResponse } from "../fixtures";
import { moderatorExistsResponse } from "../mockResponses";

test.describe("Moderator Admin Panel", () => {
test.beforeEach(async ({ page }) => {
Expand Down
2 changes: 1 addition & 1 deletion client/e2e/tests/reviewsMap.spec.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { test, expect } from "@playwright/test";
import { API_ROUTES } from "../support/constants";
import { mapDataResponse, moderatorExistsResponse } from "../fixtures";
import { mapDataResponse, moderatorExistsResponse } from "../mockResponses";

test.describe("Leaflet Map Test", () => {
test.beforeEach(async ({ page }) => {
Expand Down

0 comments on commit ae8d114

Please sign in to comment.