-
Notifications
You must be signed in to change notification settings - Fork 114
feat(tests): Add shiny.pytest, shiny.run and shiny.playwright #1448
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from 1 commit
Commits
Show all changes
13 commits
Select commit
Hold shift + click to select a range
bc9250c
use shiny.pytest instead of shiny.test
karangattu a5e7108
Expose `run_shiny_app` from `shiny.run`
schloerke 1054841
`LayoutNavsetTab` -> `LayoutNavSetTab`
schloerke d85621f
Remove `Layout` prefix from `NavItem` and `Navset*` classes
schloerke 49975e3
Bump dev version to `0.10.2.9001`
schloerke 79808bd
Merge branch 'refactor-test-modules' of https://github.com/posit-dev/…
schloerke 6d84ed4
Update __init__.py
schloerke 3f189d8
Expand on `shiny.playwright.expect` module
schloerke 787d571
Clean up `shiny.run`
schloerke 74a3152
Make sure playwright is installed for `shiny.playwright` with suggest…
schloerke 42b92e4
Make sure `pytest` exists with suggestion to install it
schloerke 4be7425
Trim controls and imports
schloerke 28a92ae
`expect_attr` -> `expect_attribute_to_have_value`
schloerke File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 hidden or 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,4 @@ | ||
| from ._expect import expect_to_change | ||
| from . import controls | ||
|
|
||
| __all__ = ["expect_to_change", "controls"] |
File renamed without changes.
This file contains hidden or 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,95 @@ | ||
| from ._controls import ( | ||
| InputActionButton, | ||
| InputActionLink, | ||
| InputCheckbox, | ||
| InputCheckboxGroup, | ||
| InputDarkMode, | ||
| InputDate, | ||
| InputDateRange, | ||
| InputFile, | ||
| InputNumeric, | ||
| InputPassword, | ||
| InputRadioButtons, | ||
| InputSelect, | ||
| InputSelectize, | ||
| InputSlider, | ||
| InputSliderRange, | ||
| InputSwitch, | ||
| InputTaskButton, | ||
| InputText, | ||
| InputTextArea, | ||
| OutputCode, | ||
| OutputDataFrame, | ||
| OutputImage, | ||
| OutputPlot, | ||
| OutputTable, | ||
| OutputText, | ||
| OutputTextVerbatim, | ||
| OutputUi, | ||
| ValueBox, | ||
| Card, | ||
| Accordion, | ||
| Sidebar, | ||
| Popover, | ||
| Tooltip, | ||
| LayoutNavItem, | ||
| LayoutNavSetBar, | ||
| LayoutNavSetCardPill, | ||
| LayoutNavSetCardTab, | ||
| LayoutNavSetCardUnderline, | ||
| LayoutNavSetHidden, | ||
| LayoutNavSetPill, | ||
| LayoutNavSetPillList, | ||
| LayoutNavsetTab, | ||
| LayoutNavSetUnderline, | ||
| DownloadButton, | ||
| DownloadLink, | ||
| ) | ||
|
|
||
| __all__ = [ | ||
| "InputActionButton", | ||
| "InputActionLink", | ||
| "InputCheckbox", | ||
| "InputCheckboxGroup", | ||
| "InputDarkMode", | ||
| "InputDate", | ||
| "InputDateRange", | ||
| "InputFile", | ||
| "InputNumeric", | ||
| "InputPassword", | ||
| "InputRadioButtons", | ||
| "InputSelect", | ||
| "InputSelectize", | ||
| "InputSlider", | ||
| "InputSliderRange", | ||
| "InputSwitch", | ||
| "InputTaskButton", | ||
| "InputText", | ||
| "InputTextArea", | ||
| "OutputCode", | ||
| "OutputDataFrame", | ||
| "OutputImage", | ||
| "OutputPlot", | ||
| "OutputTable", | ||
| "OutputText", | ||
| "OutputTextVerbatim", | ||
| "OutputUi", | ||
| "ValueBox", | ||
| "Card", | ||
| "Accordion", | ||
| "Sidebar", | ||
| "Popover", | ||
| "Tooltip", | ||
| "LayoutNavItem", | ||
| "LayoutNavSetBar", | ||
| "LayoutNavSetCardPill", | ||
| "LayoutNavSetCardTab", | ||
| "LayoutNavSetCardUnderline", | ||
| "LayoutNavSetHidden", | ||
| "LayoutNavSetPill", | ||
| "LayoutNavSetPillList", | ||
| "LayoutNavsetTab", | ||
| "LayoutNavSetUnderline", | ||
| "DownloadButton", | ||
| "DownloadLink", | ||
| ] |
This file contains hidden or 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 hidden or 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,3 @@ | ||
| from ._fixture import create_app_fixture, ScopeName | ||
|
|
||
| __all__ = ("create_app_fixture", "ScopeName") |
This file contains hidden or 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 hidden or 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 hidden or 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.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains hidden or 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 hidden or 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
4 changes: 2 additions & 2 deletions
4
tests/playwright/deploys/express-accordion/test_deploys_express_accordion.py
This file contains hidden or 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
4 changes: 2 additions & 2 deletions
4
tests/playwright/deploys/express-dataframe/test_deploys_express_dataframe.py
This file contains hidden or 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
3 changes: 1 addition & 2 deletions
3
tests/playwright/deploys/express-folium/test_deploys_express_folium.py
This file contains hidden or 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
4 changes: 2 additions & 2 deletions
4
tests/playwright/deploys/express-page_default/test_deploys_express_page_default.py
This file contains hidden or 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
4 changes: 2 additions & 2 deletions
4
tests/playwright/deploys/express-page_fillable/test_deploys_express_page_fillable.py
This file contains hidden or 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
4 changes: 2 additions & 2 deletions
4
tests/playwright/deploys/express-page_fluid/test_deploys_express_page_fluid.py
This file contains hidden or 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
4 changes: 2 additions & 2 deletions
4
tests/playwright/deploys/express-page_sidebar/test_deploys_express_page_sidebar.py
This file contains hidden or 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 hidden or 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
3 changes: 1 addition & 2 deletions
3
tests/playwright/deploys/shiny-client-console-error/test_shiny_client_error.py
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.