vendredi 16 octobre 2020

Cypress Assert color

I have the following html structure:

   <path d="M16,1 C7.7146,1 1,7.65636364 1,15.8648485 C1,24.0760606 16,51 16,51 C16,51 31,24.0760606 31,15.8648485 C31,7.65636364 24.2815,1 16,1 L16,1 Z" fill="#0fb500"></path>

I should state that the color inside fill is # 0fb500. i tried like this but it doesn't work:

cy.get('path').should('have.css', 'fill', '#0fb500')

gives following error: enter image description here

he just says he can't find it

Aucun commentaire:

Enregistrer un commentaire