diff --git a/test/unit/specs/NISessionWelcome.spec.js b/test/unit/specs/NISessionWelcome.spec.js index dc10fb8d26..8fddbf8bfc 100644 --- a/test/unit/specs/NISessionWelcome.spec.js +++ b/test/unit/specs/NISessionWelcome.spec.js @@ -42,8 +42,8 @@ describe('NISessionWelcome', () => { }) describe('with accounts', () => { - beforeEach(() => { - wrapper.vm.user.accounts = ['foo', 'bar'] + beforeAll(() => { + accounts.push('foo', 'bar') wrapper.update() }) diff --git a/test/unit/specs/__snapshots__/NISessionWelcome.spec.js.snap b/test/unit/specs/__snapshots__/NISessionWelcome.spec.js.snap index 064ed3a13e..6abd0a537a 100644 --- a/test/unit/specs/__snapshots__/NISessionWelcome.spec.js.snap +++ b/test/unit/specs/__snapshots__/NISessionWelcome.spec.js.snap @@ -11,11 +11,23 @@ exports[`NISessionWelcome with accounts has the expected html structure 1`] = ` help_outline
-
- create + lock
+
+
+ Sign in with password +
+
+ If you have an account, choose this option +
+
+
+
+
+ create +
Create new account