[CORD-1934] Fixing links in table after first page
Change-Id: Ie4a6124154cc5c6c3b310211260e611aa1554a94
diff --git a/src/app/core/table/table.spec.ts b/src/app/core/table/table.spec.ts
index aa1c62b..fd0008d 100644
--- a/src/app/core/table/table.spec.ts
+++ b/src/app/core/table/table.spec.ts
@@ -471,7 +471,10 @@
it('should render a link with the correct url', () => {
let link = $('tbody tr:first-child td a', element)[0];
- expect($(link).attr('ui-sref')).toEqual('state({id: 1})');
+ // TODO document this feature change
+ // TODO improve this test to check that we are going to state({id: 1})
+ expect($(link).attr('ui-state')).toEqual('col.link(item).name');
+ expect($(link).attr('ui-state-params')).toEqual('{id: col.link(item).params.id}');
});
});