Skip to content

Commit

Permalink
Merge tag '0.31.3' into HEAD
Browse files Browse the repository at this point in the history
  • Loading branch information
YusukeIwaki committed Mar 26, 2021
2 parents 4b2405f + bc9664b commit 1883a95
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 6 deletions.
4 changes: 2 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
### master [[diff](https://github.com/YusukeIwaki/puppeteer-ruby/compare/0.31.2...master)]
### master [[diff](https://github.com/YusukeIwaki/puppeteer-ruby/compare/0.31.3...master)]

* xxx

### 0.31.2 [[diff](https://github.com/YusukeIwaki/puppeteer-ruby/compare/0.31.1...0.31.2)]
### 0.31.3 [[diff](https://github.com/YusukeIwaki/puppeteer-ruby/compare/0.31.1...0.31.3)]

Bugfix:

Expand Down
2 changes: 1 addition & 1 deletion docs/api_coverage.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# API coverages
- Puppeteer version: v8.0.0
- puppeteer-ruby version: 0.31.2
- puppeteer-ruby version: 0.31.3

## Puppeteer

Expand Down
2 changes: 1 addition & 1 deletion lib/puppeteer/version.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
module Puppeteer
VERSION = '0.31.2'
VERSION = '0.31.3'
end
4 changes: 2 additions & 2 deletions lib/puppeteer/wait_task.rb
Original file line number Diff line number Diff line change
Expand Up @@ -140,12 +140,12 @@ def rerun
if (success) return Promise.resolve(success);
let fulfill;
const result = new Promise((x) => (fulfill = x));
const observer = new MutationObserver(() => {
const observer = new MutationObserver(async () => {
if (timedOut) {
observer.disconnect();
fulfill();
}
const success = predicate(...args);
const success = await predicate(...args);
if (success) {
observer.disconnect();
fulfill(success);
Expand Down
5 changes: 5 additions & 0 deletions spec/integration/example_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,11 @@
end
end

it {
page.goto('https://twitter.com/AndroidDev')
Timeout.timeout(10) { page.wait_for_selector('article[role="article"]') }
}

it 'should input text and grab DOM elements' do
skip if Puppeteer.env.ci? && !Puppeteer.env.windows?

Expand Down

0 comments on commit 1883a95

Please sign in to comment.