Skip to content

Commit

Permalink
refine flows type use
Browse files Browse the repository at this point in the history
  • Loading branch information
RODO94 committed Nov 27, 2024
1 parent 6a54f2a commit 551aae8
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions e2e/tests/ui-driven/src/helpers/context.ts
Original file line number Diff line number Diff line change
Expand Up @@ -74,14 +74,14 @@ export async function setUpTestContext(
context.team?.id &&
context.user?.id
) {
context.flows![0].id = await $admin.flow.create({
context.flows[0].id = await $admin.flow.create({
slug: context.flows[0].slug,
name: context.flows[0].name,
teamId: context.team.id,
data: context.flows[0].data,
status: "online",
});
context.flows![0].publishedId = await $admin.flow.publish({
context.flows[0].publishedId = await $admin.flow.publish({
flow: {
id: context.flows[0].id,
data: context.flows[0].data,
Expand Down
4 changes: 2 additions & 2 deletions e2e/tests/ui-driven/src/invite-to-pay/helpers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ import {
* Navigates to pay component whilst completing the minimum requirements for an Invite to Pay flow
*/
export async function navigateToPayComponent(page: Page, context: Context) {
const previewURL = `/${context.team!.slug!}/${context.flows![0]
.slug!}/published?analytics=false`;
const previewURL = `/${context.team!.slug!}/${context.flows?.[0]
.slug}/published?analytics=false`;
await page.goto(previewURL);

await fillInEmail({ page, context });
Expand Down

0 comments on commit 551aae8

Please sign in to comment.