Appearance
TEST.log.pass()
Logs a success message to the test report.
You can pass one or more arguments, and each argument will be automatically converted to a string and logged to the test report.
Usage
js
TEST.log.pass(message: string, ...args[]: any[])Parameters
| Parameter | Type | Description |
|---|---|---|
message | string | The message to log |
args | any[] | Additional values to log. |
Example
js
I.click("Add to cart")
var cart = UI.LocalStorage.get("cart")
if (cart && cart.items.length === 10) {
TEST.log.pass("Cart contains 10 items.")
}