diff options
author | Clement Ho <clemmakesapps@gmail.com> | 2018-01-20 04:03:14 +0300 |
---|---|---|
committer | Clement Ho <clemmakesapps@gmail.com> | 2018-01-20 04:03:14 +0300 |
commit | 8d6b029e25ab07283be0bb25b0a1667df9207009 (patch) | |
tree | 73ae9ba16dd7e69c50f2ae539249916869ad9295 /spec | |
parent | 7fa0a3e7775703ad9e53216f6154a773ca17ad4a (diff) | |
parent | 269594bf2277e14d8cd189cdbbeeee7db8ed23d7 (diff) |
Merge branch '41206-show-signin-pane-after-email-confirmation' into 'master'
Resolve "New user is sent back to Register tab after confirming email"
Closes #41206
See merge request gitlab-org/gitlab-ce!16174
Diffstat (limited to 'spec')
-rw-r--r-- | spec/javascripts/signin_tabs_memoizer_spec.js | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/spec/javascripts/signin_tabs_memoizer_spec.js b/spec/javascripts/signin_tabs_memoizer_spec.js index c4f500788b2..b1b03ef1e09 100644 --- a/spec/javascripts/signin_tabs_memoizer_spec.js +++ b/spec/javascripts/signin_tabs_memoizer_spec.js @@ -53,6 +53,13 @@ import SigninTabsMemoizer from '~/pages/sessions/new/signin_tabs_memoizer'; expect(memo.readData()).toEqual('#standard'); }); + it('overrides last selected tab with hash tag when given', () => { + window.location.hash = '#ldap'; + createMemoizer(); + + expect(memo.readData()).toEqual('#ldap'); + }); + describe('class constructor', () => { beforeEach(() => { memo = createMemoizer(); |