UNPKG

vuex-asr

Version:

* Version: 0.7.52 * License M.I.T. * [Online Documentation](https://vuex-asr.github.io/vuex-asr/) * author: Joris Wenting * email: vuex.asr@gmail.com * [linkedIn](https://www.linkedin.com/in/joriswenting/). * [contribute](https://vuex-asr.github.io/vuex-a

59 lines (56 loc) 1.79 kB
// For authoring Nightwatch tests, see // http://nightwatchjs.org/guide#usage const url = process.env.VUE_APP_DEV_SERVER_URL + "#/asr-bind-state-overview/"; module.exports = { "Test for asr-bind-state-overview": browser => { browser .url(url) .waitForElementVisible("#app", 5000) .assert.elementPresent(".example-component") .assert.containsText( "#bind-state-message-from-root-of-store-example > p", "message in the root of the store" ) .assert.containsText( "#bind-state-another-message-example > p", "another message in the root of the store" ) .assert.containsText( "#bind-state-namespace-example > p", "This is a message in the USER module" ) .assert.containsText( "#bind-state-message-as-v-model-example > p", "message in the root of the store" ) .assert.value( "#bind-state-message-as-v-model-example > input", "message in the root of the store" ) .setValue( "#bind-state-message-as-v-model-example > input", "changed by user input" ) .assert.containsText( "#bind-state-message-from-root-of-store-example > p", "changed by user input" ) .assert.containsText( "#bind-state-message-as-v-model-example > p", "changed by user input" ) .setValue( "#bind-state-another-message-as-v-model-example > input", "changed by user input" ) .assert.containsText( "#bind-state-another-message-example > p", "changed by user input" ) .assert.containsText( "#bind-state-another-message-as-v-model-example > p", "changed by user input" ); browser.end(); } };