Skip to content

W-18078038 - feat: move e2e tests #6179

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

Open
wants to merge 83 commits into
base: develop
Choose a base branch
from

Conversation

madhur310
Copy link
Collaborator

Moves the e2e tests to salesforcedx-vscode package. Triggered them here - https://github.com/forcedotcom/salesforcedx-vscode/actions/runs/14152916419

What does this PR do?

Moves the e2e tests from a separate package to vscode.

What issues does this PR fix or reference?

@W-18078038@

Functionality Before

tests lived in a different package and were checked out and run via GHW.

Functionality After

tests live in the same package, so no need to checkout and simplifies GHW a little bit.

@madhur310 madhur310 requested a review from a team as a code owner March 31, 2025 18:12
@madhur310 madhur310 requested a review from smarvez March 31, 2025 18:12
Copy link
Contributor

@CristiCanizales CristiCanizales left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

package.json Outdated
@@ -119,7 +132,8 @@
"aggregateJUnit": "node scripts/aggregate-junit-xml.js",
"link-lsp": "yarn link @salesforce/aura-language-server @salesforce/lwc-language-server @salesforce/lightning-lsp-common && lerna exec yarn link @salesforce/aura-language-server @salesforce/lwc-language-server @salesforce/lightning-lsp-common --scope salesforcedx-vscode-lightning && lerna exec yarn link @salesforce/lwc-language-server @salesforce/lightning-lsp-common --scope salesforcedx-vscode-lwc",
"unlink-lsp": "yarn unlink @salesforce/aura-language-server @salesforce/lwc-language-server @salesforce/lightning-lsp-common && lerna exec yarn unlink @salesforce/aura-language-server @salesforce/lwc-language-server @salesforce/lightning-lsp-common --scope salesforcedx-vscode-lightning && lerna exec yarn unlink @salesforce/lwc-language-server @salesforce/lightning-lsp-common --scope salesforcedx-vscode-lwc",
"report:installs": "ts-node scripts/reportInstalls.ts"
"report:installs": "ts-node scripts/reportInstalls.ts",
"automation-tests": "npm run compile && node ./packages/salesforcedx-vscode-automation-tests/lib/test-setup-and-runner.js"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can you create a follow up WI to move each test to the extension it belongs to? let's say the tests that belong to the apex e2e category should go in packages/salesforcedx-vscode-apex/test/e2e-tests and so on

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@@ -55,7 +45,7 @@ jobs:
mv ./extensions/*/* ./extensions/
working-directory: salesforcedx-vscode
env:
GITHUB_TOKEN: ${{ secrets.IDEE_GH_TOKEN }}
GH_TOKEN: ${{ secrets.IDEE_GH_TOKEN }}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why this change?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

my bad, is old remnant will revert this change.

- name: Run headless test
uses: coactions/setup-xvfb@b6b4fcfb9f5a895edadc3bc76318fae0ac17c8b3
with:
run: |
npm run automation-tests
working-directory: ${{ inputs.automationRepo }}
working-directory: salesforcedx-vscode
env:
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@madhur310 I think we need to pass the VSIX_TO_INSTALL value here to get rid of the error you shared in slack

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

same for DEV_HUB_ALIAS_NAME

madhur310 and others added 30 commits May 12, 2025 15:36
…#6291)

* fix: selector for checkbox in runapextests

* Revert "fix: selector for checkbox in runapextests"

This reverts commit 362e786.

* fix: selector for checkbox in runapextests
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.

6 participants