I am using Angular 7 - three components [a, b, c] use an input element that has the id of [x] however, component [b] has 4 input elements using id of [x] aswell. This raises Accessibility Issues - as ids need to be unique. The test cases uses 'getElementById' to retrieve the values and expect something.
Now what I have done is change these id selectors to classes - as I do no need them to be unique and also the test cases - 'querySelector.'
Any idea why I am still getting the same errors as - 'Duplicate id attribute value "x" found on the web page'