Commit ced25535 authored by Robert Knight's avatar Robert Knight

Add test for highlighted status of Flag button

parent 760e806f
......@@ -1036,5 +1036,12 @@ describe('annotation', function() {
flagBtn.click();
assert.called(fakeAnnotationMapper.flagAnnotation);
});
it('highlights the "Flag" button if the annotation is flagged', function () {
var ann = Object.assign(fixtures.defaultAnnotation(), { flagged: true });
var el = createDirective(ann).element;
var flaggedBtn = el[0].querySelector('button[aria-label="Annotation has been flagged"]');
assert.ok(flaggedBtn);
});
});
});
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment