Skip to content

Commit 587877d

Browse files
committed
Update Playwright driver to 1.50.1
for microsoft/playwright#34550
1 parent 79ad7ce commit 587877d

File tree

9 files changed

+261
-49
lines changed

9 files changed

+261
-49
lines changed

development/CLI_VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
1.50.0
1+
1.50.1

development/api.json

Lines changed: 212 additions & 44 deletions
Large diffs are not rendered by default.

development/unimplemented_examples.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,3 +26,14 @@ expect(locator).to_have_class(re.compile(r"(^|\\s)selected(\\s|$)"))
2626
expect(locator).to_have_class("middle selected row")
2727
2828
```
29+
30+
### example_7e42f38bd7c5b69b7f22390f6afa0f53aa155d74ad6a72b080fa2910013dc22c (LocatorAssertions#to_match_aria_snapshot)
31+
32+
```
33+
page.goto("https://demo.playwright.dev/todomvc/")
34+
expect(page.locator('body')).to_match_aria_snapshot('''
35+
- heading "todos"
36+
- textbox "What needs to be done?"
37+
''')
38+
39+
```

documentation/docs/api/browser_type.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,8 @@ The default browser context is accessible via [Browser#contexts](./browser#conte
3737

3838
**NOTE**: Connecting over the Chrome DevTools Protocol is only supported for Chromium-based browsers.
3939

40+
**NOTE**: This connection is significantly lower fidelity than the Playwright protocol connection via [BrowserType#connect](./browser_type#connect). If you are experiencing issues or attempting to use advanced functionality, you probably want to use [BrowserType#connect](./browser_type#connect).
41+
4042
**Usage**
4143

4244
```ruby

documentation/docs/api/locator.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ def aria_snapshot(timeout: nil)
9292

9393

9494
Captures the aria snapshot of the given element.
95-
Read more about [aria snapshots](https://playwright.dev/python/docs/aria-snapshots) and [LocatorAssertions#to_match_aria_snapshot#1](./locator_assertions#to_match_aria_snapshot#1) for the corresponding assertion.
95+
Read more about [aria snapshots](https://playwright.dev/python/docs/aria-snapshots) and [LocatorAssertions#to_match_aria_snapshot](./locator_assertions#to_match_aria_snapshot) for the corresponding assertion.
9696

9797
**Usage**
9898

documentation/docs/api/locator_assertions.md

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -134,6 +134,15 @@ expect(locator).not_to have_accessible_description(name, ignoreCase: nil, timeou
134134

135135
The opposite of [LocatorAssertions#to_have_accessible_description](./locator_assertions#to_have_accessible_description).
136136

137+
## not_to_have_accessible_error_message
138+
139+
```ruby
140+
expect(locator).not_to have_accessible_error_message(errorMessage, ignoreCase: nil, timeout: nil)
141+
```
142+
143+
144+
The opposite of [LocatorAssertions#to_have_accessible_error_message](./locator_assertions#to_have_accessible_error_message).
145+
137146
## not_to_have_accessible_name
138147

139148
```ruby
@@ -745,3 +754,23 @@ locator = page.locator("id=favorite-colors")
745754
locator.select_option(["R", "G"])
746755
expect(locator).to have_values([/R/, /G/])
747756
```
757+
758+
## to_match_aria_snapshot
759+
760+
```ruby
761+
expect(locator).to match_aria_snapshot(expected, timeout: nil)
762+
```
763+
764+
765+
Asserts that the target element matches the given [accessibility snapshot](https://playwright.dev/python/docs/aria-snapshots).
766+
767+
**Usage**
768+
769+
```python title="example_7e42f38bd7c5b69b7f22390f6afa0f53aa155d74ad6a72b080fa2910013dc22c.py"
770+
page.goto("https://demo.playwright.dev/todomvc/")
771+
expect(page.locator('body')).to_match_aria_snapshot('''
772+
- heading "todos"
773+
- textbox "What needs to be done?"
774+
''')
775+
776+
```

documentation/docs/include/api_coverage.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -565,6 +565,7 @@
565565
* not_to_be_visible
566566
* not_to_contain_text
567567
* not_to_have_accessible_description
568+
* not_to_have_accessible_error_message
568569
* not_to_have_accessible_name
569570
* not_to_have_attribute
570571
* not_to_have_class
@@ -601,7 +602,7 @@
601602
* to_have_text
602603
* to_have_value
603604
* to_have_values
604-
* ~~to_match_aria_snapshot#1~~
605+
* to_match_aria_snapshot
605606

606607
## PageAssertions
607608

lib/playwright/locator_assertions_impl.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -188,6 +188,7 @@ def to_have_accessible_error_message(errorMessage, ignoreCase: nil, timeout: nil
188188
"Locator expected to have accessible error message"
189189
)
190190
end
191+
_define_negation :to_have_accessible_error_message
191192

192193
def to_have_attribute(name, value, ignoreCase: nil, timeout: nil)
193194
expected_text = to_expected_text_values([value], ignore_case: ignoreCase)

lib/playwright/version.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# frozen_string_literal: true
22

33
module Playwright
4-
VERSION = '1.49.0'
5-
COMPATIBLE_PLAYWRIGHT_VERSION = '1.49.0'
4+
VERSION = '1.50.0'
5+
COMPATIBLE_PLAYWRIGHT_VERSION = '1.50.1'
66
end

0 commit comments

Comments
 (0)