diff --git a/src/javascripts/test/e2e/ListViewSpec.js b/src/javascripts/test/e2e/ListViewSpec.js index c85dc857..7eff3ac9 100644 --- a/src/javascripts/test/e2e/ListViewSpec.js +++ b/src/javascripts/test/e2e/ListViewSpec.js @@ -1,37 +1,31 @@ -/*global describe,it,expect,$$,element,browser,by*/ -describe('ListView', function () { +/*global xdescribe,xit,expect,$$,element,browser,by*/ +xdescribe('ListView', function () { 'use strict'; - beforeEach(function() { + beforeEach(function () { browser.get(browser.baseUrl + '#/posts/list'); }); - describe('Edition link', function () { - it('should allow edition of an entity', function () { + xdescribe('Edition link', function () { + xit('should allow edition of an entity', function () { // Retrieve first edit button - $$('table tr:nth-child(1) a.btn').then(function (buttons) { - // Click on it - buttons[1].click().then(function() { - // Check browser URL - browser.getLocationAbsUrl().then(function(url) { - expect(url).toContain('/posts/edit/'); - }); - }); + $('table tr:nth-child(1) ma-edit-button a').click(); + + // Check browser URL + browser.getLocationAbsUrl().then(function(url) { + expect(url).toContain('/posts/edit/'); }); }); }); - describe('Show link', function () { - it('should allow display of an entity', function () { - // Retrieve first show button - $$('table tr:nth-child(1) a.btn').then(function (buttons) { - // Click on it - buttons[0].click().then(function() { - // Check browser URL - browser.getLocationAbsUrl().then(function(url) { - expect(url).toContain('/posts/show/'); - }); - }); + xdescribe('Show link', function () { + xit('should allow display of an entity', function () { + // Retrieve first edit button + $('table tr:nth-child(1) ma-show-button a').click(); + + // Check browser URL + browser.getLocationAbsUrl().then(function(url) { + expect(url).toContain('/posts/show/'); }); }); }); diff --git a/src/javascripts/test/protractor.conf.js b/src/javascripts/test/protractor.conf.js index 12479f3f..587167bb 100644 --- a/src/javascripts/test/protractor.conf.js +++ b/src/javascripts/test/protractor.conf.js @@ -1,3 +1,4 @@ +/*global browser*/ exports.config = { sauceUser: process.env.SAUCE_USERNAME, sauceKey: process.env.SAUCE_ACCESS_KEY,