Skip to content

Commit

Permalink
fix tests after whitespace change
Browse files Browse the repository at this point in the history
  • Loading branch information
yyx990803 committed Jan 4, 2017
1 parent 1d7174a commit 6a0cdc5
Showing 1 changed file with 14 additions and 14 deletions.
28 changes: 14 additions & 14 deletions test/specs/test.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,17 +13,17 @@ module.exports = {
.assert.visible('.tree')
.assert.containsText('.component-name', 'Root')
.assert.elementPresent('.data-field')
.assert.containsText('.data-field', 'obj: Object')
.assert.containsText('.data-field', 'obj:Object')

// should expand root by default
.assert.count('.instance', 5)

// select child instance
.click('.instance .instance:nth-child(1) .self')
.assert.containsText('.component-name', 'Counter')
.assert.containsText('.data-field', 'count: 0 computed')
.assert.containsText('.data-field:nth-child(2)', 'hello: undefined')
.assert.containsText('.data-field:nth-child(3)', 'test: 1 computed')
.assert.containsText('.data-field', 'count:0 computed')
.assert.containsText('.data-field:nth-child(2)', 'hello:undefined')
.assert.containsText('.data-field:nth-child(3)', 'test:1 computed')

// expand child instance
.click('.instance .instance:nth-child(2) .arrow-wrapper')
Expand Down Expand Up @@ -55,8 +55,8 @@ module.exports = {
.frame(null)
.click('.button.vuex')
.assert.count('.history .entry', 4)
.assert.containsText('.vuex-state-inspector', 'type: "DECREMENT"')
.assert.containsText('.vuex-state-inspector', 'count: 1')
.assert.containsText('.vuex-state-inspector', 'type:"DECREMENT"')
.assert.containsText('.vuex-state-inspector', 'count:1')
.assert.cssClassPresent('.history .entry:nth-child(4)', 'inspected')
.assert.cssClassPresent('.history .entry:nth-child(4)', 'active')

Expand All @@ -81,8 +81,8 @@ module.exports = {
.click('.history .entry:nth-child(3)')
.assert.cssClassPresent('.history .entry:nth-child(3)', 'inspected')
.assert.cssClassNotPresent('.history .entry:nth-child(3)', 'active')
.assert.containsText('.vuex-state-inspector', 'type: "INCREMENT"')
.assert.containsText('.vuex-state-inspector', 'count: 2')
.assert.containsText('.vuex-state-inspector', 'type:"INCREMENT"')
.assert.containsText('.vuex-state-inspector', 'count:2')
.frame('target')
.assert.containsText('#counter p', '1')
.frame(null)
Expand All @@ -99,8 +99,8 @@ module.exports = {
.assert.cssClassNotPresent('.history .entry:nth-child(2)', 'active')
.assert.cssClassNotPresent('.history .entry:nth-child(3)', 'inspected')
.assert.cssClassPresent('.history .entry:nth-child(3)', 'active')
.assert.containsText('.vuex-state-inspector', 'type: "INCREMENT"')
.assert.containsText('.vuex-state-inspector', 'count: 1')
.assert.containsText('.vuex-state-inspector', 'type:"INCREMENT"')
.assert.containsText('.vuex-state-inspector', 'count:1')
.frame('target')
.assert.containsText('#counter p', '2')
.frame(null)
Expand All @@ -116,7 +116,7 @@ module.exports = {
.click('.history .entry:nth-child(1)')
.assert.cssClassPresent('.history .entry:nth-child(1)', 'inspected')
.assert.cssClassNotPresent('.history .entry:nth-child(1)', 'active')
.assert.containsText('.vuex-state-inspector', 'count: 0')
.assert.containsText('.vuex-state-inspector', 'count:0')
.frame('target')
.assert.containsText('#counter p', '1')
.frame(null)
Expand All @@ -133,7 +133,7 @@ module.exports = {
.assert.count('.history .entry', 3)
.assert.cssClassPresent('.history .entry:nth-child(3)', 'active')
.assert.cssClassPresent('.history .entry:nth-child(3)', 'inspected')
.assert.containsText('.vuex-state-inspector', 'count: 2')
.assert.containsText('.vuex-state-inspector', 'count:2')
.frame('target')
.assert.containsText('#counter p', '2')
.frame(null)
Expand All @@ -143,7 +143,7 @@ module.exports = {
.assert.count('.history .entry', 1)
.assert.cssClassPresent('.history .entry:nth-child(1)', 'active')
.assert.cssClassPresent('.history .entry:nth-child(1)', 'inspected')
.assert.containsText('.vuex-state-inspector', 'count: 2')
.assert.containsText('.vuex-state-inspector', 'count:2')
.frame('target')
.assert.containsText('#counter p', '2')
.frame(null)
Expand All @@ -162,7 +162,7 @@ module.exports = {
.clearValue('.import-state textarea')
.setValue('.import-state textarea', '{"valid": "json"}')
.waitForElementNotVisible('.message.invalid-json', 1000)
.assert.containsText('.vuex-state-inspector', 'valid: "json"')
.assert.containsText('.vuex-state-inspector', 'valid:"json"')
.click('.import')
.waitForElementNotPresent('.import-state', 2000)

Expand Down

0 comments on commit 6a0cdc5

Please sign in to comment.