-
Notifications
You must be signed in to change notification settings - Fork 134
docs(testing): Add shiny add test CLI command; Add quarto page for testing
#1461
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 8 commits
Commits
Show all changes
15 commits
Select commit
Hold shift + click to select a range
a6efff9
Add quarto page for shiny testing
karangattu 24b2b23
linting changes
karangattu f1a4355
Add description
karangattu dccc18c
modify the desc for some
karangattu d097695
Code review
schloerke 0e6e5e3
Create a new page for testing API
karangattu 08993cb
Merge branch 'main' into add-quarto-documentation-testing
schloerke 9ebb1cd
Add command in makefile for docs
karangattu 0b56c48
make dynamic as false by default
karangattu f897141
some code review suggestions
karangattu 397a541
Add nested `click` support. Verify app file exists. Verify test file …
schloerke b44a8d2
Merge branch 'main' into add-quarto-documentation-testing
schloerke 99f2033
Fix quartdoc bug
schloerke fbc1916
Simpler templating.
schloerke 018d7f4
Code review
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
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,166 @@ | ||
| quartodoc: | ||
| style: pkgdown | ||
| dir: api/testing | ||
| out_index: index.qmd | ||
| package: shiny | ||
| rewrite_all_pages: false | ||
| sidebar: api/testing/_sidebar.yml | ||
| dynamic: true | ||
| renderer: | ||
| style: _renderer.py | ||
| show_signature_annotations: false | ||
| sections: | ||
| - title: Testing | ||
| desc: "Testing Methods to make it easier to run and test user's Shiny apps." | ||
| contents: | ||
| - kind: page | ||
| path: PlaywrightControls | ||
| flatten: true | ||
| summary: | ||
| name: "Playwright Controls" | ||
| desc: "Methods for interacting with Shiny app controls." | ||
| - title: UI Layouts | ||
| desc: Methods for interacting with Shiny app multiple UI component controls. | ||
| contents: | ||
| - name: playwright.controls.Accordion | ||
| dynamic: false | ||
| - name: playwright.controls.AccordionPanel | ||
| dynamic: false | ||
| - name: playwright.controls.Card | ||
| dynamic: false | ||
| - name: playwright.controls.Popover | ||
| dynamic: false | ||
| - name: playwright.controls.Sidebar | ||
| dynamic: false | ||
| - name: playwright.controls.Tooltip | ||
| dynamic: false | ||
| - title: UI Inputs | ||
| desc: Methods for interacting with Shiny app input value controls. | ||
| contents: | ||
| - name: playwright.controls.InputActionLink | ||
| dynamic: false | ||
| - name: playwright.controls.InputCheckbox | ||
| dynamic: false | ||
| - name: playwright.controls.InputCheckboxGroup | ||
| dynamic: false | ||
| - name: playwright.controls.InputDarkMode | ||
| dynamic: false | ||
| - name: playwright.controls.InputDate | ||
| dynamic: false | ||
| - name: playwright.controls.InputDateRange | ||
| dynamic: false | ||
| - name: playwright.controls.InputFile | ||
| dynamic: false | ||
| - name: playwright.controls.InputNumeric | ||
| dynamic: false | ||
| - name: playwright.controls.InputPassword | ||
| dynamic: false | ||
| - name: playwright.controls.InputRadioButtons | ||
| dynamic: false | ||
| - name: playwright.controls.InputSelect | ||
| dynamic: false | ||
| - name: playwright.controls.InputSelectize | ||
| dynamic: false | ||
| - name: playwright.controls.InputSlider | ||
| dynamic: false | ||
| - name: playwright.controls.InputSliderRange | ||
| dynamic: false | ||
| - name: playwright.controls.InputSwitch | ||
| dynamic: false | ||
| - name: playwright.controls.InputTaskButton | ||
| dynamic: false | ||
| - name: playwright.controls.InputText | ||
| dynamic: false | ||
| - name: playwright.controls.InputTextArea | ||
| - title: Value boxes | ||
| desc: Methods for interacting with Shiny app valuebox controls. | ||
| contents: | ||
| - name: playwright.controls.ValueBox | ||
| dynamic: false | ||
| - title: Navigation (tab) panels | ||
| desc: Methods for interacting with Shiny app UI content controls. | ||
| contents: | ||
| - name: playwright.controls.NavItem | ||
| dynamic: false | ||
| - name: playwright.controls.NavsetBar | ||
| dynamic: false | ||
| - name: playwright.controls.NavsetCardPill | ||
| dynamic: false | ||
| - name: playwright.controls.NavsetCardTab | ||
| dynamic: false | ||
| - name: playwright.controls.NavsetCardUnderline | ||
| dynamic: false | ||
| - name: playwright.controls.NavsetHidden | ||
| dynamic: false | ||
| - name: playwright.controls.NavsetPill | ||
| dynamic: false | ||
| - name: playwright.controls.NavsetPillList | ||
| dynamic: false | ||
| - name: playwright.controls.NavsetTab | ||
| dynamic: false | ||
| - name: playwright.controls.NavsetUnderline | ||
| dynamic: false | ||
| - title: Upload and download | ||
| desc: Create UI for uploading and downloading files. | ||
| contents: | ||
| - name: playwright.controls.DownloadButton | ||
| dynamic: false | ||
| - name: playwright.controls.DownloadLink | ||
| dynamic: false | ||
| - title: Rendering outputs | ||
| desc: Render output in a variety of ways. | ||
| contents: | ||
| - name: playwright.controls.OutputCode | ||
| dynamic: false | ||
| - name: playwright.controls.OutputDataFrame | ||
| dynamic: false | ||
| - name: playwright.controls.OutputImage | ||
| dynamic: false | ||
| - name: playwright.controls.OutputPlot | ||
| dynamic: false | ||
| - name: playwright.controls.OutputTable | ||
| dynamic: false | ||
| - name: playwright.controls.OutputText | ||
| dynamic: false | ||
| - name: playwright.controls.OutputTextVerbatim | ||
| dynamic: false | ||
| - name: playwright.controls.OutputUi | ||
| - kind: page | ||
| path: PlaywrightExpect | ||
| flatten: true | ||
| summary: | ||
| name: "Playwright Expect" | ||
| desc: "Methods for testing the state of a locator within a Shiny app." | ||
| contents: | ||
| - name: playwright.expect.expect_to_change | ||
| dynamic: false | ||
| - name: playwright.expect.expect_attribute_to_have_value | ||
| dynamic: false | ||
| - name: playwright.expect.expect_to_have_class | ||
| dynamic: false | ||
| - name: playwright.expect.expect_not_to_have_class | ||
| dynamic: false | ||
| - name: playwright.expect.expect_to_have_style | ||
| dynamic: false | ||
| - kind: page | ||
| path: Pytest | ||
| flatten: true | ||
| summary: | ||
| name: "Pytest" | ||
| desc: "Fixtures used for testing Shiny apps with Pytest." | ||
| contents: | ||
| - name: pytest.create_app_fixture | ||
| dynamic: false | ||
| - name: pytest.ScopeName | ||
| dynamic: false | ||
| - kind: page | ||
| path: Run | ||
| flatten: true | ||
| summary: | ||
| name: "Run" | ||
| desc: "Methods for starting a local Shiny app in the background" | ||
| contents: | ||
| - name: run.run_shiny_app | ||
| dynamic: false | ||
| - name: run.ShinyAppProc | ||
| dynamic: false |
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.