I want to write a Cypress test which checks if the inserted value in text box is completely visible or not. For example picture below passes the test because all 10 inserted characters are visible:
But the next picture fails the test, because only 6 of 10 inserted characters are visible:
Any idea how to implement it with Cypress?
Note that in both cases the in put has the same value (1234567890), only in the second case, it is not visible because the input does not have enough space.

