1
0
mirror of https://github.com/lana-k/sqliteviz.git synced 2025-12-06 18:18:53 +08:00
This commit is contained in:
lana-k
2025-10-16 22:28:33 +02:00
parent 9cf7d0e5dc
commit efbd985b36
4 changed files with 148 additions and 10 deletions

View File

@@ -759,8 +759,7 @@ describe('MainMenu.vue', () => {
createdAt: '2025-05-14T15:30:00Z'
}
],
tabs: [tab],
db: {}
tabs: [tab]
}
const mutations = {
updateTab: sinon.stub()
@@ -802,15 +801,17 @@ describe('MainMenu.vue', () => {
'Inquiry saving conflict'
)
await nextTick()
await clock.tick(100)
// check that only one dialog open
expect(wrapper.findAll('.dialog.vfm').length).to.equal(1)
// find "Save as new" in the dialog and click
await wrapper
.findAll('.dialog-buttons-container button')
.find(button => button.text() === 'Save as new')
.trigger('click')
await nextTick()
await clock.tick(100)
// enter the new name
await wrapper.find('.dialog-body input').setValue('foo_new')
@@ -821,7 +822,6 @@ describe('MainMenu.vue', () => {
.trigger('click')
await nextTick()
// check that the dialog is closed
await clock.tick(100)
expect(wrapper.find('.dialog.vfm').exists()).to.equal(false)