message: Adding test to verify bug for
diff: @@ -250,4 +250,32 @@ describe('Reported issues', (): void => {
  });
  + it('220 Events are not triggered in addEventListener() after update() in invoked with uiVisible=false', (): void => {
  +
  + const spy = sinon.spy();
  + const tcString = 'CO5dPi4O5dPx2B7DvCENA2CgAAAAAAAAAAAAGewAAM8gAAAA.YAAAAAAAAAAA';
  + const cmpApi = new CmpApi(makeRandomInt(2, 100), makeRandomInt(2, 100), true);
  +
  + window[API_KEY]('addEventListener', 2, spy);
  +
  + cmpApi.update(tcString, false);
  + cmpApi.update(tcString, true);
  + cmpApi.update(tcString, false);
  +
  + expect(spy.calledThrice, 'spy calledThrice').to.be.true;
  +
  + let tcData = spy.firstCall.args[0];
  +
  + expect(tcData.eventStatus, `firstCall eventStatus`).to.equal(EventStatus.TC_LOADED);
  +
  + tcData = spy.secondCall.args[0];
  +
  + expect(tcData.eventStatus, `secondCall eventStatus`).to.equal(EventStatus.CMP_UI_SHOWN);
  +
  + tcData = spy.thirdCall.args[0];
  +
  + expect(tcData.eventStatus, `thirdCall eventStatus`).to.equal(EventStatus.USER_ACTION_COMPLETE);
  +
  + });
  +
  });
  