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

Fix navigation error in tool shed tests. #16902

Merged
merged 1 commit into from
Oct 24, 2023

Conversation

jmchilton
Copy link
Member

@jmchilton jmchilton commented Oct 23, 2023

I'm pretty sure I correctly identified the problem in comments and I've fixed it two different ways.

How to test the changes?

(Select all options that apply)

License

  • I agree to license these and all my past contributions to the core galaxy codebase under the MIT license.

@jmchilton
Copy link
Member Author

Got lost on a red herring at first - I think all the problems are just the navigation issues. I think what is happening here is the logout has a race condition. The failures seem to happen on the second login within two of the same test method. I think the logout redirect with conflicting with the goto. There are a number of ways to work around this - I'm not sure it is worth putting too much effort into getting it perfect - certainly the tests that initialize different sessions for different logins are going to be entirely robust against this.

@jmchilton
Copy link
Member Author

My guess is https://github.com/galaxyproject/galaxy/blob/dev/lib/tool_shed/webapp/frontend/src/stores/auth.store.ts#L49 is the frontend redirect that is conflicting with the playwright commands.

Copy link
Member

@mvdbeek mvdbeek left a comment

Choose a reason for hiding this comment

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

Looks great to me, just needs a make format.

@jmchilton jmchilton changed the title [WIP] Fix tool shed tests. Fix navigation error in tool shed tests. Oct 24, 2023
@jmchilton jmchilton marked this pull request as ready for review October 24, 2023 13:08
@github-actions github-actions bot added this to the 23.2 milestone Oct 24, 2023
@jmchilton jmchilton merged commit 2ca2e05 into galaxyproject:dev Oct 24, 2023
46 of 48 checks passed
@nsoranzo nsoranzo deleted the fix_ts_tests branch October 24, 2023 14:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants