The navigation panel contains a “Dashboard” link. You need to assert that this link’s href attribute is /dashboard using expect.
Playwright provides a dedicated assertion for checking HTML attributes on elements. This method accepts the attribute name and the expected value as arguments.
The page object is already available. Find the “Dashboard” link and assert its href attribute.
You can locate the link by
id,data-testid, or visible text — all are valid.