Matrix / Task inside a collapsed section
Task inside a collapsed section
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
| Wording | Kane | Correct page | Broken page | Result |
|---|---|---|---|---|
Verify a task named "Call Kane Hot Co" is listed in the Activity panel.From the Kane issue | 0.10.9 | passed | failed | Balanced |
| 0.10.8 | passed | failed | Balanced | |
Expand the "Upcoming & Overdue" section if it is collapsed, then verify a task named "Call Kane Hot Co" is listed.Baseline | 0.10.9 | passed | failed | Balanced |
| 0.10.8 | passed | failed | Balanced |
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
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 & Overdue</summary>
<ul><li>Call Kane Hot Co</li></ul>
</details>
</section>
</body></html>
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 & 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