cucumber-rails 1.1.1 → 1.2.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 +1 -0
- data/History.md +8 -1
- data/Rakefile +4 -2
- data/cucumber-rails.gemspec +17 -17
- data/features/allow_rescue.feature +1 -1
- data/features/capybara_javascript_drivers.feature +1 -1
- data/features/choose_javascript_database_strategy.feature +63 -0
- data/features/database_cleaner.feature +1 -1
- data/features/emulate_javascript.feature +2 -2
- data/features/field_with_errors.feature +2 -2
- data/features/fixing_bundler_pre.feature +1 -1
- data/features/inspect_query_string.feature +1 -1
- data/features/install_cucumber_rails.feature +1 -1
- data/features/multiple_databases.feature +1 -1
- data/features/no_database.feature +1 -1
- data/features/rerun_profile.feature +1 -1
- data/features/rest_api.feature +1 -1
- data/features/routing.feature +1 -1
- data/features/step_definitions/cucumber_rails_steps.rb +52 -398
- data/features/support/bundler_pre_support.rb +28 -0
- data/features/support/env.rb +1 -4
- data/features/support/fixtures/bundler-1.0.21.gem +0 -0
- data/features/support/fixtures/bundler-1.1.rc.gem +0 -0
- data/{lib/generators/cucumber/install/templates/step_definitions/web_steps.rb.erb → features/support/legacy_web_steps_support.rb} +69 -14
- data/lib/cucumber/rails.rb +1 -1
- data/lib/cucumber/rails/database.rb +67 -0
- data/lib/cucumber/rails/hooks/active_record.rb +2 -12
- data/lib/generators/cucumber/install/USAGE +0 -3
- data/lib/generators/cucumber/install/templates/support/_rails_each_run.rb.erb +6 -1
- metadata +79 -88
- data/Gemfile.lock +0 -202
- data/features/test_unit.feature +0 -45
- data/lib/cucumber/web/tableish.rb +0 -119
- data/lib/generators/cucumber/install/templates/step_definitions/web_steps_cs.rb.erb +0 -127
- data/lib/generators/cucumber/install/templates/step_definitions/web_steps_da.rb.erb +0 -105
- data/lib/generators/cucumber/install/templates/step_definitions/web_steps_de.rb.erb +0 -127
- data/lib/generators/cucumber/install/templates/step_definitions/web_steps_es.rb.erb +0 -127
- data/lib/generators/cucumber/install/templates/step_definitions/web_steps_ja.rb.erb +0 -140
- data/lib/generators/cucumber/install/templates/step_definitions/web_steps_ko.rb.erb +0 -142
- data/lib/generators/cucumber/install/templates/step_definitions/web_steps_no.rb.erb +0 -105
- data/lib/generators/cucumber/install/templates/step_definitions/web_steps_pt-BR.rb.erb +0 -132
- data/spec/cucumber/web/tableish_spec.rb +0 -239
@@ -1,105 +0,0 @@
|
|
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
|
-
Når /^(.*) under ([^:]+)$/ do |step, parent|
|
9
|
-
with_scope(parent) { Når step }
|
10
|
-
end
|
11
|
-
|
12
|
-
# Multi-line step scoper
|
13
|
-
Når /^(.*) under ([^:]+):$/ do |step, parent, table_or_string|
|
14
|
-
with_scope(parent) { Når "#{step}:", table_or_string }
|
15
|
-
end
|
16
|
-
|
17
|
-
Givet /^(?:|at )jeg står på (.*)$/ do |page_name|
|
18
|
-
Given %{I am on #{page_name}}
|
19
|
-
end
|
20
|
-
|
21
|
-
Når /^jeg går til (.*)$/ do |page_name|
|
22
|
-
When %{I go to #{page_name}}
|
23
|
-
end
|
24
|
-
|
25
|
-
Når /^jeg trykker "([^"]*)"$/ do |button|
|
26
|
-
When %{I press "#{button}"}
|
27
|
-
end
|
28
|
-
|
29
|
-
Når /^jeg klikker "([^"]*)"$/ do |link|
|
30
|
-
When %{I follow "#{link}"}
|
31
|
-
end
|
32
|
-
|
33
|
-
Når /^jeg fylder ud "([^"]*)" med "([^"]*)"$/ do |field, value|
|
34
|
-
When %{I fill in "#{field}" with "#{value}"}
|
35
|
-
end
|
36
|
-
|
37
|
-
Når /^jeg fylder ud "([^"]*)" for "([^"]*)"$/ do |value, field|
|
38
|
-
When %{I fill in "#{value}" for "#{field}"}
|
39
|
-
end
|
40
|
-
|
41
|
-
Når /^jeg fylder følgende ud:$/ do |fields|
|
42
|
-
When %{I fill in the following:}, fields
|
43
|
-
end
|
44
|
-
|
45
|
-
Når /^jeg vælger "([^"]*)" fra "([^"]*)"$/ do |value, field|
|
46
|
-
When %{I select "#{value}" from "#{field}"}
|
47
|
-
end
|
48
|
-
|
49
|
-
# Missing: date stuff
|
50
|
-
|
51
|
-
Når /^jeg afkrydser "([^"]*)"$/ do |field|
|
52
|
-
When %{I check "#{field}"}
|
53
|
-
end
|
54
|
-
|
55
|
-
Når /^jeg fjerner afkrydsning for "([^"]*)"$/ do |field|
|
56
|
-
When %{I uncheck "#{field}"}
|
57
|
-
end
|
58
|
-
|
59
|
-
Når /^jeg vælger "([^"]*)"$/ do |field|
|
60
|
-
When %{I choose "#{field}"}
|
61
|
-
end
|
62
|
-
|
63
|
-
Når /^jeg tilsætter filen "([^"]*)" til "([^"]*)"$/ do |path, field|
|
64
|
-
When %{I attach the file "#{path}" to "#{field}"}
|
65
|
-
end
|
66
|
-
|
67
|
-
Så /^(?:skal jeg|jeg skal) se "([^"]*)"$/ do |text|
|
68
|
-
Then %{I should see "#{text}"}
|
69
|
-
end
|
70
|
-
|
71
|
-
Så /^(?:skal jeg|jeg skal) se \/([^\/]*)\/$/ do |regexp|
|
72
|
-
Then %{I should see /#{regexp}/}
|
73
|
-
end
|
74
|
-
|
75
|
-
Så /^(?:skal jeg|jeg skal) ikke se "([^"]*)"$/ do |text|
|
76
|
-
Then %{I should not see "#{text}"}
|
77
|
-
end
|
78
|
-
|
79
|
-
Så /^(?:skal jeg|jeg skal) ikke se \/([^\/]*)\/$/ do |regexp|
|
80
|
-
Then %{I should not see /#{regexp}/}
|
81
|
-
end
|
82
|
-
|
83
|
-
Så /^(?:skal )"([^"]*)" feltet (?:skal )indeholde "([^"]*)"$/ do |field, value|
|
84
|
-
Then %{the "#{field}" field should contain "#{value}"}
|
85
|
-
end
|
86
|
-
|
87
|
-
Så /^(?:skal ) "([^"]*)" feltet (?:skal )ikke indeholde "([^"]*)"$/ do |field, value|
|
88
|
-
Then %{the "#{field}" field should not contain "#{value}"}
|
89
|
-
end
|
90
|
-
|
91
|
-
Så /^(?:skal ) "([^"]*)" afkrydsningsboksen (?:skal )være krydset af$/ do |label|
|
92
|
-
Then %{the "#{label}" checkbox should be checked}
|
93
|
-
end
|
94
|
-
|
95
|
-
Så /^(?:skal ) "([^"]*)" afkrydsningsboksen (?:skal )ikke være krydset af$/ do |label|
|
96
|
-
Then %{the "#{label}" checkbox should not be checked}
|
97
|
-
end
|
98
|
-
|
99
|
-
Så /^(?:skal jeg|jeg skal) komme til (.+)$/ do |page_name|
|
100
|
-
Then %{I should be on #{page_name}}
|
101
|
-
end
|
102
|
-
|
103
|
-
Så /^vil jeg se siden$/ do |page_name|
|
104
|
-
Then %{show me the page}
|
105
|
-
end
|
@@ -1,127 +0,0 @@
|
|
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
|
@@ -1,127 +0,0 @@
|
|
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
|
@@ -1,140 +0,0 @@
|
|
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
|
-
|