red-refrigerator-13075
04/16/2021, 2:55 PMbulky-sundown-74498
04/16/2021, 3:17 PMsome-air-72294
04/21/2021, 8:27 PMcy.get('input').should('exist')
cy.get('input').type('nicepass', { delay: 500 })
cy.get('input').should('include.text', '********')
The test fails and says text was '' even though i see the mask. If I replace include.text
with include.value
i get the value. I can see my input text is masked, but i'm trying to get the test to be my eyes. Is this possible considering all the different ways (https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input/password) the mask might look?bulky-sundown-74498
04/21/2021, 8:32 PMcy.get().then()
and check the attibute) is actually password
or that it visually looks like star (use visial regression tools like percy or consorts)?
Maybe are you trying to check that human eyes could not read it? In this case natural reading algorythms might have to be involved after screenshot. but I would qualify this as overkillsome-air-72294
04/21/2021, 8:34 PMsome-air-72294
04/21/2021, 8:35 PMuse cy.get().then()
considering all i want to verify is input is masked by the browser and the browser will do it if the attribute is correct?bulky-sundown-74498
04/21/2021, 8:35 PMstocky-dream-36427
04/21/2021, 8:36 PMbulky-sundown-74498
04/21/2021, 8:36 PMstocky-dream-36427
04/21/2021, 8:37 PMcy.get('input[type=password]').should('be.visible')
(or something like that)stocky-dream-36427
04/21/2021, 8:37 PMsome-air-72294
04/21/2021, 8:39 PMbulky-sundown-74498
04/21/2021, 8:42 PMwitty-kite-3465
04/24/2021, 9:07 AMwitty-kite-3465
04/24/2021, 11:14 AMwitty-kite-3465
04/24/2021, 11:40 AMwitty-kite-3465
04/24/2021, 12:08 PMstocky-dream-36427
04/24/2021, 1:48 PMquick-gpu-68223
04/25/2021, 8:14 AMquick-gpu-68223
04/25/2021, 8:15 AMjs
<Playground :test="BaseInput" :events="['input']" />
quick-gpu-68223
04/25/2021, 8:17 AMquick-gpu-68223
04/25/2021, 8:18 AMstocky-dream-36427
04/25/2021, 6:25 PMquick-gpu-68223
04/25/2021, 8:47 PMthousands-lawyer-86765
04/27/2021, 3:50 PMbulky-sundown-74498
04/27/2021, 6:21 PMbulky-sundown-74498
04/27/2021, 6:21 PMbulky-sundown-74498
04/27/2021, 6:23 PMthousands-lawyer-86765
04/27/2021, 6:25 PMbulky-sundown-74498
04/27/2021, 6:26 PM