From bffdc874fff8f80b40e91bbcd9bae75b9984cde5 Mon Sep 17 00:00:00 2001 From: Michael Lange Date: Mon, 25 Sep 2017 18:13:58 -0700 Subject: [PATCH] Demonstrate link in action table row bug --- ui/tests/acceptance/task-group-detail-test.js | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/ui/tests/acceptance/task-group-detail-test.js b/ui/tests/acceptance/task-group-detail-test.js index 41b03aa1d..ad29f7b43 100644 --- a/ui/tests/acceptance/task-group-detail-test.js +++ b/ui/tests/acceptance/task-group-detail-test.js @@ -10,6 +10,7 @@ const sum = (total, n) => total + n; moduleForAcceptance('Acceptance | task group detail', { beforeEach() { + server.create('agent'); server.create('node', 'forceIPv4'); job = server.create('job', { @@ -158,8 +159,14 @@ test('each allocation should show basic information about the allocation', funct .text() .trim(), server.db.nodes.find(allocation.nodeId).id.split('-')[0], - 'Node name' + 'Node ID' ); + + click(allocationRow.find('td:eq(3) a')); + + andThen(() => { + assert.equal(currentURL(), `/nodes/${allocation.nodeId}`, 'Node links to node page'); + }); }); test('each allocation should show stats about the allocation, retrieved directly from the node', function(