lemon-toothbrush-55306
08/19/2022, 11:18 AMjs
<Tooltip label={t('words.unlink')} hasArrow>
<IconButton
data-test-id={`unlink-token-${tokenId}`}
icon={<BiTrash />}
size="sm"
colorScheme="red"
variant="outline"
onClick={openRemove}
/>
</Tooltip>
And my test:
js
it('Disassociate FT', () => {
cy.contains(accountId).click({ force: true });
cy.get('[placeholder="Escribe tu contraseƱa"]').type(defaultPass);
cy.contains('Continuar', { timeout: 12000 }).click();
cy.getBySel('unlink-token-0.0.2276691').click({force:true});
cy.getBySel('button-portal-footer-right', { timeout: 4000 }).click();
});
When I inspect the element has the correct property but Cypress is telling me:
js
Syntax error, unrecognized expression: [data-test-id=unlink-token-0.0.2276691]