cucumber-rails-training-wheels 1.0.0
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.
- data/.gitignore +8 -0
- data/Gemfile +2 -0
- data/Gemfile.lock +156 -0
- data/README.md +29 -0
- data/Rakefile +10 -0
- data/cucumber-rails-training-wheels.gemspec +25 -0
- data/features/step_defintions/rails_steps.rb +21 -0
- data/features/support/env.rb +8 -0
- data/features/use_training_wheels.feature +17 -0
- data/lib/generators/cucumber_rails_training_wheels/feature/USAGE +16 -0
- data/lib/generators/cucumber_rails_training_wheels/feature/feature_generator.rb +27 -0
- data/lib/generators/cucumber_rails_training_wheels/feature/named_arg.rb +20 -0
- data/lib/generators/cucumber_rails_training_wheels/feature/templates/feature.erb +63 -0
- data/lib/generators/cucumber_rails_training_wheels/feature/templates/steps.erb +14 -0
- data/lib/generators/cucumber_rails_training_wheels/install/USAGE +15 -0
- data/lib/generators/cucumber_rails_training_wheels/install/install_generator.rb +33 -0
- data/lib/generators/cucumber_rails_training_wheels/install/templates/step_definitions/web_steps.rb.erb +235 -0
- data/lib/generators/cucumber_rails_training_wheels/install/templates/step_definitions/web_steps_cs.rb.erb +127 -0
- data/lib/generators/cucumber_rails_training_wheels/install/templates/step_definitions/web_steps_da.rb.erb +105 -0
- data/lib/generators/cucumber_rails_training_wheels/install/templates/step_definitions/web_steps_de.rb.erb +127 -0
- data/lib/generators/cucumber_rails_training_wheels/install/templates/step_definitions/web_steps_es.rb.erb +127 -0
- data/lib/generators/cucumber_rails_training_wheels/install/templates/step_definitions/web_steps_ja.rb.erb +140 -0
- data/lib/generators/cucumber_rails_training_wheels/install/templates/step_definitions/web_steps_ko.rb.erb +142 -0
- data/lib/generators/cucumber_rails_training_wheels/install/templates/step_definitions/web_steps_no.rb.erb +105 -0
- data/lib/generators/cucumber_rails_training_wheels/install/templates/step_definitions/web_steps_pt-BR.rb.erb +132 -0
- data/lib/generators/cucumber_rails_training_wheels/install/templates/support/paths.rb +38 -0
- data/lib/generators/cucumber_rails_training_wheels/install/templates/support/selectors.rb +44 -0
- data/lib/generators/cucumber_rails_training_wheels/install/templates/support/web_steps_warning.txt +19 -0
- data/lib/generators/cucumber_rails_training_wheels/install/templates/tasks/cucumber.rake.erb +60 -0
- metadata +148 -0
@@ -0,0 +1,127 @@
|
|
1
|
+
# encoding: utf-8
|
2
|
+
<%= embed_file('support/web_steps_warning.txt') %>
|
3
|
+
|
4
|
+
require File.expand_path(File.join(File.dirname(__FILE__), "..", "support", "paths"))
|
5
|
+
require File.expand_path(File.join(File.dirname(__FILE__), "..", "support", "selectors"))
|
6
|
+
|
7
|
+
# Single-line step scoper
|
8
|
+
Wenn /^(.*) innerhalb ([^:]+)$/ do |step, parent|
|
9
|
+
with_scope(parent) { Wenn step }
|
10
|
+
end
|
11
|
+
|
12
|
+
# Multi-line step scoper
|
13
|
+
Wenn /^(.*) innerhalb ([^:]+):$/ do |step, parent, table_or_string|
|
14
|
+
with_scope(parent) { Wenn "#{step}:", table_or_string }
|
15
|
+
end
|
16
|
+
|
17
|
+
Angenommen /^(?:|ich )bin auf (.+)$/ do |page_name|
|
18
|
+
Given %{I am on #{page_name}}
|
19
|
+
end
|
20
|
+
|
21
|
+
Wenn /^(?:|ich )auf (.+) gehe$/ do |page_name|
|
22
|
+
When %{I go to #{page_name}}
|
23
|
+
end
|
24
|
+
|
25
|
+
Wenn /^(?:|ich )auf "([^"]*)" drücke$/ do |button|
|
26
|
+
When %{I press "#{button}"}
|
27
|
+
end
|
28
|
+
|
29
|
+
Wenn /^(?:|ich )auf "([^"]*)" klicke$/ do |link|
|
30
|
+
When %{I follow "#{link}"}
|
31
|
+
end
|
32
|
+
|
33
|
+
Wenn /^(?:|ich )"([^"]*)" mit "([^"]*)" ausfülle$/ do |field, value|
|
34
|
+
When %{I fill in "#{field}" with "#{value}"}
|
35
|
+
end
|
36
|
+
|
37
|
+
Wenn /^(?:|ich )"([^"]*)" in "([^"]*)" eingebe$/ do |value, field|
|
38
|
+
When %{I fill in "#{value}" for "#{field}"}
|
39
|
+
end
|
40
|
+
|
41
|
+
Wenn /^(?:|ich )folgendes eingebe:$/ do |fields|
|
42
|
+
When %{I fill in the following:}, fields
|
43
|
+
end
|
44
|
+
|
45
|
+
Wenn /^(?:|ich )"([^"]*)" in "([^"]*)" auswähle$/ do |value, field|
|
46
|
+
When %{I select "#{value}" from "#{field}"}
|
47
|
+
end
|
48
|
+
|
49
|
+
Wenn /^(?:|ich )"([^"]*)" als Datum und Uhrzeit auswähle$/ do |time|
|
50
|
+
When %{I select "#{time}" as the date and time}
|
51
|
+
end
|
52
|
+
|
53
|
+
Wenn /^(?:|ich )"([^"]*)" als "([^"]*)" Datum und Uhrzeit auswähle$/ do |datetime, datetime_label|
|
54
|
+
When %{I select "#{datetime}" as the "#{datetime_label}" date and time}
|
55
|
+
end
|
56
|
+
|
57
|
+
Wenn /^(?:|ich )"([^"]*)" als Uhrzeit auswähle$/ do |time|
|
58
|
+
When %{I select "#{time}" as the time}
|
59
|
+
end
|
60
|
+
|
61
|
+
Wenn /^(?:|ich )"([^"]*)" als "([^"]*)" Uhrzeit auswähle$/ do |time, time_label|
|
62
|
+
When %{I select "#{time}" as the "#{time_label}" time}
|
63
|
+
end
|
64
|
+
|
65
|
+
Wenn /^(?:|ich )"([^"]*)" als Datum auswähle$/ do |date|
|
66
|
+
When %{I select "#{date}" as the date}
|
67
|
+
end
|
68
|
+
|
69
|
+
Wenn /^(?:|ich )"([^"]*)" als "([^"]*)" Datum auswähle$/ do |date, date_label|
|
70
|
+
When %{I select "#{date}" as the "#{date_label}" date}
|
71
|
+
end
|
72
|
+
|
73
|
+
Wenn /^(?:|ich )"([^"]*)" anhake$/ do |field|
|
74
|
+
When %{I check "#{field}"}
|
75
|
+
end
|
76
|
+
|
77
|
+
Wenn /^(?:|ich )"([^"]*)" abhake$/ do |field|
|
78
|
+
When %{I uncheck "#{field}"}
|
79
|
+
end
|
80
|
+
|
81
|
+
Wenn /^(?:|ich )"([^"]*)" auswähle$/ do |field|
|
82
|
+
When %{I choose "#{field}"}
|
83
|
+
end
|
84
|
+
|
85
|
+
Wenn /^(?:|ich )die Datei "([^"]*)" als "([^"]*)" anhänge$/ do |path, field|
|
86
|
+
When %{I attach the file "#{path}" to "#{field}"}
|
87
|
+
end
|
88
|
+
|
89
|
+
Dann /^(?:|ich sollte |sollte (?:|ich )?)"([^"]*)" sehen$/ do |text|
|
90
|
+
Then %{I should see "#{text}"}
|
91
|
+
end
|
92
|
+
|
93
|
+
Dann /^(?:|ich sollte |sollte (?:|ich )?)\/([^\/]*)\/ sehen$/ do |regexp|
|
94
|
+
Then %{I should see /#{regexp}/}
|
95
|
+
end
|
96
|
+
|
97
|
+
Dann /^(?:|ich sollte |sollte (?:|ich )?)nicht "([^"]*)" sehen$/ do |text|
|
98
|
+
Then %{I should not see "#{text}"}
|
99
|
+
end
|
100
|
+
|
101
|
+
Dann /^(?:|ich sollte |sollte (?:|ich )?)nicht \/([^\/]*)\/ sehen$/ do |regexp|
|
102
|
+
Then %{I should not see /#{regexp}/}
|
103
|
+
end
|
104
|
+
|
105
|
+
Dann /^(?:|sollte )das "([^"]*)" Feld (?:|sollte )"([^"]*)" enthalten$/ do |field, value|
|
106
|
+
Then %{the "#{field}" field should contain "#{value}"}
|
107
|
+
end
|
108
|
+
|
109
|
+
Dann /^(?:|sollte )das "([^"]*)" Feld (?:|sollte )nicht "([^"]*)" enthalten$/ do |field, value|
|
110
|
+
Then %{the "#{field}" field should not contain "#{value}"}
|
111
|
+
end
|
112
|
+
|
113
|
+
Dann /^(?:|sollte )die "([^"]*)" Checkbox (?:|sollte )angehakt sein$/ do |label|
|
114
|
+
Then %{the "#{label}" checkbox should be checked}
|
115
|
+
end
|
116
|
+
|
117
|
+
Dann /^(?:|sollte )die "([^"]*)" Checkbox (?:|sollte )nicht angehakt sein$/ do |label|
|
118
|
+
Then %{the "#{label}" checkbox should not be checked}
|
119
|
+
end
|
120
|
+
|
121
|
+
Dann /^(?:|ich sollte |sollte (?:|ich )?)auf (.+) sein$/ do |page_name|
|
122
|
+
Then %{I should be on #{page_name}}
|
123
|
+
end
|
124
|
+
|
125
|
+
Dann /^zeig mir die Seite$/ do
|
126
|
+
Then %{show me the page}
|
127
|
+
end
|
@@ -0,0 +1,127 @@
|
|
1
|
+
# encoding: utf-8
|
2
|
+
<%= embed_file('support/web_steps_warning.txt') %>
|
3
|
+
|
4
|
+
require File.expand_path(File.join(File.dirname(__FILE__), "..", "support", "paths"))
|
5
|
+
require File.expand_path(File.join(File.dirname(__FILE__), "..", "support", "selectors"))
|
6
|
+
|
7
|
+
# Single-line step scoper
|
8
|
+
Cuando /^(.*) dentro de ([^:]+)$/ do |step, parent|
|
9
|
+
with_scope(parent) { Cuando step }
|
10
|
+
end
|
11
|
+
|
12
|
+
# Multi-line step scoper
|
13
|
+
Cuando /^(.*) dentro de ([^:]+):$/ do |step, parent, table_or_string|
|
14
|
+
with_scope(parent) { Cuando "#{step}:", table_or_string }
|
15
|
+
end
|
16
|
+
|
17
|
+
Dado /^que estoy en (.+)$/ do |page_name|
|
18
|
+
Given %{I am on #{page_name}}
|
19
|
+
end
|
20
|
+
|
21
|
+
Cuando /^voy a (.+)$/ do |page_name|
|
22
|
+
When %{I go to #{page_name}}
|
23
|
+
end
|
24
|
+
|
25
|
+
Cuando /^apreto "([^"]*)"$/ do |button|
|
26
|
+
When %{I press "#{button}"}
|
27
|
+
end
|
28
|
+
|
29
|
+
Cuando /^clickeo "([^"]*)"$/ do |link|
|
30
|
+
When %{I follow "#{link}"}
|
31
|
+
end
|
32
|
+
|
33
|
+
Cuando /^completo "([^"]*)" con "([^"]*)"$/ do |field, value|
|
34
|
+
When %{I fill in "#{field}" with "#{value}"}
|
35
|
+
end
|
36
|
+
|
37
|
+
Cuando /^completo "([^"]*)" para "([^"]*)"$/ do |value, field|
|
38
|
+
When %{I fill in "#{value}" for "#{field}"}
|
39
|
+
end
|
40
|
+
|
41
|
+
Cuando /^completo lo siguiente:$/ do |fields|
|
42
|
+
When %{I fill in the following:}, fields
|
43
|
+
end
|
44
|
+
|
45
|
+
Cuando /^selecciono "([^"]*)" de "([^"]*)"$/ do |value, field|
|
46
|
+
When %{I select "#{value}" from "#{field}"}
|
47
|
+
end
|
48
|
+
|
49
|
+
Cuando /^selecciono "([^"]*)" como la fecha y la hora$/ do |time|
|
50
|
+
When %{I select "#{time}" as the date and time}
|
51
|
+
end
|
52
|
+
|
53
|
+
Cuando /^selecciono "([^"]*)" como la fecha y la hora "([^"]*)"$/ do |datetime, datetime_label|
|
54
|
+
When %{I select "#{datetime}" as the "#{datetime_label}" date and time}
|
55
|
+
end
|
56
|
+
|
57
|
+
Cuando /^selecciono "([^"]*)" como la hora$/ do |time|
|
58
|
+
When %{I select "#{time}" as the time}
|
59
|
+
end
|
60
|
+
|
61
|
+
Cuando /^selecciono "([^"]*)" como la hora "([^"]*)"$/ do |time, time_label|
|
62
|
+
When %{I select "#{time}" as the "#{time_label}" time}
|
63
|
+
end
|
64
|
+
|
65
|
+
Cuando /^selecciono "([^"]*)" como la fecha$/ do |date|
|
66
|
+
When %{I select "#{date}" as the date}
|
67
|
+
end
|
68
|
+
|
69
|
+
Cuando /^selecciono "([^"]*)" como la fecha "([^"]*)"$/ do |date, date_label|
|
70
|
+
When %{I select "#{date}" as the "#{date_label}" date}
|
71
|
+
end
|
72
|
+
|
73
|
+
Cuando /^marco "([^"]*)"$/ do |field|
|
74
|
+
When %{I check "#{field}"}
|
75
|
+
end
|
76
|
+
|
77
|
+
Cuando /^desmarco "([^"]*)"$/ do |field|
|
78
|
+
When %{I uncheck "#{field}"}
|
79
|
+
end
|
80
|
+
|
81
|
+
Cuando /^elijo "([^"]*)"$/ do |field|
|
82
|
+
When %{I choose "#{field}"}
|
83
|
+
end
|
84
|
+
|
85
|
+
Cuando /^adjunto el archivo "([^"]*)" a "([^"]*)"$/ do |path, field|
|
86
|
+
When %{I attach the file "#{path}" to "#{field}"}
|
87
|
+
end
|
88
|
+
|
89
|
+
Entonces /^debería ver "([^"]*)"$/ do |text|
|
90
|
+
Then %{I should see "#{text}"}
|
91
|
+
end
|
92
|
+
|
93
|
+
Entonces /^debería ver \/([^\/]*)\/$/ do |regexp|
|
94
|
+
Then %{I should see /#{regexp}/}
|
95
|
+
end
|
96
|
+
|
97
|
+
Entonces /^no debería ver "([^"]*)"$/ do |text|
|
98
|
+
Then %{I should not see "#{text}"}
|
99
|
+
end
|
100
|
+
|
101
|
+
Entonces /^no debería ver \/([^\/]*)\/$/ do |regexp|
|
102
|
+
Then %{I should not see /#{regexp}/}
|
103
|
+
end
|
104
|
+
|
105
|
+
Entonces /^el campo "([^"]*)" debería contener "([^"]*)"$/ do |field, value|
|
106
|
+
Then %{the "#{field}" field should contain "#{value}"}
|
107
|
+
end
|
108
|
+
|
109
|
+
Entonces /^el campo "([^"]*)" no debería contener "([^"]*)"$/ do |field, value|
|
110
|
+
Then %{the "#{field}" field should not contain "#{value}"}
|
111
|
+
end
|
112
|
+
|
113
|
+
Entonces /^la checkbox "([^"]*)" debería estar marcada$/ do |label|
|
114
|
+
Then %{the "#{label}" checkbox should be checked}
|
115
|
+
end
|
116
|
+
|
117
|
+
Entonces /^la checkbox "([^"]*)" no debería estar marcada$/ do |label|
|
118
|
+
Then %{the "#{label}" checkbox should not be checked}
|
119
|
+
end
|
120
|
+
|
121
|
+
Entonces /^debería estar en (.+)$/ do |page_name|
|
122
|
+
Then %{I should be on #{page_name}}
|
123
|
+
end
|
124
|
+
|
125
|
+
Entonces /^mostrame la página$/ do
|
126
|
+
Then %{show me the page}
|
127
|
+
end
|
@@ -0,0 +1,140 @@
|
|
1
|
+
# encoding: utf-8
|
2
|
+
<%= embed_file('support/web_steps_warning.txt') %>
|
3
|
+
|
4
|
+
require File.expand_path(File.join(File.dirname(__FILE__), "..", "support", "paths"))
|
5
|
+
require File.expand_path(File.join(File.dirname(__FILE__), "..", "support", "selectors"))
|
6
|
+
|
7
|
+
前提 /^"([^"]*)"ページを表示している$/ do |page_name|
|
8
|
+
Given %{I am on #{page_name}}
|
9
|
+
end
|
10
|
+
|
11
|
+
もし /^"([^"]*)"ページを表示する$/ do |page_name|
|
12
|
+
When %{I go to #{page_name}}
|
13
|
+
end
|
14
|
+
|
15
|
+
もし /^"([^"]*)"ボタンをクリックする$/ do |button|
|
16
|
+
When %{I press "#{button}"}
|
17
|
+
end
|
18
|
+
|
19
|
+
もし /^"([^"]*)"リンクをクリックする$/ do |link|
|
20
|
+
When %{I follow "#{link}"}
|
21
|
+
end
|
22
|
+
|
23
|
+
もし /^"([^"]*)"の"([^"]*)"リンクをクリックする$/ do |parent, link|
|
24
|
+
When %{I follow "#{link}" within "#{parent}"}
|
25
|
+
end
|
26
|
+
|
27
|
+
もし /^"([^"]*)"に"([^"]*)"と入力する$/ do |field, value|
|
28
|
+
When %{I fill in "#{field}" with "#{value}"}
|
29
|
+
end
|
30
|
+
|
31
|
+
# less difference to %{I fill in "#{value}" for "#{field}"} with above in Japanese.
|
32
|
+
|
33
|
+
もし /^以下の項目を入力する:$/ do |fields|
|
34
|
+
When %{I fill in the following:}, fields
|
35
|
+
end
|
36
|
+
|
37
|
+
もし /^"([^"]*)"から"([^"]*)"を選択する$/ do |field, value|
|
38
|
+
When %{I select "#{value}" from "#{field}"}
|
39
|
+
end
|
40
|
+
|
41
|
+
もし /^日時として"([^"]*)"を選択する$/ do |time|
|
42
|
+
When %{I select "#{time}" as the date and time}
|
43
|
+
end
|
44
|
+
|
45
|
+
もし /^"([^"]*)"の日時として"([^"]*)"を選択する$/ do |datetime_label, datetime|
|
46
|
+
When %{I select "#{datetime}" as the "#{datetime_label}" date and time}
|
47
|
+
end
|
48
|
+
|
49
|
+
もし /^時間として"([^"]*)"を選択する$/ do |time|
|
50
|
+
When %{I select "#{time}" as the time}
|
51
|
+
end
|
52
|
+
|
53
|
+
もし /^"([^"]*)"の時間として"([^"]*)"を選択する$/ do |time_label, time|
|
54
|
+
When %{I select "#{time}" as the "#{time_label}" time}
|
55
|
+
end
|
56
|
+
|
57
|
+
もし /^日付として"([^"]*)"を選択する$/ do |date|
|
58
|
+
When %{I select "#{date}" as the date}
|
59
|
+
end
|
60
|
+
|
61
|
+
もし /^"([^"]*)"の日付として"([^"]*)"を選択する$/ do |date_label, date|
|
62
|
+
When %{I select "#{date}" as the "#{date_label}" date}
|
63
|
+
end
|
64
|
+
|
65
|
+
もし /^"([^"]*)"をチェックする$/ do |field|
|
66
|
+
When %{I check "#{field}"}
|
67
|
+
end
|
68
|
+
|
69
|
+
もし /^"([^"]*)"のチェックを外す$/ do |field|
|
70
|
+
When %{I uncheck "#{field}"}
|
71
|
+
end
|
72
|
+
|
73
|
+
もし /^"([^"]*)"を選択する$/ do |field|
|
74
|
+
When %{I choose "#{field}"}
|
75
|
+
end
|
76
|
+
|
77
|
+
もし /^"([^"]*)"としてファイル"([^"]*)"を選択する$/ do |field, path|
|
78
|
+
When %{I attach the file "#{path}" to "#{field}"}
|
79
|
+
end
|
80
|
+
|
81
|
+
ならば /^"([^"]*)"と表示されていること$/ do |text|
|
82
|
+
Then %{I should see "#{text}"}
|
83
|
+
end
|
84
|
+
|
85
|
+
ならば /^"([^"]*)"に"([^"]*)"と表示されていること$/ do |selector, text|
|
86
|
+
Then %{I should see "#{text}" within "#{selector}"}
|
87
|
+
end
|
88
|
+
|
89
|
+
ならば /^\/([^\/]*)\/と表示されていること$/ do |regexp|
|
90
|
+
Then %{I should see /#{regexp}/}
|
91
|
+
end
|
92
|
+
|
93
|
+
ならば /^"([^"]*)"に\/([^\/]*)\/と表示されていること$/ do |selector, regexp|
|
94
|
+
Then %{I should see \/#{regexp}\/ within "#{selector}"}
|
95
|
+
end
|
96
|
+
|
97
|
+
ならば /^"([^"]*)"と表示されていないこと$/ do |text|
|
98
|
+
Then %{I should not see "#{text}"}
|
99
|
+
end
|
100
|
+
|
101
|
+
ならば /^"([^"]*)"に"([^"]*)"と表示されていないこと$/ do |selector, text|
|
102
|
+
Then %{I should not see "#{text}" within "#{selector}"}
|
103
|
+
end
|
104
|
+
|
105
|
+
ならば /^\/([^\/]*)\/と表示されていないこと$/ do |regexp|
|
106
|
+
Then %{I should not see /#{regexp}/}
|
107
|
+
end
|
108
|
+
|
109
|
+
ならば /^"([^"]*)"に\/([^\/]*)\/と表示されていないこと$/ do |selector, regexp|
|
110
|
+
Then %{I should not see \/#{regexp}\/ within "#{selector}"}
|
111
|
+
end
|
112
|
+
|
113
|
+
ならば /^入力項目"([^"]*)"に"([^"]*)"と表示されていること$/ do |field, value|
|
114
|
+
Then %{the "#{field}" field should contain "#{value}"}
|
115
|
+
end
|
116
|
+
|
117
|
+
ならば /^入力項目"([^"]*)"に"([^"]*)"と表示されていないこと$/ do |field, value|
|
118
|
+
Then %{the "#{field}" field should not contain "#{value}"}
|
119
|
+
end
|
120
|
+
|
121
|
+
ならば /^"([^"]*)"がチェックされていること$/ do |label|
|
122
|
+
Then %{the "#{label}" checkbox should be checked}
|
123
|
+
end
|
124
|
+
|
125
|
+
ならば /^"([^"]*)"がチェックされていないこと$/ do |label|
|
126
|
+
Then %{the "#{label}" checkbox should not be checked}
|
127
|
+
end
|
128
|
+
|
129
|
+
ならば /^"([^"]*)"ページを表示していること$/ do |page_name|
|
130
|
+
Then %{I should be on #{page_name}}
|
131
|
+
end
|
132
|
+
|
133
|
+
show_me_the_page = lambda { Then %{show me the page} }
|
134
|
+
|
135
|
+
ならば /^ページを表示する$/, &show_me_the_page
|
136
|
+
ならば /^画面を目視$/, &show_me_the_page
|
137
|
+
|
138
|
+
# backword-compat for old japanese translation.
|
139
|
+
ならば /^デバッグ(?:のため)?$/, &show_me_the_page
|
140
|
+
|
@@ -0,0 +1,142 @@
|
|
1
|
+
# encoding: utf-8
|
2
|
+
<%= embed_file('support/web_steps_warning.txt') %>
|
3
|
+
|
4
|
+
require File.expand_path(File.join(File.dirname(__FILE__), "..", "support", "paths"))
|
5
|
+
require File.expand_path(File.join(File.dirname(__FILE__), "..", "support", "selectors"))
|
6
|
+
|
7
|
+
조건 /^(.+)페이지에 있습니다$/ do |page_name|
|
8
|
+
Given %{I am on #{page_name}}
|
9
|
+
end
|
10
|
+
|
11
|
+
만일 /^(.+)페이지로 갑니다$/ do |page_name|
|
12
|
+
When %{I go to #{page_name}}
|
13
|
+
end
|
14
|
+
|
15
|
+
만일 /^"([^"]*)"버튼을 누릅니다$/ do |button|
|
16
|
+
When %{I press "#{button}"}
|
17
|
+
end
|
18
|
+
|
19
|
+
만일 /^"([^"]*)"링크를 클릭합니다$/ do |link|
|
20
|
+
When %{I follow "#{link}"}
|
21
|
+
end
|
22
|
+
|
23
|
+
만일 /^"([^"]*)"안에 있는 "([^"]*)"링크를 클릭합니다$/ do |parent, link|
|
24
|
+
When %{I follow "#{link}" within "#{parent}"}
|
25
|
+
end
|
26
|
+
|
27
|
+
만일 /^"([^"]*)"에 "([^"]*)"라고 적습니다$/ do |field, value|
|
28
|
+
When %{I fill in "#{field}" with "#{value}"}
|
29
|
+
end
|
30
|
+
|
31
|
+
만일 /^"([^"]*)"라고 "([^"]*)"에 적습니다$/ do |value, field|
|
32
|
+
When %{I fill in "#{value}" for "#{field}"}
|
33
|
+
end
|
34
|
+
|
35
|
+
만일 /^아레의 목록을 입력합니다$/ do |fields|
|
36
|
+
When %{I fill in the following:}, fields
|
37
|
+
end
|
38
|
+
|
39
|
+
만일 /^"([^"]*)"를 "([^"]*)"으로 합니다$/ do |field, value|
|
40
|
+
When %{I select "#{value}" from "#{field}"}
|
41
|
+
end
|
42
|
+
|
43
|
+
만일 /^날짜와 시간를 "([^"]*)"으로 합니다$/ do |time|
|
44
|
+
When %{I select "#{time}" as the date and time}
|
45
|
+
end
|
46
|
+
|
47
|
+
만일 /^"([^"]*)"의 날짜와 시간을 "([^"]*)"으로 합니다$/ do |datetime_label, datetime|
|
48
|
+
When %{I select "#{datetime}" as the "#{datetime_label}" date and time}
|
49
|
+
end
|
50
|
+
|
51
|
+
만일 /^시간을 "([^"]*)"으로 합니다$/ do |time|
|
52
|
+
When %{I select "#{time}" as the time}
|
53
|
+
end
|
54
|
+
|
55
|
+
만일 /^"([^"]*)"의 시간을 "([^"]*)"으로 합니다$/ do |time_label, time|
|
56
|
+
When %{I select "#{time}" as the "#{time_label}" time}
|
57
|
+
end
|
58
|
+
|
59
|
+
만일 /^날짜를 "([^"]*)"으로 합니다$/ do |date|
|
60
|
+
When %{I select "#{date}" as the date}
|
61
|
+
end
|
62
|
+
|
63
|
+
만일 /^"([^"]*)"의 날짜를 "([^"]*)"으로 합니다$/ do |date_label, date|
|
64
|
+
When %{I select "#{date}" as the "#{date_label}" date}
|
65
|
+
end
|
66
|
+
|
67
|
+
만일 /^"([^"]*)"를 체크합니다$/ do |field|
|
68
|
+
When %{I check "#{field}"}
|
69
|
+
end
|
70
|
+
|
71
|
+
만일 /^"([^"]*)"의 체크를 해제합니다$/ do |field|
|
72
|
+
When %{I uncheck "#{field}"}
|
73
|
+
end
|
74
|
+
|
75
|
+
만일 /^"([^"]*)"를 고릅니다$/ do |field|
|
76
|
+
When %{I choose "#{field}"}
|
77
|
+
end
|
78
|
+
|
79
|
+
만일 /^"([^"]*)"에 "([^"]*)"파일을 첨부합니다$/ do |field, path|
|
80
|
+
When %{I attach the file "#{path}" to "#{field}"}
|
81
|
+
end
|
82
|
+
|
83
|
+
그러면 /^"([^"]*)"가 보여야 합니다$/ do |text|
|
84
|
+
Then %{I should see "#{text}"}
|
85
|
+
end
|
86
|
+
|
87
|
+
그러면 /^"([^"]*)"안에 "([^"]*)"가 보여야 합니다$/ do |selector, text|
|
88
|
+
Then %{I should see "#{text}" within "#{selector}"}
|
89
|
+
end
|
90
|
+
|
91
|
+
그러면 /^\/([^\/]*)\/가 보여야 합니다$/ do |regexp|
|
92
|
+
Then %{I should see /#{regexp}/}
|
93
|
+
end
|
94
|
+
|
95
|
+
그러면 /^"([^"]*)"안에 \/([^\/]*)\/가 보여야 합니다$/ do |selector, regexp|
|
96
|
+
Then %{I should see /#{regexp}/ within "#{selector}"}
|
97
|
+
end
|
98
|
+
|
99
|
+
그러면 /^"([^"]*)"가 보이면 안됩니다$/ do |text|
|
100
|
+
Then %{I should not see "#{text}"}
|
101
|
+
end
|
102
|
+
|
103
|
+
그러면 /^"([^"]*)"안에 "([^"]*)"가 보이면 안됩니다$/ do |selector, text|
|
104
|
+
Then %{I should not see "#{text}" within "#{selector}"}
|
105
|
+
end
|
106
|
+
|
107
|
+
그러면 /^\/([^\/]*)\/가 보이면 안됩니다$/ do |regexp|
|
108
|
+
Then %{I should not see /#{regexp}/}
|
109
|
+
end
|
110
|
+
|
111
|
+
그러면 /^"([^"]*)"안에 \/([^\/]*)\/가 보이면 안됩니다$/ do |selector, regexp|
|
112
|
+
Then %{I should not see /#{regexp}/ within "#{selector}"}
|
113
|
+
end
|
114
|
+
|
115
|
+
그러면 /^"([^"]*)"는 "([^"]*)"이어야 합니다$/ do |field, value|
|
116
|
+
Then %{the "#{field}" field should contain "#{value}"}
|
117
|
+
end
|
118
|
+
|
119
|
+
그러면 /^"([^"]*)"는 "([^"]*)"이면 안됩니다$/ do |field, value|
|
120
|
+
Then %{the "#{field}" field should not contain "#{value}"}
|
121
|
+
end
|
122
|
+
|
123
|
+
그러면 /^"([^"]*)"는 체크되어 있어야 합니다$/ do |label|
|
124
|
+
Then %{the "#{label}" checkbox should be checked}
|
125
|
+
end
|
126
|
+
|
127
|
+
그러면 /^"([^"]*)"는 체크되어 있으면 안됩니다$/ do |label|
|
128
|
+
Then %{the "#{label}" checkbox should not be checked}
|
129
|
+
end
|
130
|
+
|
131
|
+
그러면 /^(.+)에 있어야 합니다$/ do |page_name|
|
132
|
+
Then %{I should be on #{page_name}}
|
133
|
+
end
|
134
|
+
|
135
|
+
그러면 /^다음 쿼리들이 나와야합니다:$/ do |expected_pairs|
|
136
|
+
Then %{I should have the following query string:}
|
137
|
+
end
|
138
|
+
|
139
|
+
그러면 /^페이지를 엽니다$/ do
|
140
|
+
Then %{show me the page}
|
141
|
+
end
|
142
|
+
|