Matrix / Status badge capitalisation
Status badge capitalisation
The status badge reads "Active" with a capital A. The broken page's status badge reads "active" in lowercase.
What your agent will do with Beam installed
Use
Verify the status is Active.Results
| Wording | Kane | Correct page | Broken page | Result |
|---|---|---|---|---|
Verify the status is Active.Baseline | 0.10.9 | passed | failed | Balanced |
| 0.10.8 | passed | failed | Balanced | |
Verify the exact visible text of the status badge is "Active", with a capital A.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 the status is Active. Balanced
el(2).innerText.split(':').slice(1).join(':').trim()Verify the exact visible text of the status badge is "Active", with a capital A. Balanced
el(2).querySelector('[data-testid="status-badge"]').innerText.trim()The two pages
Source
<!doctype html><html lang="en"><head><meta charset="utf-8"><title>account</title></head><body>
<h1>Account</h1>
<p>Status: <span class="badge" data-testid="status-badge">Active</span></p>
</body></html>
Source
<!doctype html><html lang="en"><head><meta charset="utf-8"><title>account</title></head><body>
<h1>Account</h1>
<p>Status: <span class="badge" data-testid="status-badge">active</span></p>
</body></html>
Reproduce it
Clone the repo, then run this behavior on your own Kane:
npm run suite -- case-sensitive-text