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

update #8

Merged
merged 12 commits into from
Jun 25, 2020
Merged

update #8

merged 12 commits into from
Jun 25, 2020

Conversation

rleir
Copy link
Owner

@rleir rleir commented Jun 25, 2020

No description provided.

dos077 and others added 12 commits June 10, 2020 23:42
Auspice should work on a wide range of nodejs versions. Here I specified
between 10.8 and 13.14 as they are the versions I've personally run
auspice on without trouble.
Relax requirement for nodejs 10.8. Closes #1161.
This fixes a bug where a narrative slide-change requests that the tree both zoom and change color.

This was introduced by 0639da8 which, as part of the (now disabled) push for SVG gradient rendering of branches, moved the d3 call to update the stroke (branch color) into a separate code block, in order that it can behave differently for "T" and "S" parts of a branch. This code-block is not run when the tree zooms (that is the bug).

Here we partially revert that commit. This should be revisited when we re-enable SVG gradients.
[bugfix] allow narratives to simultaneously zoom and change color
This commit signifies a shift to storing a set of narrative files in this repo, as opposed to obtaining the nextstrain.org narratives via a script.

The Nextstrain.org narratives are still obtainable (they are all stored in their own github repo) and the docs have been updated to show this.

By storing and maintaining "test narratives" in the auspice repo we can both provide examples of the capability of narratives and use them to test functionality and fix bugs. As the are stored in the `narratives` directory, they are available via Nextstrain Community URLs at nextstrain.org/community/narratives/nextstrain/auspice/...
This builds on our previous efforts to develop snapshot testing (not being run automatically at the moment). Here we dynamically compare snapshots for each page within a test-narrative. This code may be refactored so that we can easily test a wide range of narratives in this fashion.

Changes to the content of the narrative, including the addition of slides, should cause this test to fail, however the screenshots can be regenerated (see DEV_DOCS) without the need to modify the test script itself.
Implement screenshot testing for narratives
@rleir rleir merged commit 8baa89d into rleir:master Jun 25, 2020
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