Skip to content

Commit

Permalink
fix: Move beforeAll()
Browse files Browse the repository at this point in the history
  • Loading branch information
DafyddLlyr committed Dec 11, 2024
1 parent 369eddd commit b60a378
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 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,14 +29,11 @@ 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 () => {
test.beforeAll(async ({ page }) => {
try {
context = await setUpTestContext(context);
await setFeatureFlag(page, "FEE_BREAKDOWN");
} catch (e) {
// ensure proper teardown if setup fails
await tearDownTestContext();
Expand Down

0 comments on commit b60a378

Please sign in to comment.