mirror of
https://github.com/zulip/zulip.git
synced 2025-11-03 13:33:24 +00:00
web-stream-create: Update frontend errors for stream rename channel.
Updates translated error and warning strings when creating a new stream in the web app to use channel instead of stream. Part of stream to channel rename project.
This commit is contained in:
committed by
Tim Abbott
parent
13299577da
commit
ba766a564a
@@ -115,13 +115,13 @@ async function test_streams_with_empty_names_cannot_be_created(page: Page): Prom
|
||||
await page.waitForSelector("form#stream_creation_form", {visible: true});
|
||||
await common.fill_form(page, "form#stream_creation_form", {stream_name: " "});
|
||||
await page.click("form#stream_creation_form button.finalize_create_stream");
|
||||
assert.strictEqual(await stream_name_error(page), "Choose a name for the new stream.");
|
||||
assert.strictEqual(await stream_name_error(page), "Choose a name for the new channel.");
|
||||
}
|
||||
|
||||
async function test_streams_with_duplicate_names_cannot_be_created(page: Page): Promise<void> {
|
||||
await common.fill_form(page, "form#stream_creation_form", {stream_name: "Puppeteer"});
|
||||
await page.click("form#stream_creation_form button.finalize_create_stream");
|
||||
assert.strictEqual(await stream_name_error(page), "A stream with this name already exists.");
|
||||
assert.strictEqual(await stream_name_error(page), "A channel with this name already exists.");
|
||||
|
||||
const cancel_button_selector = "form#stream_creation_form button.button.white";
|
||||
await page.click(cancel_button_selector);
|
||||
|
||||
Reference in New Issue
Block a user