Skip to content

Commit

Permalink
test(e2e): Setup FEE_BREAKDOWN feature flag
Browse files Browse the repository at this point in the history
  • Loading branch information
DafyddLlyr committed Dec 11, 2024
1 parent be492b1 commit 369eddd
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions e2e/tests/ui-driven/src/invite-to-pay/nominee.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import {
setUpTestContext,
tearDownTestContext,
} from "../helpers/context";
import { cards } from "../helpers/globalHelpers";
import { cards, setFeatureFlag } from "../helpers/globalHelpers";
import { fillGovUkCardDetails } from "../helpers/userActions";
import inviteToPayFlow from "../mocks/flows/invite-to-pay-flow";
import { getPaymentRequestBySessionId } from "./helpers";
Expand All @@ -29,6 +29,10 @@ const PAYMENT_NOT_FOUND_TEXT = "Sorry, we can’t find that payment link";

const adminGQLClient = getGraphQLClient();

test.beforeAll(async ({ page }) => {
await setFeatureFlag(page, "FEE_BREAKDOWN");
});

test.describe("Nominee journey @regression", async () => {
test.beforeAll(async () => {
try {
Expand Down Expand Up @@ -60,7 +64,8 @@ test.describe("Nominee journey @regression", async () => {
"Add a verandah or deck and changes to internal walls or layout";
await expect(page.getByText(formattedProjectType)).toBeVisible();

await expect(page.getByText("Fee breakdown")).toBeVisible();
await expect(page.getByText("Fee")).toBeVisible();
await expect(page.getByTestId("fee-breakdown-table")).toBeVisible();

const payButton = page.getByRole("button", {
name: "Pay using GOV.UK Pay",
Expand Down

0 comments on commit 369eddd

Please sign in to comment.