Resolves a field label via vocabulary, reads the control's text, and compares it.
UI5 interaction handler.
Vocabulary lookup service.
Human-readable field label (e.g. 'Status').
'Status'
Expected text value.
An IntentResult<void> describing the outcome. status is 'error' when the term is not found or the value does not match.
IntentResult<void>
status
'error'
Assert a field value by business label without knowing the control ID.
Enables readable, maintainable assertions in E2E tests.
import { assertField } from '#intents/core-wrappers.js';const result = await assertField(ui5, vocab, 'Status', 'In Process');expect(result.status).toBe('success'); Copy
import { assertField } from '#intents/core-wrappers.js';const result = await assertField(ui5, vocab, 'Status', 'In Process');expect(result.status).toBe('success');
Resolves a field label via vocabulary, reads the control's text, and compares it.