File tree Expand file tree Collapse file tree 1 file changed +16
-0
lines changed Expand file tree Collapse file tree 1 file changed +16
-0
lines changed Original file line number Diff line number Diff line change @@ -100,6 +100,22 @@ module.exports = {
100100 . assert . containsText ( '#counter p' , '2' )
101101 . frame ( null )
102102
103+ // copy vuex state
104+ . click ( '.top .buttons .button:nth-child(1)' )
105+ . assert . containsText ( '.top .buttons .button:nth-child(1) .message' , '(Copied to clipboard!)' )
106+
107+ // import vuex state
108+ . click ( '.top .buttons .button:nth-child(2)' )
109+ . assert . elementPresent ( '.import-state' )
110+ . setValue ( '.import-state textarea' , '{invalid: json}' )
111+ . assert . visible ( '.message.invalid-json' )
112+ . clearValue ( '.import-state textarea' )
113+ . setValue ( '.import-state textarea' , '{"valid": "json"}' )
114+ . waitForElementNotVisible ( '.message.invalid-json' , 500 )
115+ . assert . containsText ( '.vuex-state-inspector' , 'valid: "json"' )
116+ . click ( '.top .buttons .button:nth-child(2)' )
117+ . waitForElementNotPresent ( '.import-state' , 500 )
118+
103119 // done
104120 . end ( )
105121 }
You can’t perform that action at this time.
0 commit comments