Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion shiny/playwright/controller/_input_buttons.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
from __future__ import annotations

import pathlib
import re
from typing import Literal, Optional

from playwright.sync_api import FilePayload, Locator, Page
Expand Down Expand Up @@ -61,7 +62,7 @@ def expect_disabled(self, value: bool, *, timeout: Timeout = None):
The maximum time to wait for the expectation to be fulfilled. Defaults to `None`.
"""
_expect_attribute_to_have_value(
self.loc, "disabled", "" if value else None, timeout=timeout
self.loc, "disabled", re.compile(".*") if value else None, timeout=timeout
)


Expand Down
Loading