Skip to content

Commit

Permalink
HARMONY-1978: Test labels-li display
Browse files Browse the repository at this point in the history
  • Loading branch information
vinnyinverso committed Jan 21, 2025
1 parent 02425a5 commit 74bf305
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion services/harmony/test/workflow-ui/jobs.html
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@
<li id="no-match-li" class="fw-light text-center fs-6" style="display: none;">
&nbsp;<a href="#" id="create-label-link">Create Label</a>&nbsp;
</li>
<li>
<li id="labels-li" style="display: none;">
<ul id="labels-list">
<li class="label-li"><a class="dropdown-item label-item" name="blue" data-value="blue" href="#">blue</a></li>
<li class="label-li"><a class="dropdown-item label-item" name="green" data-value="green" href="#">green</a></li>
Expand Down
2 changes: 2 additions & 0 deletions services/harmony/test/workflow-ui/labels-js.ts
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,7 @@ describe('labels.js', () => {
expect(blueLi.style.display).to.not.equal('none');
expect(greenLi.style.display).to.equal('none');
expect(yellowLi.style.display).to.equal('none');
expect(document.getElementById('labels-li').style.display).to.equal('');
});
it('shows a no matches list item when the search input value does not match any labels', () => {
(document.querySelector('#label-search') as HTMLInputElement).value = 'bluez';
Expand All @@ -104,6 +105,7 @@ describe('labels.js', () => {
expect(yellowLi.style.display).to.equal('none');
expect(noMatchLi.style.display).to.not.equal('none');
expect(noMatchLi.querySelector('#create-label-link').textContent).to.equal('Create/apply "bluez"?');
expect(document.getElementById('labels-li').style.display).to.equal('none');
});
});
describe('showAllLabels', () => {
Expand Down

0 comments on commit 74bf305

Please sign in to comment.