bard-attachment_field 0.2.3 → 0.2.4
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 +4 -4
- data/lib/bard/attachment_field/cucumber.rb +2 -2
- data/lib/bard/attachment_field/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: f060d98d9b6c3c4e0494845d868b7f702009df53e1cd39ac0d659402a8c28b97
|
|
4
|
+
data.tar.gz: a2e2afa88506420373c09e818612a037eb111a910370c87a2f41c69968d84151
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 1480f10a1aaf61dc8f14e7c0e97062b033e85aa8d97d47e6df857cf1d254ad3b3adbee192d3de2156dc19dc3d2de16f244c9b6561933483c70a797ba63a0eecc
|
|
7
|
+
data.tar.gz: c78324d6d01030eeb10180287c14c6218e122ad865b511c89c7613ce8515b04aa3f138d4cdf8e0aab35216b66443478fafb6e6314955cfe9b01d06b1320493fb
|
|
@@ -54,7 +54,7 @@ module Bard::AttachmentField::TestHelper
|
|
|
54
54
|
def wait_for_files(session, element_id, minimum, timeout: 15)
|
|
55
55
|
start = Process.clock_gettime(Process::CLOCK_MONOTONIC)
|
|
56
56
|
loop do
|
|
57
|
-
count = session.evaluate_script("document.getElementById(
|
|
57
|
+
count = session.evaluate_script("document.getElementById(`#{element_id}`).querySelectorAll('attachment-file').length")
|
|
58
58
|
break if count >= minimum
|
|
59
59
|
elapsed = Process.clock_gettime(Process::CLOCK_MONOTONIC) - start
|
|
60
60
|
raise "Expected at least #{minimum} attachment-file(s) in ##{element_id}, found #{count} after #{timeout}s" if elapsed > timeout
|
|
@@ -65,7 +65,7 @@ module Bard::AttachmentField::TestHelper
|
|
|
65
65
|
def wait_for_no_files(session, element_id, selector = "attachment-file", timeout: 10)
|
|
66
66
|
start = Process.clock_gettime(Process::CLOCK_MONOTONIC)
|
|
67
67
|
loop do
|
|
68
|
-
count = session.evaluate_script("document.getElementById(
|
|
68
|
+
count = session.evaluate_script("document.getElementById(`#{element_id}`).querySelectorAll(`#{selector}`).length")
|
|
69
69
|
break if count == 0
|
|
70
70
|
elapsed = Process.clock_gettime(Process::CLOCK_MONOTONIC) - start
|
|
71
71
|
raise "Expected no #{selector} in ##{element_id}, found #{count} after #{timeout}s" if elapsed > timeout
|