diff --git a/frontend_tests/puppeteer_tests/subscriptions.ts b/frontend_tests/puppeteer_tests/subscriptions.ts index 138b6d1444..67a60ac228 100644 --- a/frontend_tests/puppeteer_tests/subscriptions.ts +++ b/frontend_tests/puppeteer_tests/subscriptions.ts @@ -175,7 +175,7 @@ async function create_stream(page: Page): Promise { await wait_for_checked(page, "cordelia", true); await wait_for_checked(page, "desdemona", true); // Add desdemona back as we did unset all in last test. await wait_for_checked(page, "othello", false); - await page.click("form#stream_creation_form button.button.sea-green"); + await page.click("form#stream_creation_form .finalize_create_stream"); await page.waitForFunction(() => $(".stream-name").is(':contains("Puppeteer")')); const stream_name = await common.get_text_from_selector( page, diff --git a/static/js/stream_create.js b/static/js/stream_create.js index 6d9d5beff0..cd7f8073a9 100644 --- a/static/js/stream_create.js +++ b/static/js/stream_create.js @@ -446,7 +446,7 @@ export function set_up_handlers() { container.on("change", "#make-invite-only input", update_announce_stream_state); - container.on("submit", "#stream_creation_form", (e) => { + container.on("click", ".finalize_create_stream", (e) => { e.preventDefault(); clear_error_display(); diff --git a/static/templates/stream_settings/stream_creation_form.hbs b/static/templates/stream_settings/stream_creation_form.hbs index 2f823af094..5a59526155 100644 --- a/static/templates/stream_settings/stream_creation_form.hbs +++ b/static/templates/stream_settings/stream_creation_form.hbs @@ -55,7 +55,7 @@