ruby_raider 0.8.1 → 0.8.2
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/generators/actions/templates/actions.tt +4 -1
- data/lib/ruby_raider.rb +1 -1
- data/ruby_raider.gemspec +1 -1
- data/spec/automation_generator_spec.rb +9 -9
- 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: aace14774067301e8684757746f8bcbfce04d3515e65760d5152e5161246d668
|
4
|
+
data.tar.gz: 2ca8f14af7aef79f26c7fa95339f2d73f45ecf75c1b424f2318501dd576ef1ec
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a52a934e23410edc20803c6b8e8c6f494c93b7f7cfd76427ed3d205c235524d5ee81213765daa3ab2053318118a6f9ab38100159d87bd19312aef411450496c0
|
7
|
+
data.tar.gz: d1751f9086dfe00cc95dd8f5a39e246d6a8c57558dfd9caa82e434ea54c55d39b77e16a7a957e0f3a746392a6d4a4abb512fab21932816309923ef648a4ac3a0
|
@@ -34,8 +34,11 @@ jobs:
|
|
34
34
|
- name: Create screenshots folder
|
35
35
|
run: mkdir -p allure-results/screenshots
|
36
36
|
|
37
|
+
- name: Prepare the browser options
|
38
|
+
run: raider utility browser_options headless no-sandbox window-size=1920,1080
|
39
|
+
|
37
40
|
- name: Build and test with rspec
|
38
|
-
run: <%- if framework == 'cucumber' -%>cucumber features --format pretty <%- else -%>bundle exec rspec spec --format documentation<%- end
|
41
|
+
run: <%- if framework == 'cucumber' -%>cucumber features --format pretty <%- else -%>bundle exec rspec spec --format documentation<%- end %>
|
39
42
|
|
40
43
|
- name: Get Allure history
|
41
44
|
uses: actions/checkout@v2
|
data/lib/ruby_raider.rb
CHANGED
@@ -19,7 +19,7 @@ module RubyRaider
|
|
19
19
|
desc 'version', 'It shows the version of Ruby Raider you are currently using'
|
20
20
|
|
21
21
|
def version
|
22
|
-
puts 'The Ruby Raider version is 0.8.
|
22
|
+
puts 'The Ruby Raider version is 0.8.2, Happy testing!'
|
23
23
|
end
|
24
24
|
|
25
25
|
map 'v' => 'version'
|
data/ruby_raider.gemspec
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
|
3
3
|
Gem::Specification.new do |s|
|
4
4
|
s.name = 'ruby_raider'
|
5
|
-
s.version = '0.8.
|
5
|
+
s.version = '0.8.2'
|
6
6
|
s.summary = 'A gem to make setup and start of UI automation projects easier'
|
7
7
|
s.description = 'This gem has everything you need to start working with test automation'
|
8
8
|
s.authors = ['Agustin Pequeno']
|
@@ -6,43 +6,43 @@ require_relative 'spec_helper'
|
|
6
6
|
describe AutomationGenerator do
|
7
7
|
shared_examples 'creates web automation framework' do |name|
|
8
8
|
it 'creates a login page file' do
|
9
|
-
expect(File).to exist("#{name}/page_objects/pages/
|
9
|
+
expect(File).to exist("#{name}/page_objects/pages/login.rb")
|
10
10
|
end
|
11
11
|
|
12
12
|
it 'creates an abstract page file' do
|
13
|
-
expect(File).to exist("#{name}/page_objects/abstract/
|
13
|
+
expect(File).to exist("#{name}/page_objects/abstract/page.rb")
|
14
14
|
end
|
15
15
|
|
16
16
|
it 'creates an abstract component file' do
|
17
|
-
expect(File).to exist("#{name}/page_objects/abstract/
|
17
|
+
expect(File).to exist("#{name}/page_objects/abstract/component.rb")
|
18
18
|
end
|
19
19
|
|
20
20
|
it 'creates a component file' do
|
21
|
-
expect(File).to exist("#{name}/page_objects/components/
|
21
|
+
expect(File).to exist("#{name}/page_objects/components/header.rb")
|
22
22
|
end
|
23
23
|
end
|
24
24
|
|
25
25
|
shared_examples 'creates mobile automation framework' do |name|
|
26
26
|
it 'creates a home page file' do
|
27
|
-
expect(File).to exist("#{name}/page_objects/pages/
|
27
|
+
expect(File).to exist("#{name}/page_objects/pages/home.rb")
|
28
28
|
end
|
29
29
|
|
30
30
|
it 'creates an abstract page file' do
|
31
|
-
expect(File).to exist("#{name}/page_objects/abstract/
|
31
|
+
expect(File).to exist("#{name}/page_objects/abstract/page.rb")
|
32
32
|
end
|
33
33
|
|
34
34
|
it 'creates a pdp page file' do
|
35
|
-
expect(File).to exist("#{name}/page_objects/pages/
|
35
|
+
expect(File).to exist("#{name}/page_objects/pages/pdp.rb")
|
36
36
|
end
|
37
37
|
end
|
38
38
|
|
39
39
|
shared_examples 'creates web visual framework' do |name|
|
40
40
|
it 'creates a login page file' do
|
41
|
-
expect(File).to exist("#{name}/page_objects/pages/
|
41
|
+
expect(File).to exist("#{name}/page_objects/pages/login.rb")
|
42
42
|
end
|
43
43
|
|
44
44
|
it 'creates an abstract page file' do
|
45
|
-
expect(File).to exist("#{name}/page_objects/abstract/
|
45
|
+
expect(File).to exist("#{name}/page_objects/abstract/page.rb")
|
46
46
|
end
|
47
47
|
end
|
48
48
|
|