mirror of https://github.com/zulip/zulip.git
edit_linkifier: Remove unnecessary error message display.
We want the error message that we get on editing the linkifier to be displayed only on the edit linkifier modal.
This commit is contained in:
parent
70f23fc422
commit
7632541afb
|
@ -113,11 +113,6 @@ async function test_edit_invalid_linkifier(page: Page): Promise<void> {
|
|||
await page.click(".cancel-linkifier-info-change");
|
||||
await page.waitForSelector("#linkifier-edit-form-modal", {hidden: true});
|
||||
|
||||
await page.waitForFunction(
|
||||
() =>
|
||||
$(".edit-linkifier-status").text().trim() ===
|
||||
"Save failed: Invalid linkifier pattern. Valid characters are [ a-zA-Z_#=/:+!-].",
|
||||
);
|
||||
await page.waitForSelector(".linkifier_row", {visible: true});
|
||||
assert.strictEqual(
|
||||
await common.get_text_from_selector(page, ".linkifier_row span.linkifier_pattern"),
|
||||
|
|
|
@ -187,6 +187,8 @@ export function build_page() {
|
|||
ui_report.error($t_html({defaultMessage: "Failed"}), xhr, linkifier_status);
|
||||
}
|
||||
},
|
||||
// Show the error message only on edit linkifier modal.
|
||||
error_msg_element: $(),
|
||||
};
|
||||
settings_ui.do_settings_change(
|
||||
channel.patch,
|
||||
|
|
Loading…
Reference in New Issue