提交 7c58bb67 编写于 作者: G Guillaume Chau

test(e2e): fix

上级 3c00b454
......@@ -9,11 +9,11 @@ suite('vuex edit', () => {
cy.get('.state .data-field').eq(0)
.find('.actions .vue-ui-button').eq(1)
.click({ force: true })
cy.get('.vuex-state-inspector').within(() => {
cy.get('.key').contains('count').parent().contains('-1')
})
cy.get('.state .data-field').eq(0)
.find('.actions .vue-ui-button').eq(1)
.click({ force: true })
......@@ -76,7 +76,7 @@ suite('vuex edit', () => {
it('should edit state nested field', () => {
// using the decrease button
cy.get('.data-field > .children > .data-field').eq(2)
cy.get('.data-field > .children > .data-field').eq(3)
.find('.actions .vue-ui-button').eq(1)
.click({ force: true })
.click({ force: true })
......@@ -87,7 +87,7 @@ suite('vuex edit', () => {
})
// using the increase button
cy.get('.data-field > .children > .data-field').eq(2)
cy.get('.data-field > .children > .data-field').eq(3)
.find('.actions .vue-ui-button').eq(2)
.click({ force: true })
.click({ force: true })
......@@ -98,7 +98,7 @@ suite('vuex edit', () => {
})
// using the input
cy.get('.data-field > .children > .data-field').eq(2)
cy.get('.data-field > .children > .data-field').eq(3)
.find('.actions .vue-ui-button').eq(0).click({ force: true })
cy.get('.edit-input').eq(1).type('12')
cy.get('.edit-overlay > .actions > :nth-child(2) > .content > .vue-ui-icon').click()
......
......@@ -200,7 +200,7 @@ suite('vuex tab', () => {
cy.get('.import-state').should('be.visible')
cy.get('.import-state textarea').clear().type('{{}invalid: json}')
cy.get('.message.invalid-json').should('be.visible')
cy.get('.import-state textarea').clear().type('{{}"count":42,"date":"[native Date Fri Dec 22 2017 10:12:04 GMT+0100 (CET)]"}')
cy.get('.import-state textarea').clear().type('{{}"count":42,"date":"[native Date Fri Dec 22 2017 10:12:04 GMT+0100 (CET)]","nested":{{}"foo":"meow"}}')
cy.wait(500)
cy.get('.message.invalid-json').should('not.be.visible')
cy.get('.vuex-state-inspector').then(el => {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册