-
Notifications
You must be signed in to change notification settings - Fork 93
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
E2E test: add alternate Python and R versions #6155
Conversation
E2E Tests 🚀 |
8a5edc9
to
8707899
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm sad this makes things run longer... but otherwise it LGTM with a minor comment.
const primaryPython = process.env.POSITRON_PY_VER_SEL; | ||
|
||
if (primaryPython) { | ||
|
||
await app.workbench.console.barClearButton.click(); | ||
|
||
await app.workbench.console.pasteCodeToConsole('import platform; print(platform.python_version())'); | ||
await app.workbench.console.sendEnterKey(); | ||
|
||
await app.workbench.console.waitForConsoleContents(primaryPython); | ||
} else { | ||
fail('Primary Python version not set'); | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't think you need this check. The test would fail during setup due to this code block:
startInterpreterViaQuickAccess = async (interpreterType: 'Python' | 'R', waitForReady = true) => {
if (!DESIRED_PYTHON || !DESIRED_R) {
throw new Error('Please set env vars: POSITRON_PYTHON_VER_SEL, POSITRON_R_VER_SEL');
}
...
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yeah, thats why I skipped the quick access route. wasn't sure how attached you were to that check
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
actually, I might have skipped quick access because I (locally) have a global 3.13.0 and its a lot more work with quick access to pick between two
Adding alternate R and Python versions in preparation for multi console tests. One simple R and Python test was added to ensure the installations were successful.
Local setup:
Local env vars:
QA Notes
All tests should pass.
@:scm @:web @:console @:win