-
Notifications
You must be signed in to change notification settings - Fork 34
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
Fixes #282 - project detection in dashboard #284
base: main
Are you sure you want to change the base?
Fixes #282 - project detection in dashboard #284
Conversation
…file only new sample project for testing server.xml Added test case for detect project with src/main/liberty/config/server.xml file only
…ection_integrationTest
src/test/utils/testUtils.ts
Outdated
console.log("items...."+(items.length === 0)); | ||
return items.length === 0; | ||
} catch (error) { | ||
// if there is no visible elements, getVisibleItems() method is throwing timeout error. |
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.
do we know for sure that is the only error that would occur here? Is it possible other errors may occur that would not be an indication of the view section being empty?
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.
@TrevCraw - I have added a check whether the error is a kind of timeout error. Ideally the items.length should be 0, if the view section is empty. But the test framework is waiting for the view section to load some text and finally throwing timeout error. I have tried several solutions to get the count as 0, but test framework is always throwing the timeout exception.
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.
Does the timeout exception have a specific error code or message with it?
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.
@TrevCraw - No, always throwing timeout exception.
Co-authored-by: Trevor Crawford <TrevCraw@users.noreply.github.com>
Co-authored-by: Trevor Crawford <TrevCraw@users.noreply.github.com>
Co-authored-by: Trevor Crawford <TrevCraw@users.noreply.github.com>
Co-authored-by: Trevor Crawford <TrevCraw@users.noreply.github.com>
Co-authored-by: Trevor Crawford <TrevCraw@users.noreply.github.com>
Co-authored-by: Trevor Crawford <TrevCraw@users.noreply.github.com>
Added a condition in catch block to confirm the error is Timeouterror.
@TrevCraw - I have formatted the files. |
…ection_integrationTest
…ection_integrationTest
Issue282 - add licence header in newly added files
Fixes #282 - Added test case to detect project with src/main/liberty/config/server.xml file only (ie. no LMP or LGP defined in build file)