Logo: Relish

  1. Sign in

Project: relish

Switching versions

Suppose I come into the documentation for a versioned project, and I'm reading something, then
I realise that I'm reading about the latest version when I'm using an older one.

It should be possible for me to switch version and, if the topic still exists, see the same
topic for the older version.

If the topic doesn't exist in the other version, I should just be sent to the root of the docs
for that version.

Background
Given
a project with two versions "1.0" and "2.0"
And
each version has a topic "old-faithful"
And
version "2.0" has a topic "new-shiny"
Scenarios
Switch from one version of a topic to another
When
I view the "old-faithful" topic for version "2.0"
And
I switch to version "1.0"
Then
I should be viewing the "old-faithful" topic for version "1.0"
Switch to a version that doesn't have the topic I'm looking at
When
I view the "new-shiny" topic for version "2.0"
And
I switch to version "1.0"
Then
I should see an error telling me that the topic could not be found
And
I should be viewing the root readme topic for version "1.0"

Last published about 7 years ago by mattwynne.