-
Notifications
You must be signed in to change notification settings - Fork 63
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
test: Add
make playwright-debug
to help debug playwright tests (#1097)
- Loading branch information
Showing
17 changed files
with
49 additions
and
31 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,9 @@ | ||
import pytest | ||
from example_apps import get_apps, reruns, validate_example | ||
from example_apps import get_apps, reruns, reruns_delay, validate_example | ||
from playwright.sync_api import Page | ||
|
||
|
||
@pytest.mark.examples | ||
@pytest.mark.flaky(reruns=reruns, reruns_delay=1) | ||
@pytest.mark.flaky(reruns=reruns, reruns_delay=reruns_delay) | ||
@pytest.mark.parametrize("ex_app_path", get_apps("shiny/api-examples")) | ||
def test_api_examples(page: Page, ex_app_path: str) -> None: | ||
validate_example(page, ex_app_path) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,9 @@ | ||
import pytest | ||
from example_apps import get_apps, reruns, validate_example | ||
from example_apps import get_apps, reruns, reruns_delay, validate_example | ||
from playwright.sync_api import Page | ||
|
||
|
||
@pytest.mark.flaky(reruns=reruns, reruns_delay=1) | ||
@pytest.mark.flaky(reruns=reruns, reruns_delay=reruns_delay) | ||
@pytest.mark.parametrize("ex_app_path", get_apps("examples")) | ||
def test_examples(page: Page, ex_app_path: str) -> None: | ||
validate_example(page, ex_app_path) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
[pytest] | ||
asyncio_mode=strict | ||
# --strict-markers: Markers not registered in the `markers` section of the configuration file raise errors | ||
# --durations <k>: show top `k` slowest durations | ||
# --durations-min <n>: Require that the top `k` slowest durations are longer than `n` seconds | ||
# --browser <name>: browser type to run on playwright | ||
# --numprocesses auto: number of testing workers. auto is number of (virtual) cores | ||
# --video=retain-on-failure: playwright saves recording of any failed test | ||
# -vv: Extra extra verbose output | ||
# # --headed: Headed browser testing | ||
# # -r P: Show extra test summary info: (f)ailed, (E)rror, (s)kipped, (x)failed, (X)passed, (p)assed, (P)assed with output, (a)ll except passed (p/P), or (A)ll. (w)arnings... | ||
# --maxfail=1: Stop after 1 failure has occurred | ||
addopts = --strict-markers --durations=6 --durations-min=5.0 --browser chromium --numprocesses auto --video=retain-on-failure -vvv --maxfail=1 --headed |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters