Skip to content

Commit 3779d0a

Browse files
committed
use regex pattern that matches any string (including an empty string)
1 parent 62f0000 commit 3779d0a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

shiny/playwright/controller/_input_buttons.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
from __future__ import annotations
22

33
import pathlib
4+
import re
45
from typing import Literal, Optional
56

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

6768

0 commit comments

Comments
 (0)