superbot-local 0.1.0 → 0.1.1
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/Gemfile.lock +6 -7
- data/lib/superbot/local/cli/local/easy_mode_command.rb +38 -0
- data/lib/superbot/local/cli/local_command.rb +2 -0
- data/lib/superbot/local/version.rb +1 -1
- data/lib/superbot/local.rb +1 -0
- data/superbot-local.gemspec +1 -1
- metadata +5 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 18c3738c7c229adb8274712d8d72d32cd15becb3f79cf91d38997831fa4823f7
|
4
|
+
data.tar.gz: 34c59cb2ea22e3eda35adb06e6187dab303b25bf1f20a4ca873166468727adfe
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 40a372b4adc4302994387bd6089ec3325e8b58b6ac0afb17a9f7f1911450613bbd4feb4a595aafa41826e56ff3c7baddcf63f8d4800780c9bb5381c46794fff9
|
7
|
+
data.tar.gz: 503c16654dd6e03e9a59664d9a28b966ce70fbe43f62e4da1ea0662d53339c22cdaa0c3c73295513cb82a2f4a7e4dc774b3581d053e75aa4006abf491a3274b6
|
data/Gemfile.lock
CHANGED
@@ -1,8 +1,9 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
superbot-local (0.1.
|
5
|
-
superbot
|
4
|
+
superbot-local (0.1.1)
|
5
|
+
superbot (~> 0.1.3)
|
6
|
+
superbot-capybara (~> 360.0, >= 360.0.0)
|
6
7
|
|
7
8
|
GEM
|
8
9
|
remote: https://rubygems.org/
|
@@ -36,7 +37,7 @@ GEM
|
|
36
37
|
mini_mime (1.0.1)
|
37
38
|
mini_portile2 (2.3.0)
|
38
39
|
mustermann (1.0.3)
|
39
|
-
nokogiri (1.8.
|
40
|
+
nokogiri (1.8.5)
|
40
41
|
mini_portile2 (~> 2.3.0)
|
41
42
|
parallel (1.12.1)
|
42
43
|
parser (2.5.1.2)
|
@@ -82,12 +83,11 @@ GEM
|
|
82
83
|
rack-protection (= 2.0.3)
|
83
84
|
tilt (~> 2.0)
|
84
85
|
sinatra-silent (0.0.1)
|
85
|
-
superbot (0.1.
|
86
|
+
superbot (0.1.3)
|
86
87
|
clamp (= 1.2.1)
|
87
88
|
launchy (= 2.4.3)
|
88
89
|
sinatra (= 2.0.3)
|
89
90
|
sinatra-silent (= 0.0.1)
|
90
|
-
superbot-capybara
|
91
91
|
zaru (= 0.2.0)
|
92
92
|
superbot-capybara (360.0.0)
|
93
93
|
capybara (= 3.6.0)
|
@@ -98,7 +98,7 @@ GEM
|
|
98
98
|
selenium-webdriver (= 3.14.0)
|
99
99
|
tilt (2.0.8)
|
100
100
|
unicode-display_width (1.4.0)
|
101
|
-
xpath (3.
|
101
|
+
xpath (3.2.0)
|
102
102
|
nokogiri (~> 1.8)
|
103
103
|
zaru (0.2.0)
|
104
104
|
|
@@ -111,7 +111,6 @@ DEPENDENCIES
|
|
111
111
|
rake (~> 10.0)
|
112
112
|
rspec (~> 3.0)
|
113
113
|
rubocop (~> 0.53)
|
114
|
-
superbot-capybara
|
115
114
|
superbot-local!
|
116
115
|
|
117
116
|
BUNDLED WITH
|
@@ -0,0 +1,38 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
require 'selenium-webdriver'
|
4
|
+
|
5
|
+
module Superbot
|
6
|
+
module CLI
|
7
|
+
module Local
|
8
|
+
class EasyModeCommand < Clamp::Command
|
9
|
+
def execute
|
10
|
+
web = Superbot::Web.new
|
11
|
+
web.run_async_after_running!
|
12
|
+
|
13
|
+
puts "🤖 active"
|
14
|
+
puts ""
|
15
|
+
puts "Press enter to exit"
|
16
|
+
|
17
|
+
open_step_editor
|
18
|
+
|
19
|
+
$stdin.gets
|
20
|
+
|
21
|
+
close_step_editor
|
22
|
+
end
|
23
|
+
|
24
|
+
private
|
25
|
+
|
26
|
+
def open_step_editor
|
27
|
+
options = Selenium::WebDriver::Chrome::Options.new
|
28
|
+
options.add_argument("app=#{Superbot::Local::STEP_EDITOR_URL}")
|
29
|
+
@step_editor = Selenium::WebDriver.for :chrome, options: options
|
30
|
+
end
|
31
|
+
|
32
|
+
def close_step_editor
|
33
|
+
@step_editor.quit
|
34
|
+
end
|
35
|
+
end
|
36
|
+
end
|
37
|
+
end
|
38
|
+
end
|
@@ -2,12 +2,14 @@
|
|
2
2
|
|
3
3
|
require_relative 'local/version_command'
|
4
4
|
require_relative 'local/run_command'
|
5
|
+
require_relative 'local/easy_mode_command'
|
5
6
|
|
6
7
|
module Superbot
|
7
8
|
module CLI
|
8
9
|
class LocalCommand < Clamp::Command
|
9
10
|
subcommand ['run'], "Run tests from local directory", Local::RunCommand
|
10
11
|
subcommand ['version'], "Superbot local version", Local::VersionCommand
|
12
|
+
subcommand ['easymode'], "Superbot UI test constructor", Local::EasyModeCommand
|
11
13
|
|
12
14
|
def self.run
|
13
15
|
super
|
data/lib/superbot/local.rb
CHANGED
data/superbot-local.gemspec
CHANGED
@@ -32,7 +32,7 @@ Gem::Specification.new do |spec|
|
|
32
32
|
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
33
33
|
spec.require_paths = ["lib"]
|
34
34
|
|
35
|
-
spec.add_runtime_dependency "superbot", "~> 0.1.
|
35
|
+
spec.add_runtime_dependency "superbot", "~> 0.1.3"
|
36
36
|
spec.add_runtime_dependency "superbot-capybara", "~> 360.0", ">= 360.0.0"
|
37
37
|
|
38
38
|
spec.add_development_dependency "kommando", "~> 0.1"
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: superbot-local
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Superbots
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-10-
|
11
|
+
date: 2018-10-16 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: superbot
|
@@ -16,14 +16,14 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - "~>"
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: 0.1.
|
19
|
+
version: 0.1.3
|
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: 0.1.
|
26
|
+
version: 0.1.3
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: superbot-capybara
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
@@ -138,6 +138,7 @@ files:
|
|
138
138
|
- exe/superbot-local
|
139
139
|
- lib/superbot/local.rb
|
140
140
|
- lib/superbot/local/cli.rb
|
141
|
+
- lib/superbot/local/cli/local/easy_mode_command.rb
|
141
142
|
- lib/superbot/local/cli/local/run_command.rb
|
142
143
|
- lib/superbot/local/cli/local/version_command.rb
|
143
144
|
- lib/superbot/local/cli/local_command.rb
|