diff --git a/src/javascripts/test/e2e/ListViewSpec.js b/src/javascripts/test/e2e/ListViewSpec.js index 3505690d..c85dc857 100644 --- a/src/javascripts/test/e2e/ListViewSpec.js +++ b/src/javascripts/test/e2e/ListViewSpec.js @@ -2,16 +2,16 @@ describe('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 () { // Retrieve first edit button - $$('table tr:nth-child(1) ma-edit-button').then(function (buttons) { + $$('table tr:nth-child(1) a.btn').then(function (buttons) { // Click on it - buttons[0].click().then(function() { + buttons[1].click().then(function() { // Check browser URL browser.getLocationAbsUrl().then(function(url) { expect(url).toContain('/posts/edit/'); @@ -23,8 +23,8 @@ describe('ListView', function () { describe('Show link', function () { it('should allow display of an entity', function () { - // Retrieve first edit button - $$('table tr:nth-child(1) ma-show-button').then(function (buttons) { + // 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