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 e2e tests #989

Merged
merged 5 commits into from
Nov 6, 2024
Merged

Fix e2e tests #989

merged 5 commits into from
Nov 6, 2024

Conversation

porink0424
Copy link
Collaborator

@porink0424 porink0424 commented Nov 6, 2024

Contributor License Agreement

This repository (optuna-dashboard) and Goptuna share common code.
This pull request may therefore be ported to Goptuna.
Make sure that you understand the consequences concerning licenses and check the box below if you accept the term before creating this pull request.

  • I agree this patch may be ported to Goptuna by other Goptuna contributors.

Reference Issues/PRs

N/A

What does this implement/fix? Explain your changes.

E2E tests in optuna-dashboard may not have worked correctly for the following reasons:

  • page.query_selector() was being called before the graph was displayed, so the test couldn't verify whether the graph was actually rendered.
  • optuna_dashboard._cached_extra_study_property was not cleared in clear_inmemory_cache().

This PR addresses these two issues.

@porink0424 porink0424 changed the title Issue462 zwl s Fix e2e tests Nov 6, 2024
@porink0424
Copy link
Collaborator Author

It is expected that the e2e-dashboard test fails at commit 4475bff. Note that the test now passes due to merging the changes from #988.

@porink0424 porink0424 marked this pull request as ready for review November 6, 2024 09:28
Copy link
Member

@c-bata c-bata left a comment

Choose a reason for hiding this comment

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

LGTM!

@c-bata c-bata merged commit daa476f into optuna:main Nov 6, 2024
14 checks passed
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.

2 participants