Move Protractor tests to frontend/tests/integration

See 6ec5ca58.

Signed-off-by: Alex Coles <alex@alexbcoles.com>
pull/2256/head
Alex Coles 10 years ago
parent 07cd45d444
commit 07238e1c24
  1. 0
      frontend/tests/integration/conf.js
  2. 0
      frontend/tests/integration/index.html
  3. 0
      frontend/tests/integration/mocks/groups.js
  4. 0
      frontend/tests/integration/mocks/projects.js
  5. 0
      frontend/tests/integration/mocks/statuses-v2.js
  6. 0
      frontend/tests/integration/mocks/statuses.json
  7. 0
      frontend/tests/integration/mocks/work-package.json
  8. 0
      frontend/tests/integration/mocks/work-packages-exp.js
  9. 0
      frontend/tests/integration/mocks/work-packages.js
  10. 0
      frontend/tests/integration/mocks/work-packages.json
  11. 0
      frontend/tests/integration/mocks/work-packages/819.json
  12. 0
      frontend/tests/integration/mocks/work-packages/819_textile.html
  13. 0
      frontend/tests/integration/mocks/work-packages/820.json
  14. 0
      frontend/tests/integration/mocks/work-packages/821.json
  15. 0
      frontend/tests/integration/mocks/work-packages/821_patch.json
  16. 0
      frontend/tests/integration/pages/work-package-details-pane.js
  17. 0
      frontend/tests/integration/pages/work-packages-page.js
  18. 2
      frontend/tests/integration/server.js
  19. 0
      frontend/tests/integration/work-package-details-spec.js
  20. 0
      frontend/tests/integration/work-packages-spec.js
  21. 6
      gulpfile.js

@ -34,7 +34,7 @@ var mocks = globSync('./mocks/**/*.js', {
}).map(require);
var express = require('express');
var railsRoot = __dirname + '/..';
var railsRoot = __dirname + '/../../..';
var app = express();
app.use(bodyParser.json());

@ -72,7 +72,7 @@ gulp.task('sass', function() {
});
gulp.task('express', function() {
var expressApp = require('./protractor/server');
var expressApp = require('./frontend/tests/integration/server');
var port = process.env.PORT || 8080;
(function startServer(port) {
@ -93,9 +93,9 @@ gulp.task('webdriver:update', webdriverUpdate);
gulp.task('webdriver:standalone', ['webdriver:update'], webdriverStandalone);
gulp.task('tests:protractor', ['webdriver:update', 'webpack', 'sass', 'express'], function(done) {
gulp.src('protractor/**/*_spec.js')
gulp.src('frontend/tests/integration/**/*_spec.js')
.pipe(protractor({
configFile: 'protractor/conf.js',
configFile: 'frontend/tests/integration/conf.js',
args: ['--baseUrl', 'http://' + server.address().address + ':' + server.address().port]
}))
.on('error', function(e) {

Loading…
Cancel
Save