diff --git a/routes/_components/Avatar.html b/routes/_components/Avatar.html index b0ac208..cf76a29 100644 --- a/routes/_components/Avatar.html +++ b/routes/_components/Avatar.html @@ -6,8 +6,14 @@ {{else}} - + {{/if}} \ No newline at end of file diff --git a/tests/spec/010-focus.js b/tests/spec/010-focus.js index 05da622..6148621 100644 --- a/tests/spec/010-focus.js +++ b/tests/spec/010-focus.js @@ -33,6 +33,11 @@ test('timeline link preserves focus', async t => { .click(goBackButton) .expect(getUrl()).eql('http://localhost:4002/') .expect(getActiveElementInnerText()).eql('admin') + .click(getNthStatus(0).find('.status-sidebar')) + .expect(getUrl()).contains('/accounts/') + .click(goBackButton) + .expect(getUrl()).eql('http://localhost:4002/') + .expect(getActiveElementClass()).contains('status-sidebar') }) test('notification timeline preserves focus', async t => {