79183209

Date: 2024-11-13 02:17:53
Score: 1.5
Natty:
Report link

This is the solution I used, which condenses Zekarias's answer into a single line:

await expect(page.getByRole("button", { name: "Save" })).toBeDisabled();

Doesn't address the question exactly, but this came up first in Google when I was wondering how to check if a button was disabled - so hope it helps someone else out ;)

Reasons:
  • Blacklisted phrase (2): was wondering
  • Whitelisted phrase (-1): hope it helps
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: nivlac