Skip to content

fix: select default org in template form if only one exists #16639

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 10 commits into from
Mar 10, 2025
Prev Previous commit
Next Next commit
fix e2e
  • Loading branch information
Kira-Pilot committed Feb 20, 2025
commit dd921e90f9d4552fe2457cbf605bbc6af0c3889c
9 changes: 7 additions & 2 deletions site/e2e/helpers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -270,8 +270,13 @@ export const createTemplate = async (
);
}

await orgPicker.click();
await page.getByText(orgName, { exact: true }).click();
// picker is disabled if only one org is available
const pickerIsDisabled = await orgPicker.isDisabled();

if (!pickerIsDisabled) {
await orgPicker.click();
await page.getByText(orgName, { exact: true }).click();
}
}

const name = randomName();
Expand Down
Loading