Skip to content

Commit

Permalink
va-additional-info: update expanding test (#1189)
Browse files Browse the repository at this point in the history
* update test

* update test
  • Loading branch information
jamigibbs authored Jun 12, 2024
1 parent 1b5a577 commit 1b83dec
Showing 1 changed file with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -86,8 +86,11 @@ describe('va-additional-info', () => {
(domElement: HTMLElement) => window.getComputedStyle(domElement).opacity,
);

expect(preOpacity).toEqual('0');
expect(postOpacity).toEqual('1');
const preOpacityToNumber = parseFloat(preOpacity);
const postOpacityToNumber = parseFloat(postOpacity);

expect(preOpacityToNumber).toEqual(0);
expect(postOpacityToNumber).toBeGreaterThan(0);
});

it('has keyboard control for expanding & collapsing on spacebar', async () => {
Expand Down

0 comments on commit 1b83dec

Please sign in to comment.