Skip to content

armgit / zulip

Public Imported from GitHub
0

Zulip server and web application. Open-source team chat that helps teams stay productive and focused.

realm_creation: Let user choose their org type.

Aman Agrawalb895e9dc6f08
diff --git a/templates/zerver/realm_creation_form.html b/templates/zerver/realm_creation_form.html
index e8fc8ebb5e6..84115a7d33d 100644
--- a/templates/zerver/realm_creation_form.html
+++ b/templates/zerver/realm_creation_form.html
@@ -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>
diff --git a/web/e2e-tests/realm-creation.test.ts b/web/e2e-tests/realm-creation.test.ts
index fc208ea0ea7..8022d089b10 100644
--- a/web/e2e-tests/realm-creation.test.ts
+++ b/web/e2e-tests/realm-creation.test.ts
@@ -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();
});