There is a checkbox on the webpage which has ID attribute that changes every time the page is reloaded but in Cypress test runner browser window the id attribute does not change even if I run the test multiple times, it is fixed to "ag-7864-input".
I am selecting the checkbox using: cy.get('#ag-7864-input').click()
and it should fail the test because the id attribute is dynamic and changes every time but the test passes. While inspecting the element in test runner the id is shown: "ag-7864-input"
<input class="ag-input-field-input ag-checkbox-input" type="checkbox" id="ag-10102-input" tabindex="-1">