positron icon indicating copy to clipboard operation
positron copied to clipboard

Project Wizard Smoke Tests: R Project with Renv Environment

Open sharon-wang opened this issue 1 year ago • 2 comments

Description

  • Addresses the "R Project with Renv Environment" part of https://github.com/posit-dev/positron/issues/3879

Adds the following test cases for "R Project with Renv Environment":

  • Accept Renv install: the user does not have renv installed, creates a new R Project with renv init selected and accepts to install it upon project creation
  • Renv already installed: the user already has renv installed and creates a new R Project with renv init selected
  • Cancel Renv install: the user does not have renv installed, creates a new R Project with renv init selected, but declines to install it upon project creation

Introduces the following:

  • adds getPage() to PositronBaseElement, which can be used to insert keyboard text to the page
  • adds getExplorerProjectFiles() to PositronExplorer, which returns the top-level list of file and directory names showing in the explorer

QA Notes

  • Please fill in corresponding Test Ids :)

sharon-wang avatar Jul 04 '24 16:07 sharon-wang

Ran in CI: Passing!

testlabauto avatar Jul 05 '24 15:07 testlabauto

These fail for me on Windows waiting for a response from the console:

image

jonvanausdeln avatar Jul 05 '24 16:07 jonvanausdeln

@jonvanausdeln I've added some handling to interact with the Console on Windows. I wonder if I'll also need to add a longer time for the expect().toPass() check for the renv-related files to show up, just in case the install takes a while?

sharon-wang avatar Jul 08 '24 09:07 sharon-wang

CI passed for the 4 tests introduced. Running full smoke test suite to confirm the latest changes are working.

Update: full smoke test suite looking good too 👍

sharon-wang avatar Jul 09 '24 10:07 sharon-wang