Beam

Matrix / Status badge capitalisation

Status badge capitalisation

BalancedNot from a Kane issueMeasured on Kane 0.10.9 and 0.10.8

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

WordingKaneCorrect pageBroken pageResult
Verify the status is Active.Baseline0.10.9passedfailedBalanced
0.10.8passedfailedBalanced
Verify the exact visible text of the status badge is "Active", with a capital A.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 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

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