Merge pull request #1885 from appwrite/fix-e2e

Fix: E2E based on the new console flow
This commit is contained in:
Torsten Dittmann authored and GitHub committed 2025-05-24 16:21:55 +02:00
commit 8979a63a61
2 files changed
+5 -4

No files matched your search

+1 -1
View File
@@ -14,6 +14,6 @@ test('upgrade - free tier', async ({ page }) => {
await enterCreditCard(page);
// skip members
await page.getByRole('button', { name: 'change plan' }).click();
await page.waitForURL(/\/console\/project-(?:[a-z0-9]+-)?([^/]+)\/overview\/platforms/);
await page.waitForURL(/\/console\/project-(?:[a-z0-9]+-)?([^/]+)\/get-started/);
});
});
+4 -3
View File
@@ -19,7 +19,7 @@ export async function enterCreditCard(page: Page) {
await stripe.locator('id=Field-expiryInput').fill('1250');
await stripe.locator('id=Field-cvcInput').fill('123');
await stripe.locator('id=Field-countryInput').selectOption('DE');
await page.getByRole('button', { name: 'Add', exact: true }).click();
await dialog.getByRole('button', { name: 'Add', exact: true }).click();
await dialog.waitFor({
state: 'hidden'
});
@@ -29,8 +29,9 @@ export async function createProProject(page: Page): Promise<Metadata> {
const organizationId = await test.step('create organization', async () => {
await page.goto('./create-organization');
await page.locator('id=name').fill('test org');
await page.getByLabel('pro').check();
await page.getByRole('button', { name: 'get started' }).click();
await page.getByRole('radio', { name: /^Pro\b/ }).check();
// `create organization` because there's already free created on start!
await page.getByRole('button', { name: 'create organization' }).click();
await page.getByRole('button', { name: 'add' }).first().click();
await enterCreditCard(page);
// skip members