Skip to content

$view() should use local Chrome browser if available - #73

Merged
schloerke merged 10 commits into
mainfrom
open_with_chrome
Feb 26, 2022
Merged

schloerke merged 10 commits into
mainfrom
open_with_chrome

Conversation

@schloerke

@schloerke schloerke commented Feb 24, 2022 •

Copy link
Copy Markdown
Collaborator

Fixes rstudio/shinytest2#106

  • If using Chrome browser, open using the Chrome browser
  • Else open the URL like normal

* main:
  Update docs (#74)
  Use BootStrap responsive breakpoint of Large devices (#72)
@wch

wch commented Feb 25, 2022

Copy link
Copy Markdown
Collaborator

Note: this won't work for ChromeRemote objects.

@schloerke

Copy link
Copy Markdown
Collaborator Author

Going to merge as changes were made to only support Chrome browser.

Will give time to test locally.


Ubuntu 18 R 3.4.4 failure is an R install failure / false-positive.

@schloerke schloerke changed the title Force $view() to use existing Chrome browser $view() should use local Chrome browser if available Feb 26, 2022
@schloerke
schloerke merged commit 03f8206 into main Feb 26, 2022
@schloerke
schloerke deleted the open_with_chrome branch February 26, 2022 15:47
schloerke added a commit to rstudio/shinytest2 that referenced this pull request Mar 2, 2022
schloerke added a commit to rstudio/shinytest2 that referenced this pull request Mar 2, 2022
…ernal browser (#115)

* Remove `{parsedate}`

* Set a version for checkmate

* Remove `{httpuv}`. Shiny already creates a random port if `port = NULL`

* Make `{globals}` Suggested and remove workaround with min version

* `{rstudioapi}` is used regularly. Make Imports

* Add min version to `{shinytest}`

* Use `{showimage}` over `{png}` as `{chromote}` uses `{showimage}`

Fixes #107

* Use usethis style methods

Ignore debug screenshots
Add shinytest2 test runner
Add example test

* Export `use_shinytest2()`; Add notes; Fix rstudioapi bug

* Add comment for `AppDriver$stop()` logic

* Remove comment handled in rstudio/chromote#73

* Use helper method for rstudio availability

* Fix bug where `test_that({"foo", {test_app()})`  is an empty test

* Test that `test_app()` is performing an expectation in a test setting

* When recording a test, open the browser with the default chromote's browser

* Add TODO from David from offline conversation

* Add helper method for shinycoreci

* document()

* lint

* Be less verbose
@schloerke schloerke mentioned this pull request Mar 17, 2022
schloerke added a commit that referenced this pull request Apr 15, 2022
* main:
  Take screenshots beyond viewport without resizing (#83)
  Quote browser path if not using Windows (#80)
  Do not `shQuote()` the browser path (#78)
  `$view()` should use local `Chrome` browser if available (#73)
  Add a reasonable `{chromote}` wall `timeout_` if Protocol `timeout` exists (#69)
  Remove `ChromoteSession$get_parent()` and lock `$protocol` (#76)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Force the user to view the app in Chrome

2 participants