Skip to content

Commit

Permalink
Try to fix e2e tests
Browse files Browse the repository at this point in the history
  • Loading branch information
jeromemacias committed May 18, 2015
1 parent d55fb8b commit 8de0a91
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/javascripts/test/e2e/ListViewSpec.js
Original file line number Diff line number Diff line change
Expand Up @@ -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/');
Expand All @@ -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
Expand Down

0 comments on commit 8de0a91

Please sign in to comment.