Skip to content

Commit

Permalink
Clean-up a couple of aspects in playwright e2e tests (streamlit#8018)
Browse files Browse the repository at this point in the history
* Add some cleanups

* Unifies rerun method

* Update snapshots
  • Loading branch information
lukasmasuch authored Jan 25, 2024
1 parent 3e69cd4 commit 37f9e36
Show file tree
Hide file tree
Showing 60 changed files with 112 additions and 294 deletions.
176 changes: 0 additions & 176 deletions e2e/specs/modals.spec.js

This file was deleted.

5 changes: 0 additions & 5 deletions e2e_playwright/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -542,8 +542,3 @@ def compare(

if test_failure_messages:
pytest.fail("Missing snapshots: \n" + "\n".join(test_failure_messages))


def rerun(page: Page):
page.keyboard.press("r")
wait_for_app_run(page)
4 changes: 2 additions & 2 deletions e2e_playwright/forward_msg_cache_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,12 @@

from playwright.sync_api import Page, expect

from e2e_playwright.conftest import rerun
from e2e_playwright.conftest import rerun_app


def test_forward_msg_cache_receives_msg(app: Page):
app.evaluate("window.streamlitDebug.clearForwardMsgCache()")
rerun(app)
rerun_app(app)
expect(app.get_by_role("dialog")).not_to_be_visible()

app.expect_request("**/_stcore/message/")
111 changes: 0 additions & 111 deletions e2e_playwright/st_arrow_vega_lite_chart_test.py

This file was deleted.

File renamed without changes.
Loading

0 comments on commit 37f9e36

Please sign in to comment.