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: Specify container for notification settings tests.

Sahil Batraed71b3211a98
diff --git a/frontend_tests/puppeteer_tests/settings.ts b/frontend_tests/puppeteer_tests/settings.ts
index 2d3429f9348..fc6a97f173a 100644
--- a/frontend_tests/puppeteer_tests/settings.ts
+++ b/frontend_tests/puppeteer_tests/settings.ts
@@ -365,16 +365,17 @@ async function test_notifications_section(page: Page): Promise<void> {
// At the beginning, "PMs, mentions, and alerts"(checkbox name=enable_sounds) audio will be on
// and "Streams"(checkbox name=enable_stream_audible_notifications) audio will be off by default.
- const notification_sound_enabled = ".setting_notification_sound:enabled";
+ const notification_sound_enabled =
+ "#user-notification-settings .setting_notification_sound:enabled";
await page.waitForSelector(notification_sound_enabled, {visible: true});
- await common.fill_form(page, ".notification-settings-form", {
+ await common.fill_form(page, "#user-notification-settings .notification-settings-form", {
enable_stream_audible_notifications: true,
enable_sounds: false,
});
await page.waitForSelector(notification_sound_enabled, {visible: true});
- await common.fill_form(page, ".notification-settings-form", {
+ await common.fill_form(page, "#user-notification-settings .notification-settings-form", {
enable_stream_audible_notifications: true,
});
/*