2
0
mirror of https://github.com/tenrok/vue-form-wizard.git synced 2026-06-20 12:30:33 +03:00

Add build setup from vue-cli webpack template

This commit is contained in:
cristijora
2017-04-15 23:05:30 +03:00
parent 011774fd34
commit f5a3339ac8
34 changed files with 963 additions and 31 deletions
@@ -0,0 +1,26 @@
// A custom Nightwatch assertion.
// the name of the method is the filename.
// can be used in tests like this:
//
// browser.assert.elementCount(selector, count)
//
// for how to write custom assertions see
// http://nightwatchjs.org/guide#writing-custom-assertions
exports.assertion = function (selector, count) {
this.message = 'Testing if element <' + selector + '> has count: ' + count
this.expected = count
this.pass = function (val) {
return val === this.expected
}
this.value = function (res) {
return res.value
}
this.command = function (cb) {
var self = this
return this.api.execute(function (selector) {
return document.querySelectorAll(selector).length
}, [selector], function (res) {
cb.call(self, res)
})
}
}