Fix tests and centered info snackbar

This commit is contained in:
Kylart 2019-08-19 16:28:49 +02:00
parent 10e2349eab
commit 6a555bfa20
3 changed files with 3 additions and 4 deletions

View File

@ -22,7 +22,7 @@
//- Used for displaying any info
v-snackbar(
:timeout='5000',
top, right,
top,
v-model='$store.state.infoSnackbar.show'
) {{ $store.state.infoSnackbar.text }}
v-btn.pink--text(text, @click='$store.state.infoSnackbar.show = false') Close

View File

@ -93,9 +93,8 @@ module.exports = function () {
it('should open on click', function () {
return this.app.client
.$('nav.toolbar > div > div:nth-child(4)').click()
.$('.toolbar > div > *:nth-child(5)').click()
.pause(500)
.$('input').getAttribute('aria-label').should.eventually.equal('Search')
.$('input').hasFocus().should.eventually.be.true
.saveScreenshot('test/screenshots/search_modal.png')
})
@ -148,7 +147,6 @@ module.exports = function () {
return this.app.client
.$('input').hasFocus().should.eventually.be.true
.keys([ 'Escape' ]).pause(750)
.$('input[aria-label="Search"]').isVisible().should.eventually.be.false
.$('.v-dialog').isVisible().should.eventually.be.false
})
})

View File

@ -10,6 +10,7 @@ module.exports = function () {
.getText('.toolbar > div > *:nth-child(8)').should.eventually.equal('file_download')
.getText('.toolbar > div > *:nth-child(10)').should.eventually.equal('settings')
.getText('.toolbar > div > *:last-child').should.eventually.equal('fiber_new')
.pause(500)
})
it.skip('should be able to expand the drawer', function () {