Matrix / Bar hides after clearing selection
Bar hides after clearing selection
Clicking Clear selection hides the blue "3 items selected" bar. The broken page's Clear selection button does nothing, so the bar stays visible.
What your agent will do with Beam installed
Use
Assert that the "3 items selected" bar is NOT visible.Results
Before each check, Kane does: Click "Clear selection".
| Wording | Kane | Correct page | Broken page | Result |
|---|---|---|---|---|
Assert that the "3 items selected" bar is NOT visible.From the Kane issue | 0.10.9 | passed | failed | Balanced |
| 0.10.8 | passed | failed | Balanced | |
Verify that no element with the text "3 items selected" is visible on the page.Baseline | 0.10.9 | passed | failed | Balanced |
| 0.10.8 | passed | failed | Balanced |
The two pages
These are live. To see the difference, do what Kane does: Click "Clear selection".
Source
<!doctype html><html lang="en"><head><meta charset="utf-8"><title>Files</title><style>body{font:18px system-ui,sans-serif;margin:24px}button{font-size:18px;padding:8px 14px}</style></head><body>
<h1>Files</h1>
<p>Selected files are shown in the bar below.</p>
<button id="clear">Clear selection</button>
<div id="bar" style="background:#1e6fd9;color:#fff;padding:12px 16px;margin-top:16px;max-width:320px">3 items selected</div>
<script>
document.getElementById('clear').addEventListener('click', () => { document.getElementById('bar').style.display = 'none'; });
</script></body></html>
Source
<!doctype html><html lang="en"><head><meta charset="utf-8"><title>Files</title><style>body{font:18px system-ui,sans-serif;margin:24px}button{font-size:18px;padding:8px 14px}</style></head><body>
<h1>Files</h1>
<p>Selected files are shown in the bar below.</p>
<button id="clear">Clear selection</button>
<div id="bar" style="background:#1e6fd9;color:#fff;padding:12px 16px;margin-top:16px;max-width:320px">3 items selected</div>
<script>
document.getElementById('clear').addEventListener('click', () => {});
</script></body></html>
Reproduce it
Clone the repo, then run this behavior on your own Kane:
npm run suite -- not-visible