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_tests: Change `test_get_api_key` order to fix the flake.

Riken Shah9dcc94841a4b
diff --git a/frontend_tests/puppeteer_tests/settings.ts b/frontend_tests/puppeteer_tests/settings.ts
index 340aecb2c22..5f0fd369a01 100644
--- a/frontend_tests/puppeteer_tests/settings.ts
+++ b/frontend_tests/puppeteer_tests/settings.ts
@@ -62,7 +62,8 @@ async function test_change_password(page: Page): Promise<void> {
// when the above issue is resolved.
await page.waitForFunction(() => document.activeElement!.id === "change_password_modal");
await page.type("#old_password", test_credentials.default_user.password);
- await page.type("#new_password", "new_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.
@@ -384,8 +385,8 @@ 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_get_api_key(page);
await test_change_password(page);
+ await test_get_api_key(page);
await test_alert_words_section(page);
await test_your_bots_section(page);
await test_default_language_setting(page);