Beam

Matrix / Task inside a collapsed section

Task inside a collapsed section

BalancedKane issue #212Measured on Kane 0.10.9 and 0.10.8

The Activity panel's collapsed "Upcoming & Overdue" section contains the task "Call Kane Hot Co". The broken page lists a different task, "Email Acme Ltd", in the same collapsed section.

What your agent will do with Beam installed

Use

Verify a task named "Call Kane Hot Co" is listed in the Activity panel.

Results

WordingKaneCorrect pageBroken pageResult
Verify a task named "Call Kane Hot Co" is listed in the Activity panel.From the Kane issue0.10.9passedfailedBalanced
0.10.8passedfailedBalanced
Expand the "Upcoming & Overdue" section if it is collapsed, then verify a task named "Call Kane Hot Co" is listed.Baseline0.10.9passedfailedBalanced
0.10.8passedfailedBalanced

How Kane read the page

Kane turns each wording into code that reads the page. This is the code it recorded:

Verify a task named "Call Kane Hot Co" is listed in the Activity panel. Balanced

Array.from(el(2).querySelectorAll('*')).some(node => node.children.length === 0 && node.textContent.trim() === 'Call Kane Hot Co')

Expand the "Upcoming & Overdue" section if it is collapsed, then verify a task named "Call Kane Hot Co" is listed. Balanced

Array.from(el(4).querySelectorAll(':scope > li')).some(li => li.innerText.trim() === 'Call Kane Hot Co')

The two pages

Correct page Kane should passOpen full page
Source
<!doctype html><html lang="en"><head><meta charset="utf-8"><title>Activity</title><style>body{font:18px system-ui,sans-serif;margin:24px}summary{font-size:18px;cursor:pointer;padding:6px 0}</style></head><body>
<h1>Activity</h1>
<section id="activity">
  <details>
    <summary>Upcoming &amp; Overdue</summary>
    <ul><li>Call Kane Hot Co</li></ul>
  </details>
</section>
</body></html>
Broken page Kane should failOpen full page
Source
<!doctype html><html lang="en"><head><meta charset="utf-8"><title>Activity</title><style>body{font:18px system-ui,sans-serif;margin:24px}summary{font-size:18px;cursor:pointer;padding:6px 0}</style></head><body>
<h1>Activity</h1>
<section id="activity">
  <details>
    <summary>Upcoming &amp; Overdue</summary>
    <ul><li>Email Acme Ltd</li></ul>
  </details>
</section>
</body></html>

Reproduce it

Clone the repo, then run this behavior on your own Kane:

npm run suite -- collapsed-section