Beam

Matrix / Bar hides after clearing selection

Bar hides after clearing selection

BalancedKane issue #65Measured on Kane 0.10.9 and 0.10.8

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".

WordingKaneCorrect pageBroken pageResult
Assert that the "3 items selected" bar is NOT visible.From the Kane issue0.10.9passedfailedBalanced
0.10.8passedfailedBalanced
Verify that no element with the text "3 items selected" is visible on the page.Baseline0.10.9passedfailedBalanced
0.10.8passedfailedBalanced

The two pages

These are live. To see the difference, do what Kane does: Click "Clear selection".

Correct page Kane should passOpen full page
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>
Broken page Kane should failOpen full page
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