mirror of
https://github.com/zulip/zulip.git
synced 2025-11-03 13:33:24 +00:00
puppeteer: Replace hidden: false with visible: true.
I had a misconception with hidden and visible options
and thought `hidden: false` was same as `visible: true`
and other way too.
But `hidden: false` or `visible: false` does nothing
more than checking if the selector exists.
Also, to mention, `visible: false`'s were fixed in
33e19fa7d1
This commit is contained in:
@@ -98,12 +98,12 @@ async function test_reply_with_r_shortcut(page) {
|
||||
}
|
||||
|
||||
async function test_open_close_compose_box(page) {
|
||||
await page.waitForSelector("#stream-message", {hidden: false});
|
||||
await page.waitForSelector("#stream-message", {visible: true});
|
||||
await close_compose_box(page);
|
||||
await page.waitForSelector("#stream-message", {hidden: true});
|
||||
|
||||
await page.keyboard.press("KeyX");
|
||||
await page.waitForSelector("#private-message", {hidden: false});
|
||||
await page.waitForSelector("#private-message", {visible: true});
|
||||
await close_compose_box(page);
|
||||
await page.waitForSelector("#private-message", {hidden: true});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user