Skip to content

Commit

Permalink
refactor: Move 'flow' dir to '/mocks'
Browse files Browse the repository at this point in the history
  • Loading branch information
DafyddLlyr committed Oct 5, 2023
1 parent fadbae7 commit fa02fbe
Show file tree
Hide file tree
Showing 10 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion e2e/tests/ui-driven/src/invite-to-pay/agent.spec.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { test, expect, Page, BrowserContext } from "@playwright/test";
import { addSessionToContext, modifyFlow } from "../helpers";
import inviteToPayFlow from "../flows/invite-to-pay-flow";
import inviteToPayFlow from "../mocks/flows/invite-to-pay-flow";
import {
Context,
contextDefaults,
Expand Down
2 changes: 1 addition & 1 deletion e2e/tests/ui-driven/src/invite-to-pay/mocks.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import {
PaymentRequest,
SessionData,
} from "@opensystemslab/planx-core/types";
import inviteToPayFlow from "../flows/invite-to-pay-flow";
import inviteToPayFlow from "../mocks/flows/invite-to-pay-flow";
import { TEST_EMAIL } from "../helpers";

export const mockPaymentRequest: Partial<PaymentRequest> = {
Expand Down
2 changes: 1 addition & 1 deletion e2e/tests/ui-driven/src/invite-to-pay/nominee.spec.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { test, expect, Page, APIRequestContext } from "@playwright/test";
import { v4 as uuidV4 } from "uuid";
import { fillGovUkCardDetails, cards } from "../helpers";
import inviteToPayFlow from "../flows/invite-to-pay-flow";
import inviteToPayFlow from "../mocks/flows/invite-to-pay-flow";
import {
Context,
contextDefaults,
Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion e2e/tests/ui-driven/src/pay.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import {
waitForPaymentResponse,
} from "./helpers";
import type { Page } from "@playwright/test";
import payFlow from "./flows/pay-flow.json";
import payFlow from "./mocks/flows/pay-flow.json";
import { gql, GraphQLClient } from "graphql-request";
import type { SessionData } from "@opensystemslab/planx-core/types";
import type { Context } from "./context";
Expand Down
2 changes: 1 addition & 1 deletion e2e/tests/ui-driven/src/save-and-return.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { test, expect } from "@playwright/test";
import {
simpleSendFlow,
modifiedSimpleSendFlow,
} from "./flows/save-and-return-flows";
} from "./mocks/flows/save-and-return-flows";
import {
contextDefaults,
setUpTestContext,
Expand Down
2 changes: 1 addition & 1 deletion e2e/tests/ui-driven/src/sections.spec.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { expect, test } from "@playwright/test";
import { flow, updatedQuestionAnswers } from "./flows/sections-flow";
import { flow, updatedQuestionAnswers } from "./mocks/flows/sections-flow";
import {
contextDefaults,
setUpTestContext,
Expand Down

0 comments on commit fa02fbe

Please sign in to comment.