Skip to content

Commit 2b9e031

Browse files
Brian Whittonsamselikoff
authored andcommitted
lastest and master are not in version selector on second open
1 parent 3c4e87f commit 2b9e031

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

tests/acceptance/version-selector-test.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,12 @@ module('Acceptance | Version selector test', function(hooks) {
9999

100100
assert.dom('[data-test-id="version"]:nth-child(1)').includesText('Latest', 'latest is rendered first');
101101
assert.dom('[data-test-id="version"]:nth-child(1)').includesText('v0.1.0', 'latest renders a tag if present');
102+
103+
await click('[data-test-id="current-version"]'); // close it
104+
await click('[data-test-id="current-version"]'); // open a scond time
105+
106+
assert.dom('[data-test-id="version"]:nth-child(1)').includesText('Latest', 'latest is rendered on second open');
107+
assert.dom('[data-test-id="version"]:nth-child(2)').includesText('master', 'master is rendered on second open');
102108
});
103109

104110
module('with a custom primary branch configured', function(hooks) {

0 commit comments

Comments
 (0)