Skip to content

Commit

Permalink
UT fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Drashti Modasara authored and Drashti Modasara committed Dec 13, 2023
1 parent 68b1520 commit 7ad56af
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions test/features/genfill/genfill-interactive.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,11 +29,10 @@ describe('genfill variant of interactive marquee', () => {
expect(ent.querySelector('.enticement-text')).to.exist;
expect(ent.querySelector('.enticement-arrow')).to.exist;
});
it('should implement click functionality', () => {
it('should implement click functionality and analytics', () => {
const a = im.querySelector('.desktop-only a');
const img = a.querySelector('img');
expect(img.alt.includes('Generate Jungle')).to.true;
expect(a.getAttribute('daa-ll').includes('Generate Jungle')).to.true;
a.click();
expect(img.alt.includes('Generate Pond')).to.true;
expect(a.getAttribute('daa-ll').includes('Generate Pond')).to.true;
});
});

0 comments on commit 7ad56af

Please sign in to comment.