Appwright provides a set of built-in assertions that you can use to verify the state of your app.
The expect
function is used to make assertions on the state of your app.
const clipboardText = await device.getClipboardText();
expect(clipboardText).toBe("Hello, world!");
The toBeVisible
assertion checks if an element is visible on the screen.
await expect(device.getByText('Login')).toBeVisible();