Skip to content

Commit bf47ac2

Browse files
authored
Merge branch 'main' into disable-permessage-deflate
2 parents 7accc74 + 43ed050 commit bf47ac2

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

tests/playwright/shiny/components/MarkdownStream/basic/test_stream_basic.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -29,21 +29,21 @@ def test_validate_stream_basic(page: Page, local_app: ShinyAppProc) -> None:
2929
page.goto(local_app.url)
3030

3131
stream = page.locator("#shiny_readme")
32-
expect(stream).to_be_visible(timeout=30 * 1000)
33-
expect(stream).to_contain_text("pip install shiny")
32+
expect(stream).to_be_visible(timeout=30_000)
33+
expect(stream).to_contain_text("pip install shiny", timeout=30_000)
3434

3535
# Check that the card body container (the parent of the markdown stream) is scrolled
3636
# all the way to the bottom
3737
is_scrolled = is_element_scrolled_to_bottom(page, ".card-body")
3838
assert is_scrolled, "The card body container should be scrolled to the bottom"
3939

4040
stream2 = page.locator("#shiny_readme_err")
41-
expect(stream2).to_be_visible(timeout=30 * 1000)
42-
expect(stream2).to_contain_text("Shiny")
41+
expect(stream2).to_be_visible(timeout=30_000)
42+
expect(stream2).to_contain_text("Shiny", timeout=30_000)
4343

4444
notification = page.locator(".shiny-notification-error")
45-
expect(notification).to_be_visible(timeout=30 * 1000)
46-
expect(notification).to_contain_text("boom!")
45+
expect(notification).to_be_visible(timeout=30_000)
46+
expect(notification).to_contain_text("boom!", timeout=30_000)
4747

4848
txt_result = controller.OutputText(page, "stream_result")
4949
txt_result.expect_value("Stream result: Basic stream")

0 commit comments

Comments
 (0)