|
| 1 | +<!DOCTYPE html> |
| 2 | +<html> |
| 3 | +<head> |
| 4 | + <title>Basic CSS Properties Visibility Tests</title> |
| 5 | + <link rel="stylesheet" href="./style.css"> |
| 6 | + <script src="./ux.js"></script> |
| 7 | +</head> |
| 8 | +<body> |
| 9 | + <h1>Basic CSS Properties Visibility Tests</h1> |
| 10 | + |
| 11 | + <div class="test-section" cy-section="visibility-property"> |
| 12 | + <h3>Visibility Property</h3> |
| 13 | + <div class="testCase" cy-expect="hidden" cy-label="Hidden by visibility" style="visibility: hidden;">Hidden by visibility</div> |
| 14 | + <div class="testCase" cy-expect="visible" cy-label="Visible by visibility" style="visibility: visible;">Visible by visibility</div> |
| 15 | + <div class="testCase" cy-expect="hidden" cy-label="Parent hidden by visibility" style="visibility: hidden;"> |
| 16 | + <button class="testCase" cy-expect="hidden" cy-label="Child of hidden parent">Child of hidden parent</button> |
| 17 | + </div> |
| 18 | + </div> |
| 19 | + |
| 20 | + <div class="test-section" cy-section="display-property"> |
| 21 | + <h3>Display Property</h3> |
| 22 | + <div class="testCase" cy-expect="hidden" cy-label="Hidden by display: none" style="display: none;">Hidden by display: none</div> |
| 23 | + <div class="testCase" cy-expect="visible" cy-label="Visible by display: block" style="display: block;">Visible by display: block</div> |
| 24 | + <div class="testCase" cy-expect="hidden" cy-label="Parent hidden by display: none" style="display: none;"> |
| 25 | + <span class="testCase" cy-expect="hidden" cy-label="Child of display: none parent">Child of display: none parent</span> |
| 26 | + </div> |
| 27 | + </div> |
| 28 | + |
| 29 | + <div class="test-section" cy-section="opacity-property"> |
| 30 | + <h3>Opacity Property</h3> |
| 31 | + <div class="testCase" cy-expect="hidden" cy-label="Hidden by opacity: 0" style="opacity: 0;">Hidden by opacity: 0</div> |
| 32 | + <div class="testCase" cy-expect="visible" cy-label="Semi-transparent (opacity: 0.5)" style="opacity: 0.5;">Semi-transparent (opacity: 0.5)</div> |
| 33 | + <div class="testCase" cy-expect="visible" cy-label="Fully opaque (opacity: 1)" style="opacity: 1;">Fully opaque (opacity: 1)</div> |
| 34 | + <div class="testCase" cy-expect="hidden" cy-label="Parent hidden by opacity: 0" style="opacity: 0;"> |
| 35 | + <button class="testCase" cy-expect="hidden" cy-label="Child of opacity: 0 parent">Child of opacity: 0 parent</button> |
| 36 | + </div> |
| 37 | + </div> |
| 38 | + |
| 39 | + <div class="test-section" cy-section="input-elements"> |
| 40 | + <h3>Input Elements</h3> |
| 41 | + <input class="testCase" cy-expect="hidden" cy-label="Hidden input" type="hidden" value="hidden input"> |
| 42 | + <input class="testCase" cy-expect="visible" cy-label="Visible input" type="text" value="visible input"> |
| 43 | + </div> |
| 44 | + |
| 45 | + <div class="test-section" cy-section="table-elements"> |
| 46 | + <h3>Table Elements</h3> |
| 47 | + <table> |
| 48 | + <tr> |
| 49 | + <td class="testCase" cy-expect="visible" cy-label="Normal Cell">Normal Cell</td> |
| 50 | + <td class="testCase" cy-expect="visible" cy-label="Normal Cell">Normal Cell</td> |
| 51 | + <td class="testCase" cy-expect="hidden" cy-label="Cell by visibility: collapse" style="visibility: collapse;">Cell by visibility: collapse</td> |
| 52 | + </tr> |
| 53 | + |
| 54 | + <tr class="testCase" cy-expect="hidden" cy-label="Row hidden by visibility: collapse" style="visibility: collapse;"> |
| 55 | + <td class="testCase" cy-expect="hidden" cy-label="Cell hidden by row's visibility: collapse">Cell hidden by row's visibility: collapse</td> |
| 56 | + </tr> |
| 57 | + </table> |
| 58 | + </div> |
| 59 | + <div class="test-section" cy-section="box-interactions"> |
| 60 | + <div> |
| 61 | + <span class="testCase" cy-expect="visible" cy-label="Span container for block element"> |
| 62 | + <label class="testCase" cy-expect="visible" cy-label="Block element inside an inline element" style="display: block">Block element inside an inline element</label> |
| 63 | + </span> |
| 64 | + </div> |
| 65 | + </div> |
| 66 | +</body> |
| 67 | +</html> |
0 commit comments