Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .changeset/thick-brooms-shave.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
---
---
8 changes: 3 additions & 5 deletions integration/tests/pricing-table.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,11 +32,10 @@ testAgainstRunningApps({ withEnv: [appConfigs.envs.withBilling] })('pricing tabl
});

test('renders pricing details of a specific plan', async ({ page, context }) => {
test.skip(app.name.includes('astro'), 'Still working on it');

const u = createTestUtils({ app, page, context });
await u.po.page.goToRelative('/billing/plan-details-btn');

await u.po.page.waitForClerkJsLoaded();
await u.po.page.getByRole('button', { name: 'Plan details' }).click();

await u.po.planDetails.waitForMounted();
Expand Down Expand Up @@ -82,7 +81,6 @@ testAgainstRunningApps({ withEnv: [appConfigs.envs.withBilling] })('pricing tabl
page,
context,
}) => {
test.skip(app.name.includes('astro'), 'Still working on it');
const u = createTestUtils({ app, page, context });
await u.po.signIn.goTo();
await u.po.signIn.signInWithEmailAndInstantPassword({ email: fakeUser.email, password: fakeUser.password });
Expand All @@ -97,12 +95,12 @@ testAgainstRunningApps({ withEnv: [appConfigs.envs.withBilling] })('pricing tabl
});

test('when signed in, clicking checkout button open checkout drawer', async ({ page, context }) => {
test.skip(app.name.includes('astro'), 'Still working on it');
const u = createTestUtils({ app, page, context });
await u.po.signIn.goTo();
await u.po.signIn.signInWithEmailAndInstantPassword({ email: fakeUser.email, password: fakeUser.password });
await u.po.page.goToRelative('/billing/checkout-btn');

await u.po.page.waitForClerkJsLoaded();
await u.po.page.getByRole('button', { name: 'Checkout Now' }).click();
await u.po.checkout.waitForMounted();
await u.po.page.getByText(/^Checkout$/).click();
Expand Down Expand Up @@ -132,12 +130,12 @@ testAgainstRunningApps({ withEnv: [appConfigs.envs.withBilling] })('pricing tabl
});

test('opens subscription details drawer', async ({ page, context }) => {
test.skip(app.name.includes('astro'), 'Still working on it');
const u = createTestUtils({ app, page, context });
await u.po.signIn.goTo();
await u.po.signIn.signInWithEmailAndInstantPassword({ email: fakeUser.email, password: fakeUser.password });
await u.po.page.goToRelative('/billing/subscription-details-btn');

await u.po.page.waitForClerkJsLoaded();
await u.po.page.getByRole('button', { name: 'Subscription details' }).click();

await u.po.subscriptionDetails.waitForMounted();
Expand Down