realm_creation: Let user choose their org type.

This commit is contained in:
Aman Agrawal 2024-10-19 10:48:31 +00:00 committed by Tim Abbott
parent 3ec58fd3d5
commit b895e9dc6f
2 changed files with 3 additions and 1 deletions

View File

@ -22,7 +22,8 @@
<div class="input-box">
<div class="inline-block relative">
<select name="realm_type" id="realm_type">
<select name="realm_type" id="realm_type" required>
<option disabled selected value>-- {{ _("Select one") }} --</option>
{% for realm_type in sorted_realm_types %}
{% if not realm_type.hidden %}
<option value="{{ realm_type.id }}" {% if form.realm_type.value() == realm_type.id %}selected{% endif %} >{{ _(realm_type.name) }}</option>

View File

@ -16,6 +16,7 @@ async function realm_creation_tests(page: Page): Promise<void> {
await page.waitForSelector("#email");
await page.type("#email", email);
await page.type("#id_team_name", organization_name);
await page.select("#realm_type", "business");
await page.$eval("input#realm_in_root_domain", (el) => {
el.click();
});