Syntax: expect(locator).Assertion()

toHaveUrl(): It will check if the page contains a specific URL or not. Example : await expect(page).toHaveUrl("url")

toHaveTitle(): page has title(route title) Example: await expect(page).toHaveTitle("shivaji.dev")

toBeVisible(): it will check whether the particular element is visible or not on the page.

toBeEnabled(): control is enabled.

toBeDisabled(): The control is disabled.

toBeChecked(): Radio/checkbox is checked.

toHaveAttribute(): element has attribute.

toHaveText(): element matches text(exact comparasion).

toContainText(): element contains text(partial comparasion).