From 69805c388bd55c0d71cb9d36e4be54b7277baee5 Mon Sep 17 00:00:00 2001 From: Richard Cox Date: Tue, 29 Aug 2017 18:13:10 +0100 Subject: [PATCH] Fix e2e #2 --- .../test/e2e/po/endpoints-dashboard.spec.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/components/endpoints-dashboard/test/e2e/po/endpoints-dashboard.spec.js b/components/endpoints-dashboard/test/e2e/po/endpoints-dashboard.spec.js index 01c738e753..d49f3addac 100644 --- a/components/endpoints-dashboard/test/e2e/po/endpoints-dashboard.spec.js +++ b/components/endpoints-dashboard/test/e2e/po/endpoints-dashboard.spec.js @@ -538,7 +538,7 @@ endpointsPage.credentialsFormEndpointConnect().then(function () { helpers.checkAndCloseToast(/Successfully connected to '(?:cf)'/); var endpointsTable = endpointsPage.getEndpointTable(); - expect(helpers.getTableCellAt(endpointsTable, cfRowIndex, 4).getText()).toBe('DISCONNECT'); + expect(helpers.getTableCellAt(endpointsTable, cfRowIndex, 5).getText()).toBe('DISCONNECT'); expect(endpointsPage.endpointIsConnected(cfRowIndex)).toBeTruthy(); }); }); @@ -574,7 +574,7 @@ .then(function () { helpers.checkAndCloseToast(/Successfully disconnected endpoint '(?:cf)'/); var endpointsTable = endpointsPage.getEndpointTable(); - expect(helpers.getTableCellAt(endpointsTable, cfRowIndex, 4).getText()).toBe('CONNECT'); + expect(helpers.getTableCellAt(endpointsTable, cfRowIndex, 5).getText()).toBe('CONNECT'); }); });