+
+
+
+
+
+ -
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 查询
+ 重置
+ 导出
+
+
+
+
+
+
+
+
+
+
+
+
+ {{ scope.row.success === 'Y' ? '成功' : (scope.row.success === 'N' ? '失败' : scope.row.success) }}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/test/e2e/custom-assertions/elementCount.js b/test/e2e/custom-assertions/elementCount.js
deleted file mode 100644
index 364e7a4..0000000
--- a/test/e2e/custom-assertions/elementCount.js
+++ /dev/null
@@ -1,27 +0,0 @@
-// A custom Nightwatch assertion.
-// The assertion name is the filename.
-// Example usage:
-//
-// browser.assert.elementCount(selector, count)
-//
-// For more information on 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 (selectorToCount) {
- return document.querySelectorAll(selectorToCount).length
- }, [selector], function (res) {
- cb.call(self, res)
- })
- }
-}
diff --git a/test/e2e/nightwatch.conf.js b/test/e2e/nightwatch.conf.js
deleted file mode 100644
index f019c0a..0000000
--- a/test/e2e/nightwatch.conf.js
+++ /dev/null
@@ -1,46 +0,0 @@
-require('babel-register')
-var config = require('../../config')
-
-// http://nightwatchjs.org/gettingstarted#settings-file
-module.exports = {
- src_folders: ['test/e2e/specs'],
- output_folder: 'test/e2e/reports',
- custom_assertions_path: ['test/e2e/custom-assertions'],
-
- selenium: {
- start_process: true,
- server_path: require('selenium-server').path,
- host: '127.0.0.1',
- port: 4444,
- cli_args: {
- 'webdriver.chrome.driver': require('chromedriver').path
- }
- },
-
- test_settings: {
- default: {
- selenium_port: 4444,
- selenium_host: 'localhost',
- silent: true,
- globals: {
- devServerURL: 'http://localhost:' + (process.env.PORT || config.dev.port)
- }
- },
-
- chrome: {
- desiredCapabilities: {
- browserName: 'chrome',
- javascriptEnabled: true,
- acceptSslCerts: true
- }
- },
-
- firefox: {
- desiredCapabilities: {
- browserName: 'firefox',
- javascriptEnabled: true,
- acceptSslCerts: true
- }
- }
- }
-}
diff --git a/test/e2e/runner.js b/test/e2e/runner.js
deleted file mode 100644
index 3a02f8e..0000000
--- a/test/e2e/runner.js
+++ /dev/null
@@ -1,48 +0,0 @@
-// 1. start the dev server using production config
-process.env.NODE_ENV = 'testing'
-
-const webpack = require('webpack')
-const DevServer = require('webpack-dev-server')
-
-const webpackConfig = require('../../build/webpack.prod.conf')
-const devConfigPromise = require('../../build/webpack.dev.conf')
-
-let server
-
-devConfigPromise.then(devConfig => {
- const devServerOptions = devConfig.devServer
- const compiler = webpack(webpackConfig)
- server = new DevServer(compiler, devServerOptions)
- const port = devServerOptions.port
- const host = devServerOptions.host
- return server.listen(port, host)
-})
-.then(() => {
- // 2. run the nightwatch test suite against it
- // to run in additional browsers:
- // 1. add an entry in test/e2e/nightwatch.conf.json under "test_settings"
- // 2. add it to the --env flag below
- // or override the environment flag, for example: `npm run e2e -- --env chrome,firefox`
- // For more information on Nightwatch's config file, see
- // http://nightwatchjs.org/guide#settings-file
- let opts = process.argv.slice(2)
- if (opts.indexOf('--config') === -1) {
- opts = opts.concat(['--config', 'test/e2e/nightwatch.conf.js'])
- }
- if (opts.indexOf('--env') === -1) {
- opts = opts.concat(['--env', 'chrome'])
- }
-
- const spawn = require('cross-spawn')
- const runner = spawn('./node_modules/.bin/nightwatch', opts, { stdio: 'inherit' })
-
- runner.on('exit', function (code) {
- server.close()
- process.exit(code)
- })
-
- runner.on('error', function (err) {
- server.close()
- throw err
- })
-})
diff --git a/test/e2e/specs/test.js b/test/e2e/specs/test.js
deleted file mode 100644
index a7b1bd9..0000000
--- a/test/e2e/specs/test.js
+++ /dev/null
@@ -1,19 +0,0 @@
-// For authoring Nightwatch tests, see
-// http://nightwatchjs.org/guide#usage
-
-module.exports = {
- 'default e2e tests': function (browser) {
- // automatically uses dev Server port from /config.index.js
- // default: http://localhost:8080
- // see nightwatch.conf.js
- const devServer = browser.globals.devServerURL
-
- browser
- .url(devServer)
- .waitForElementVisible('#app', 5000)
- .assert.elementPresent('.hello')
- .assert.containsText('h1', 'Welcome to Your Vue.js App')
- .assert.elementCount('img', 1)
- .end()
- }
-}
diff --git a/test/unit/specs/HelloWorld.spec.js b/test/unit/specs/HelloWorld.spec.js
deleted file mode 100644
index d3e6a58..0000000
--- a/test/unit/specs/HelloWorld.spec.js
+++ /dev/null
@@ -1,11 +0,0 @@
-import Vue from 'vue'
-import HelloWorld from '@/components/HelloWorld'
-
-describe('HelloWorld.vue', () => {
- it('should render correct contents', () => {
- const Constructor = Vue.extend(HelloWorld)
- const vm = new Constructor().$mount()
- expect(vm.$el.querySelector('.hello h1').textContent)
- .toEqual('Welcome to Your Vue.js App')
- })
-})