..
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35 | const { beforeHelper, afterHelper } = require('./../../helper')
describe('Setting up master password', function() {
this.timeout(10000)
describe('user password setup', () => {
beforeEach(() => beforeHelper({ storage: 'pristine' }))
afterEach(() => afterHelper())
it('shows non-matching password error', () => {
return expect(
app.client
.click('.top-lock .button')
.setValue('input[type=password]', 'password')
.click('.button')
.setValue('input[type=password]', 'pass')
.click('.button')
.getText('.error-message')
).to.eventually.equal('Passwords do not match')
})
it('shows app main window on password match', () => {
return expect(
app.client
.click('.top-lock .button')
.setValue('input[type=password]', 'password')
.click('.button')
.setValue('input[type=password]', 'password')
.click('.button')
.isExisting('.sync-indicator')
).to.eventually.equal(true)
})
})
})
|
|