hasRole

Compose Test has no public hasRole matcher, so derived role locators (ai.assertum.recordercore.models.locator.ComposeLocator.RoleLocator) cannot use a built-in. This helper builds the matcher from the Role semantics property and is imported both by generated ScreenObject code and the runtime ComposeOperationExecutor.