Demonstrate link in action table row bug

This commit is contained in:
Michael Lange 2017-09-25 18:13:58 -07:00
parent 510c584f9d
commit acd5687e7e
1 changed files with 8 additions and 1 deletions

View File

@ -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(