Skip to content

Commit

Permalink
Updating webapp test procedure
Browse files Browse the repository at this point in the history
  • Loading branch information
antoinepouille committed Jun 18, 2024
1 parent 1989984 commit 3c12784
Showing 1 changed file with 30 additions and 10 deletions.
40 changes: 30 additions & 10 deletions dev/tests/webapp.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,9 @@ Doesn't show up at the time of writing:
- outputs

## Not tested in the procedure
- file menu
- new project
- in contact map subpanel: accuracy, export, hide guide lines
- in influences subpanel: navigation, graph parameters
- no check for missing test data in subpanels: 3 last constraints + polymers
- in sim controls: pause if, all outputs, get trace
- plot export
- DIN export
- in contact map subpanel: accuracy, hide guide lines
- in influences subpanel: graph parameters are untested
- in subpanels: 3 last constraints + polymers


## Test procedure
Expand All @@ -38,32 +33,57 @@ Second level: what to check additionnally
- delete those lines
- click twice on toggle to check the opening/closure


#### Right subpanel
- Contact map is present, see that it changes when clicked on - interactive mode - show all states
- export to svg and check the picture
- Go to influences: is it populated?
- Change rendering to graph, change accuracy to high, see that it changes
- Change back to Tabular, click Track cursor. click on different rules in the editor to see that it changes in the subpanel
- Change back to Tabular, click Track cursor. click on different rules in the editor to see that it changes in the subpanel; click on previous/next similarly
- export to json and check that info is present in the file
- Go to constraints subpanel, see that the two views domain are populated
- Go to polymers, see that it shows > The size of biomolecular compounds is uniformly boundedG.

#### Simulation
- Add `[T] > 10` in `Pause if`, click on start, see that it showed "running" with events and time, and now Paused
- Click on start, see the simulation doesn't run, delete contents of `Pause if`
- Click on start, then on pause. See that it showed "running" with events and time, and now Paused
- change to tab log, see that it shows lines with + Building initial simulation conditions... and random seed used
- Change to plot, click on the different plot axes options and see the changes
- Continue/pause the simulation and see the plot changing, move the plot position with the slider
- Export the plot to svg and open it
- Same with csv
- Change to DIN tab, check that a table is populated and that we can switch to the second table
- Export to json and check the file
- Change to Snapshot tab, enter $SNAPSHOT in the Simulation perturbation and click intervention, see that the snapshot shows up
- Click on kappa and change display to graph, play with the graph settings
- Change back to kappa, continue/stop the simulation, make a new snapshot, and test to switch between snapshot
- TODO: this currently doesn't work, adapt this when it does : - Go to outputs, run > $PRINT "time: ".[T] and > $PLOTENTRY see that it shows up
- Go back to log tab and see the previous interventions show up
- Click on `All outputs` in the simutation, check that the following files are present and not empty: log.txt, inputs.ka, flux.json, flux.html, data.csv

#### Files
- Hit clear to clear up the simulation
- File>export and download the file
- Reload the app, file> open, open back the file
- File> new enter a name as `test.ka`, fill with the contents: https://www.di.ens.fr/~feret/teaching/2023-2024/MPRI.2.19/activities/causality/causality_slide_10.ka
- See the update of the contact map
- Start, start again, pause. See if both file show up on the plot tab
- Close abc.ka

#### Stories
- Copy/paste in the editor https://www.di.ens.fr/~feret/teaching/2023-2024/MPRI.2.19/activities/causality/causality_slide_10.ka
- Click get trace at the bottom and check
- If not done in previous section, Copy/paste in the editor https://www.di.ens.fr/~feret/teaching/2023-2024/MPRI.2.19/activities/causality/causality_slide_10.ka
- Go to preferences, enable store trace, click Set
- clear/start/pause the simulation
- Click get trace at the bottom and check the file (TODO: reference?)
- Go to the stories tab, click launch
- See that the computation log show up, that a story graph appears on the right
- Click on story_info log, see that it shows up
- Change the story, see the log and graph changes
- Test causal and strongly compressed stories the same way

#### New project
- Click new project, enter a name
- Load a file e.g. abc.ka, run the simulation, check e.g. the plot
- go back to project `default`, check editor, log and plot tabs didn't change

0 comments on commit 3c12784

Please sign in to comment.