workarea-testing 3.4.19 → 3.4.20

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/workarea/system_test.rb +14 -1
  3. metadata +4 -4
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 2a1e681172aaa4fbb7121295c0eb8c93b32007dbaf60bd1157c8ef29f7068d7f
4
- data.tar.gz: a2bedd6d1065b377c4bdf4ae3e3b465a5bea0aca7b5ec2f29d9f25192e2c40e4
3
+ metadata.gz: 60c0bce20725fbaa0947a3ae633729aea076d81d5afa7b298de094ee975618fb
4
+ data.tar.gz: 46370f874a2ed330b1aa355b9917871bc51eb0c0a8a278157d73e1be7a0cab6c
5
5
  SHA512:
6
- metadata.gz: 7ceb06550099677ac2bbdc4dabc605b2cb335479988c608a389e2b763ad37ef583183d97e3555c9c3bb813cdb532dc12ec2eb3fb2ac3c7ed37d726954b3b7486
7
- data.tar.gz: a09e876fcc8437cd63616f09467dadd914f45c88bee1b4e6546bc84a8c6e5b35e12a0df92857a952f2c035e14a695613eb2e5ca3872e46940d2087432c0f5d74
6
+ metadata.gz: 839559eb4ea905510f2abd5430dd913164fe4083ae6b647549ef47a45d211c219e01aa42b23a0fde2753d664e408d3160071954e95cab2c33f2be8fb6facd004
7
+ data.tar.gz: 6960b5e484b5b5703cebf1749a29ca19130c56a407cdcd87e15557f9a07f0fb1cfb1820cc82eeeb8fd2f87eb20ec1933c4470aa4a9e4daf34c09fc56999f1d37
@@ -70,7 +70,7 @@ module Workarea
70
70
  # before going nuts on the page. Theoretically, Capybara does this for you.
71
71
  # Of course in theory, theory works.
72
72
  #
73
- (%i(visit refresh go_back go_forward within) + Capybara::Session::NODE_METHODS).each do |method|
73
+ (%i(visit refresh go_back go_forward within within_frame) + Capybara::Session::NODE_METHODS).each do |method|
74
74
  class_eval <<-ruby
75
75
  def #{method}(*)
76
76
  return super unless javascript?
@@ -150,6 +150,19 @@ module Workarea
150
150
  end
151
151
  end
152
152
 
153
+ # There is some kind of timing problem around waiting for this iframe that
154
+ # after a few hours we still can't find. This is a hack to keep this
155
+ # passing.
156
+ #
157
+ # May God have mercy on our souls.
158
+ #
159
+ # TODO v3.6
160
+ # Remove this after we stop using an iframe for the admin toolbar
161
+ #
162
+ def wait_for_iframe
163
+ sleep(0.5)
164
+ end
165
+
153
166
  private
154
167
 
155
168
  def finished_all_xhr_requests?
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: workarea-testing
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.4.19
4
+ version: 3.4.20
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ben Crouse
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-10-16 00:00:00.000000000 Z
11
+ date: 2019-10-30 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: workarea-core
@@ -16,14 +16,14 @@ dependencies:
16
16
  requirements:
17
17
  - - '='
18
18
  - !ruby/object:Gem::Version
19
- version: 3.4.19
19
+ version: 3.4.20
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - '='
25
25
  - !ruby/object:Gem::Version
26
- version: 3.4.19
26
+ version: 3.4.20
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: capybara
29
29
  requirement: !ruby/object:Gem::Requirement