This commit is contained in:
Harsh Mahajan
2025-10-24 18:14:00 +05:30
parent 01f70ef170
commit a4e82e34ce
2 changed files with 10 additions and 4 deletions
+5 -2
View File
@@ -18,9 +18,12 @@ export async function createFreeProject(page: Page): Promise<Metadata> {
await page.getByRole('button', { name: 'create project' }).first().click();
const dialog = page.locator('dialog[open]');
await dialog.getByPlaceholder('Project name').fill('test project');
const regionSelector = dialog.getByPlaceholder('Select a region');
await regionSelector.click();
await dialog.getByRole('option', { name: 'New York' }).click();
if (await regionSelector.isVisible()) {
await regionSelector.click();
await dialog.getByRole('option', { name: 'New York' }).click();
}
await dialog.getByRole('button', { name: 'create' }).click();
await page.waitForURL(/\/project-[^/]+-[^/]+/);
+5 -2
View File
@@ -51,9 +51,12 @@ export async function createProProject(page: Page): Promise<Metadata> {
await page.getByRole('button', { name: 'create project' }).first().click();
const dialog = page.locator('dialog[open]');
await dialog.getByPlaceholder('Project name').fill('test project');
const regionSelector = dialog.getByPlaceholder('Select a region');
await regionSelector.click();
await dialog.getByRole('option', { name: 'New York' }).click();
if (await regionSelector.isVisible()) {
await regionSelector.click();
await dialog.getByRole('option', { name: 'New York' }).click();
}
await dialog.getByRole('button', { name: 'create' }).click();
await page.waitForURL(/\/project-[^/]+-[^/]+/);