-
Notifications
You must be signed in to change notification settings - Fork 20
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
[WIP] Unit Test for dashboard #706
Open
proy30
wants to merge
29
commits into
ECP-WarpX:development
Choose a base branch
from
proy30:topic-dashboard-test
base: development
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Contributes to unit testing by applying a UI component to exit the dialog box and allowing selenium to continue testing the application
Initially these were added to convert user input to the correct type in order to be compatible with simulation. However, upon commenting these out for the sake of unit testing compatibility, it was found that the simulation is still functional with user inputs and does not need any conversion of user values. There is potential for underlying problems that have yet to be found.
Mark the test as skipped if `seleniumbase` is not available.
This indirectly assures user that sim ran successfully.
for more information, see https://pre-commit.ci
changed hardcoded 'python' command to 'sys.executable' and also initialized app_process
Adjusted function to retry upon failure until timeout has reached max time.
for more information, see https://pre-commit.ci
for more information, see https://pre-commit.ci
proy30
force-pushed
the
topic-dashboard-test
branch
from
November 22, 2024 22:42
0ac844c
to
4c9ad85
Compare
for more information, see https://pre-commit.ci
proy30
force-pushed
the
topic-dashboard-test
branch
from
November 25, 2024 06:56
067cba4
to
364e20d
Compare
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
component: dashboard
our browser based trame dashboard
component: tests
examples, tests and benchmarks
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR introduces the first unit test for the ImpactX dashboard, leveraging the SeleniumBase library to simulate a simulation run by a user with the GUI.
Key Features
Issues
Dependency on Running Dashboard:The current implementation requires the ImpactX dashboard to run in a separate terminal before executing the test viapytest
.Can investigate to potentially have dashboard be launched within the test itself.Unit test is flaky with passing/failing, unsure if this is due to code error or error in pytest implementation. Need to investigate. Started occurring after the implementation of subprocess.Checklist
Resolves #667