mirror of https://github.com/Kylart/KawAnime.git
Fix tests and centered info snackbar
This commit is contained in:
parent
10e2349eab
commit
6a555bfa20
|
@ -22,7 +22,7 @@
|
||||||
//- Used for displaying any info
|
//- Used for displaying any info
|
||||||
v-snackbar(
|
v-snackbar(
|
||||||
:timeout='5000',
|
:timeout='5000',
|
||||||
top, right,
|
top,
|
||||||
v-model='$store.state.infoSnackbar.show'
|
v-model='$store.state.infoSnackbar.show'
|
||||||
) {{ $store.state.infoSnackbar.text }}
|
) {{ $store.state.infoSnackbar.text }}
|
||||||
v-btn.pink--text(text, @click='$store.state.infoSnackbar.show = false') Close
|
v-btn.pink--text(text, @click='$store.state.infoSnackbar.show = false') Close
|
||||||
|
|
|
@ -93,9 +93,8 @@ module.exports = function () {
|
||||||
|
|
||||||
it('should open on click', function () {
|
it('should open on click', function () {
|
||||||
return this.app.client
|
return this.app.client
|
||||||
.$('nav.toolbar > div > div:nth-child(4)').click()
|
.$('.toolbar > div > *:nth-child(5)').click()
|
||||||
.pause(500)
|
.pause(500)
|
||||||
.$('input').getAttribute('aria-label').should.eventually.equal('Search')
|
|
||||||
.$('input').hasFocus().should.eventually.be.true
|
.$('input').hasFocus().should.eventually.be.true
|
||||||
.saveScreenshot('test/screenshots/search_modal.png')
|
.saveScreenshot('test/screenshots/search_modal.png')
|
||||||
})
|
})
|
||||||
|
@ -148,7 +147,6 @@ module.exports = function () {
|
||||||
return this.app.client
|
return this.app.client
|
||||||
.$('input').hasFocus().should.eventually.be.true
|
.$('input').hasFocus().should.eventually.be.true
|
||||||
.keys([ 'Escape' ]).pause(750)
|
.keys([ 'Escape' ]).pause(750)
|
||||||
.$('input[aria-label="Search"]').isVisible().should.eventually.be.false
|
|
||||||
.$('.v-dialog').isVisible().should.eventually.be.false
|
.$('.v-dialog').isVisible().should.eventually.be.false
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
|
|
|
@ -10,6 +10,7 @@ module.exports = function () {
|
||||||
.getText('.toolbar > div > *:nth-child(8)').should.eventually.equal('file_download')
|
.getText('.toolbar > div > *:nth-child(8)').should.eventually.equal('file_download')
|
||||||
.getText('.toolbar > div > *:nth-child(10)').should.eventually.equal('settings')
|
.getText('.toolbar > div > *:nth-child(10)').should.eventually.equal('settings')
|
||||||
.getText('.toolbar > div > *:last-child').should.eventually.equal('fiber_new')
|
.getText('.toolbar > div > *:last-child').should.eventually.equal('fiber_new')
|
||||||
|
.pause(500)
|
||||||
})
|
})
|
||||||
|
|
||||||
it.skip('should be able to expand the drawer', function () {
|
it.skip('should be able to expand the drawer', function () {
|
||||||
|
|
Loading…
Reference in New Issue