Matrix / Invoice total inside an iframe
Invoice total inside an iframe
An embedded invoice frame shows the total "Total: $120.00". The broken page shows "Total: $12.00" inside the invoice frame.
What your agent will do with Beam installed
Not measured yet.
Results
| Wording | Kane | Correct page | Broken page | Result |
|---|---|---|---|---|
Verify the invoice total is $120.00. | Not run yet | |||
Verify the exact visible text inside the embedded invoice frame includes "Total: $120.00". | Not run yet | |||
The two pages
Source
<!doctype html><html lang="en"><head><meta charset="utf-8"><title>billing</title></head><body>
<h1>Billing</h1>
<p>Invoice preview:</p>
<iframe title="Invoice" width="420" height="200" srcdoc="<!doctype html><html><body style='font-family:sans-serif'><h2>Invoice #1042</h2><p>Consulting services</p><p>Total: $120.00</p></body></html>"></iframe>
</body></html>
Source
<!doctype html><html lang="en"><head><meta charset="utf-8"><title>billing</title></head><body>
<h1>Billing</h1>
<p>Invoice preview:</p>
<iframe title="Invoice" width="420" height="200" srcdoc="<!doctype html><html><body style='font-family:sans-serif'><h2>Invoice #1042</h2><p>Consulting services</p><p>Total: $12.00</p></body></html>"></iframe>
</body></html>
Reproduce it
Clone the repo, then run this behavior on your own Kane:
npm run suite -- iframe-text