Skip to content

Commit

Permalink
fix: Move into beforeEach()
Browse files Browse the repository at this point in the history
  • Loading branch information
DafyddLlyr committed Dec 11, 2024
1 parent 369eddd commit 16f3e5a
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions e2e/tests/ui-driven/src/invite-to-pay/nominee.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,6 @@ 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 All @@ -44,6 +40,10 @@ test.describe("Nominee journey @regression", async () => {
}
});

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

test.afterAll(async () => {
await tearDownTestContext();
});
Expand Down

0 comments on commit 16f3e5a

Please sign in to comment.