diff --git a/digital-credentials/allow-attribute.https.html b/digital-credentials/allow-attribute.https.html index a42a3b68f0e888..412236268086d8 100644 --- a/digital-credentials/allow-attribute.https.html +++ b/digital-credentials/allow-attribute.https.html @@ -116,11 +116,15 @@ ); }); const { name, message } = data; - assert_equals( - name, - expectIsAllowed ? "TypeError" : "NotAllowedError", - `${iframe.outerHTML} - ${message}` - ); + if (expectIsAllowed) { + assert_true(name == "TypeError" || + (name == "NotAllowedError" && message.includes("transient activation")), + `${iframe.outerHTML} - ${message}`); + } else { + assert_equals(name, "NotAllowedError", `${iframe.outerHTML} - ${message}`); + assert_false(message.includes("transient activation"), + `${iframe.outerHTML} - ${message}`); + } iframe.remove(); }, `Policy to use: ${details.policy}, is cross-origin: ${details.crossOrigin}, is allowed by policy: ${details.expectIsAllowed}`); }