Skip to content

webui: fixing selenium tests#1885

Merged
BareosBot merged 12 commits intobareos:masterfrom
joergsteffens:dev/joergs/master/joblog
Aug 12, 2024
Merged

webui: fixing selenium tests#1885
BareosBot merged 12 commits intobareos:masterfrom
joergsteffens:dev/joergs/master/joblog

Conversation

@joergsteffens
Copy link
Member

@joergsteffens joergsteffens commented Jul 5, 2024

During testing I found out, that selenium tests seem to be outdated.
I adapted them to use them a least locally.

Thank you for contributing to the Bareos Project!

Please check

  • Short description and the purpose of this PR is present above this paragraph
  • Your name is present in the AUTHORS file (optional)

If you have any questions or problems, please give a comment in the PR.

Helpful documentation and best practices

Checklist for the reviewer of the PR (will be processed by the Bareos team)

Make sure you check/merge the PR using devtools/pr-tool to have some simple automated checks run and a proper changelog record added.

General
  • Is the PR title usable as CHANGELOG entry?
  • Purpose of the PR is understood
  • Commit descriptions are understandable and well formatted
    Required backport PRs have been created
  • Correct milestone is set
Source code quality
  • Source code changes are understandable
  • Variable and function names are meaningful
  • Code comments are correct (logically and spelling)
  • Required documentation changes are present and part of the PR

@arogge arogge added this to the 24.0.0 milestone Jul 9, 2024
@arogge arogge requested a review from sebsura July 9, 2024 09:29
Copy link
Contributor

@sebsura sebsura left a comment

Choose a reason for hiding this comment

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

For me all tests fail with

 Traceback (most recent call last):
  File "/home/ssura/Projekte/bareos/webui/tests/selenium/webui-selenium-test.py", line 189, in setUp
    self.driver = webdriver.Chrome(
                  ^^^^^^^^^^^^^^^^^
TypeError: WebDriver.__init__() got an unexpected keyword argument 'service'

@sebsura
Copy link
Contributor

sebsura commented Jul 30, 2024

Looks like Selenium 4.0+ is required now

@sebsura
Copy link
Contributor

sebsura commented Jul 30, 2024

Testing with venv + Selenium 4.0+ seems to make the test pass

@joergsteffens joergsteffens force-pushed the dev/joergs/master/joblog branch from 0ca936f to f196d10 Compare August 7, 2024 17:06
@joergsteffens joergsteffens marked this pull request as ready for review August 8, 2024 08:00
@joergsteffens joergsteffens requested a review from sebsura August 8, 2024 08:00
@joergsteffens
Copy link
Member Author

Looks like Selenium 4.0+ is required now

Instead of adapting all the repotest images to selenium >= 4 (not sure, if this is possible), I made it work with selenium 3 and 4.

Copy link
Contributor

@sebsura sebsura left a comment

Choose a reason for hiding this comment

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

The testrunner.in -> testrunner rename broke a lot of things as the testrunner still uses cmake-variables.

Also the configure_file command for that file was never removed, so cmake errors out during the configuration step.

@joergsteffens joergsteffens force-pushed the dev/joergs/master/joblog branch from d9b4adb to f6df2c4 Compare August 8, 2024 08:47
@joergsteffens
Copy link
Member Author

jenkins ended successfully.

@joergsteffens joergsteffens requested a review from sebsura August 8, 2024 13:11
Copy link
Contributor

@sebsura sebsura left a 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

@BareosBot BareosBot force-pushed the dev/joergs/master/joblog branch from 173d2bb to 4c07acb Compare August 12, 2024 08:46
@BareosBot BareosBot merged commit f9a3767 into bareos:master Aug 12, 2024
@joergsteffens joergsteffens mentioned this pull request Aug 12, 2024
7 tasks
@joergsteffens joergsteffens mentioned this pull request Aug 12, 2024
7 tasks
@joergsteffens joergsteffens deleted the dev/joergs/master/joblog branch September 25, 2024 15:49
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.

4 participants