kookaburra 0.11.0 → 0.12.0
Sign up to get free protection for your applications and to get access to all the features.
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.
|
1
|
+
0.12.0
|
data/kookaburra.gemspec
CHANGED
@@ -1,6 +1,7 @@
|
|
1
1
|
require 'kookaburra/ui_driver/mixins/has_browser'
|
2
2
|
require 'kookaburra/ui_driver/mixins/has_strategies'
|
3
3
|
require 'kookaburra/ui_driver/mixins/has_subcomponents'
|
4
|
+
require 'kookaburra/ui_driver/mixins/has_ui_component'
|
4
5
|
|
5
6
|
module Kookaburra
|
6
7
|
class UIDriver
|
@@ -8,6 +9,7 @@ module Kookaburra
|
|
8
9
|
include Kookaburra::Assertion
|
9
10
|
include HasBrowser
|
10
11
|
include HasStrategies
|
12
|
+
include HasUIComponent
|
11
13
|
extend HasSubcomponents
|
12
14
|
|
13
15
|
##### Class macros #####
|
data/lib/kookaburra/ui_driver.rb
CHANGED
@@ -2,6 +2,15 @@ require 'helper'
|
|
2
2
|
require 'minitest/mock'
|
3
3
|
|
4
4
|
describe Kookaburra::UIDriver::UIComponent do
|
5
|
+
it 'can have nested UIComponents' do
|
6
|
+
InnerComponent = Class.new(Kookaburra::UIDriver::UIComponent)
|
7
|
+
OuterComponent = Class.new(Kookaburra::UIDriver::UIComponent) do
|
8
|
+
ui_component :inner_component
|
9
|
+
end
|
10
|
+
component = OuterComponent.new(:browser => Object.new)
|
11
|
+
assert_kind_of InnerComponent, component.inner_component
|
12
|
+
end
|
13
|
+
|
5
14
|
let(:component_class) do
|
6
15
|
Class.new(Kookaburra::UIDriver::UIComponent) do
|
7
16
|
component_locator '#my_component'
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: kookaburra
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 47
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 0
|
8
|
-
-
|
8
|
+
- 12
|
9
9
|
- 0
|
10
|
-
version: 0.
|
10
|
+
version: 0.12.0
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Renewable Funding, LLC
|