The form has two buttons: “Save” is enabled and “Submit” is disabled. Your job: use expect to assert that the “Submit” button is disabled.
Playwright provides two separate assertion methods for checking an element’s enabled state — one for enabled, the other for disabled. This is a more reliable approach than manually checking the disabled attribute.
The page object is already available. Find the “Submit” button and assert its state.
You can locate the button by
id,data-testid, orgetByRole— all are accepted.