booth 0.0.5 → 0.0.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 264066475702a46d7d19919ea95013455262385bcdc0ff8035615dcfd70d9e70
4
- data.tar.gz: 329fbfa42ec1aea4901db11db6cec1ddaaf09365a324fff312b0470f3bf6e366
3
+ metadata.gz: 3ec33d897b1f9072ecfdc730fb0abed29e7e5aca9635d32f142d734bcd217d66
4
+ data.tar.gz: '097f5698c175a5c4a40f256be260eda49f44d3c23386a9a56cf4d372b17b857e'
5
5
  SHA512:
6
- metadata.gz: 54191963f2bbe26f3483067e96a506c4d2ac0061134dba817379c3adcbfd5b7a0b4888c767f514305188335b8320bd938e951c46879b866fe18d56881aee0ed7
7
- data.tar.gz: 709bd0a9a61668f8a20182de852475b0d080d8d7795cc3e4baf3f246d6fa2740164f2328862f094d2e6620a8e0d9c81b2cd94f69758c9b359700e530cb2e53c2
6
+ metadata.gz: addafe7edd3d6ccf8f2e97b1f02551f921b4f299325cf26e05b13b89d79bdf31568998dadbf2f0dd3ce20c83c2a90ef619ada45d9d23e56c6ae646f4d1fac89b
7
+ data.tar.gz: cb55e6e0c2f5d8dc4528b90dab891e2928dc280ccb381f9cac5f54f208c4dc801f4465eaf18073c6ab0d667e14724ca370eb8bfde39aa6a2f055443767d5034b
data/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # main
2
2
 
3
+ # 0.0.6
4
+
5
+ - More robust test helper partial matching
6
+
3
7
  # 0.0.5
4
8
 
5
9
  - Fix playwright dependencies
@@ -20,7 +20,12 @@ module Booth
20
20
  begin
21
21
  ::Timeout.timeout(Capybara.default_max_wait_time) do
22
22
  loop do
23
- content = page.html.match(%r{<template>([^<]+)</template>})[1].strip
23
+ match = page.html.match(%r{<template>([^<]+)</template>})
24
+ unless match
25
+ sleep 0.1
26
+ next
27
+ end
28
+ content = match[1].strip
24
29
  unless content == partial
25
30
  sleep 0.1
26
31
  next
data/lib/booth/version.rb CHANGED
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Booth
4
- VERSION = '0.0.5'
4
+ VERSION = '0.0.6'
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: booth
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.5
4
+ version: 0.0.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - halo