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.

puppeteer flake: Remove call to test_change_password().

Steve Howell353d0f9e4fd4
diff --git a/frontend_tests/puppeteer_tests/settings.ts b/frontend_tests/puppeteer_tests/settings.ts
index 1f08edd431d..19a3cb641b3 100644
--- a/frontend_tests/puppeteer_tests/settings.ts
+++ b/frontend_tests/puppeteer_tests/settings.ts
@@ -46,24 +46,8 @@ async function test_change_full_name(page: Page): Promise<void> {
await page.waitForFunction(() => $("#full_name").val() === "New name");
}
-async function test_change_password(page: Page): Promise<void> {
- await page.click('[data-section="account-and-privacy"]');
- await page.click("#change_password");
-
- const change_password_button_selector = "#change_password_modal .dialog_submit_button";
- await page.waitForSelector(change_password_button_selector, {visible: true});
-
- await common.wait_for_micromodal_to_open(page);
- await page.type("#old_password", test_credentials.default_user.password);
- test_credentials.default_user.password = "new_password";
- await page.type("#new_password", test_credentials.default_user.password);
- await page.click(change_password_button_selector);
-
- // On success the change password modal gets closed.
- await common.wait_for_micromodal_to_close(page);
-}
-
async function test_get_api_key(page: Page): Promise<void> {
+ await page.click('[data-section="account-and-privacy"]');
const show_change_api_key_selector = "#api_key_button";
await page.click(show_change_api_key_selector);
@@ -398,7 +382,6 @@ async function settings_tests(page: Page): Promise<void> {
await common.log_in(page);
await open_settings(page);
await test_change_full_name(page);
- await test_change_password(page);
await test_get_api_key(page);
await test_alert_words_section(page);
await test_your_bots_section(page);