From 7ad56afe5e07687e340bab6ba42d120c5c328f7a Mon Sep 17 00:00:00 2001 From: Drashti Modasara Date: Wed, 13 Dec 2023 10:39:04 +0530 Subject: [PATCH] UT fix --- test/features/genfill/genfill-interactive.test.js | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/test/features/genfill/genfill-interactive.test.js b/test/features/genfill/genfill-interactive.test.js index 9b84f95cc..6639ed01d 100644 --- a/test/features/genfill/genfill-interactive.test.js +++ b/test/features/genfill/genfill-interactive.test.js @@ -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; }); });