-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Fix the RecommendedExtensions test #22966
Conversation
@@ -81,6 +81,9 @@ for (const sample of samples) { | |||
}); | |||
|
|||
test('Check the project files were imported', async function (): Promise<void> { | |||
// add 20 sec timeout for waiting for finishing animation of all IDE parts (Welcome parts. bottom widgets. etc.) |
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 would not mention particulate number 20 sec
of timeout in here, because TIMEOUT_CONSTANTS.TS_IDE_LOAD_TIMEOUT could be redefined using environment variable when run the test.
@@ -91,27 +94,39 @@ for (const sample of samples) { | |||
}); | |||
|
|||
test(`Get recommended extensions list from ${extensionsListFileName}`, async function (): Promise<void> { | |||
await (await projectAndFileTests.getProjectTreeItem(projectSection, pathToExtensionsListFileName))?.select(); | |||
// sometimes the Trust Dialog does not appear as expected - as result we can get opened Trust Box dialog. In this case. | |||
// we need to perform this case |
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.
did you mean we need to execute "projectAndFileTests.performManageWorkspaceTrustBox()" method
?
}); | ||
|
||
test('Open "Extensions" view section', async function (): Promise<void> { | ||
Logger.debug('ActivityBar().getViewControl("Extensions"))?.openView(): open Extensions view.'); | ||
extensionsView = await (await new ActivityBar().getViewControl('Extensions'))?.openView(); | ||
// sometimes the Trust Dialog does not appear as expected - as result we can get opened Trust Box dialog. In this case. | ||
// we need to perform this case |
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.
did you mean we need to execute "projectAndFileTests.performManageWorkspaceTrustBox()" method
?
@musienko-maxim : here is the run of RecommendedExtensions test against DS 3.14.0.EC: https://main-jenkins-csb-crwqe.apps.ocp-c1.prod.psi.redhat.com/job/Testing/job/e2e/job/complex/job/next/job/next-ds-functional-tests/678/console Tests are still failing tests, now with a different error message and screenshot, e.g.:
Previous error message before the fix:
Could you please take a look? |
@musienko-maxim : here is " 'Java Lombok' RecommendedExtensions" test run with new changes from PR: https://main-jenkins-csb-crwqe.apps.ocp-c1.prod.psi.redhat.com/job/Testing/job/e2e/job/basic/job/typescript-tests/22500/console: I found |
@musienko-maxim : thank you for fixing the test! I checked test run and noticed, that the fixed test is testing on extension author name, and it seems to be treating several extensions of one author as the same extension, e.g. https://main-jenkins-csb-crwqe.apps.ocp-c1.prod.psi.redhat.com/job/Testing/job/e2e/job/basic/job/typescript-tests/22997/console
Source code:
At the same time test has expected to test ALL recommended extensions to be installed one by one doesn't matter if there is the same author, or not. |
Not really, the test compares two lists:
|
Okay, let's test on extension publisher name assuming that there is a very little chance to have installed wrong extension of the same publisher. |
What does this PR do?
Fix problem for performing when recommended extension more than one. And correct select and search extensions by author with the find menu. Also was improved and simplified mapping of recommended extension objects. Add blocks which close WorkspaceTrustBox menus in typical places
Screenshot/screencast of this PR
What issues does this PR fix or reference?
https://issues.redhat.com/projects/CRW/issues/CRW-6339
How to test this PR?
PR Checklist
As the author of this Pull Request I made sure that:
What issues does this PR fix or reference
andHow to test this PR
completedReviewers
Reviewers, please comment how you tested the PR when approving it.