Skip to content
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

ui: User portal and Grafana tests in a separate Selenium session #280

Open
wants to merge 6 commits into
base: master
Choose a base branch
from

Conversation

tinez
Copy link
Member

@tinez tinez commented Sep 28, 2022

  • selenium: Remove unused 'selenium_version' fixture
  • selenium: Move fixtures to fixtures.selenium for reuse
  • ui: Move some fixtures to 'fixtures.ui' module
  • ui: Remove unused imports and objects
  • ui: Separate user portal and grafana tests from other UI tests

@ljelinkova
Copy link
Contributor

/ost

@tinez
Copy link
Member Author

tinez commented Sep 29, 2022

Right, so in the latest run test_logout failed and it's not really relevant with the current PR, so we can remove it.

@tinez tinez force-pushed the user-portal-in-separate-selenium-session branch from a2e4f90 to 180ed76 Compare September 29, 2022 09:31
@tinez
Copy link
Member Author

tinez commented Sep 29, 2022

/ost

welcome_screen.wait_for_user_logged_out()
assert welcome_screen.is_user_logged_out()

if keycloak_enabled:
Copy link
Contributor

Choose a reason for hiding this comment

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

I think we should still keep this test and assert for non-keycloak authentication.

Copy link
Member Author

Choose a reason for hiding this comment

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

I think I actually implemented it the way you suggested - it's still running for non-keycloak envs. The diff is big so please have a second look.

Copy link
Contributor

Choose a reason for hiding this comment

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

yes, I can see it now, sorry about that.

@michalskrivanek
Copy link
Member

I don't know...so what does this actually solve and how?

In an effort to reuse them in a new test module, we're moving
some of the fixtures to 'pytest.fixtures.selenium' module.

Signed-off-by: Marcin Sobczyk <[email protected]>
In an effort to reuse them in a new test module, we're movinvg
some of the fixtures to 'pytest.fixtures.ui' module.

Signed-off-by: Marcin Sobczyk <[email protected]>
Due to the problem with keycloak logout we're using a separate Selenium
session to test user portal and grafana.

Signed-off-by: Marcin Sobczyk <[email protected]>
The new name reflects the purpose of the tests better now.

Signed-off-by: Marcin Sobczyk <[email protected]>
@tinez tinez force-pushed the user-portal-in-separate-selenium-session branch from 180ed76 to 0db0452 Compare September 29, 2022 11:58
@tinez
Copy link
Member Author

tinez commented Sep 29, 2022

I don't know...so what does this actually solve and how?

It solves the problem of user portal tests failing. We're simply running a completely new Selenium setup for user portal and Grafana tests. The gist of the PR is changing scope=session to scope=module. The rest is just shuffling stuff around and a cleanup.

@michalskrivanek
Copy link
Member

and what is it going to help with? IIUC it won't necessarily affect the logout/keycloak problem

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.

3 participants