-
Notifications
You must be signed in to change notification settings - Fork 304
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
HPCC-33041 ECL Watch UI test (GH Action) reports an error with 'Files' page. #19341
base: master
Are you sure you want to change the base?
HPCC-33041 ECL Watch UI test (GH Action) reports an error with 'Files' page. #19341
Conversation
Jira Issue: https://hpccsystems.atlassian.net//browse/HPCC-33041 Jirabot Action Result: |
6ebea20
to
5551d4f
Compare
5551d4f
to
e2c12a8
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.
Changes look reasonable.
@ghalliday please merge. |
@AttilaVamos please rebase to avoid the merge conflicts. Thanks. |
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.
@AttilaVamos a couple of comments/questions
@@ -148,7 +148,8 @@ jobs: | |||
export PATH=$PATH:$JAVA_HOME/bin | |||
wget https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb | |||
sudo apt-get install -y ./google-chrome-stable_current_amd64.deb | |||
wget https://storage.googleapis.com/chrome-for-testing-public/126.0.6478.126/linux64/chromedriver-linux64.zip | |||
#wget https://storage.googleapis.com/chrome-for-testing-public/126.0.6478.126/linux64/chromedriver-linux64.zip |
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.
should this be removed?
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.
Yes, removed
@@ -185,7 +186,7 @@ jobs: | |||
if: ${{ failure() || cancelled() || env.uploadArtifact == 'true' }} | |||
uses: actions/upload-artifact@v4 | |||
with: | |||
name: ${{ inputs.asset-name }}-ecl_watch_ui_tests | |||
name: ${{ inputs.asset-name }}-ecl_watch_ui_tests_logs |
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.
is this change deliberate?
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.
Yes, because the ecl_watch_ui_tests artifact already exists (created by the build phase) and the actions/upload-artifact@v4 forbid to use existing name.
for (NavigationWebElement element : navWebElements) { | ||
|
||
StringBuilder erorMmsg = new StringBuilder("OK"); |
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.
trivial: typo errorMsg
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.
Fixed.
List<String> tabsList = URLConfig.tabsListMap.get(element.name()); | ||
int numOfElemets = tabsList.size(); |
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.
typo: numOfElements
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.
Fixed
|
||
return true; | ||
|
||
if ( (elementFound / numOfElemets) < 0.5 ) { |
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.
Need to protect against numElements == 0 (and return early?)
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.
Changed
…' page. ActivitiesTest.java: - Change the 'should match' behaviour to a 'looks like' attempt when the test tries to identify a WEB page where it is landed after clicked a hyperlink.. test-ui-gh_runner.yml: - Change Chromedriver vesion (PR-19330 not merged yet) - Fix the tests log artifact name Tested locally. Signed-off-by: Attila Vamos <attila.vamos@gmail.com>
e2c12a8
to
f6ed994
Compare
Signed-off-by: Attila Vamos <attila.vamos@gmail.com>
f6ed994
to
fc84c3d
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.
Looks good to me. Please squash when ready
ActivitiesTest.java:
Type of change:
Checklist:
Smoketest:
Testing:
Tested locally.