File tree Expand file tree Collapse file tree 2 files changed +10
-1
lines changed
Expand file tree Collapse file tree 2 files changed +10
-1
lines changed Original file line number Diff line number Diff line change @@ -24,7 +24,12 @@ def initialize(file_path:)
2424 #-------------------------------
2525 def number_of_required_mobile_devices
2626 all_tags = @scenarios . map ( &:tags ) . flatten . uniq
27- all_tags . select { |tag | tag == '@mobile' } . count
27+ mobile_tagged_count = all_tags . select { |tag | tag == '@mobile' } . count
28+ empty_tagged_scenarios = @scenarios . select do |scenario |
29+ !scenario . tags . include? ( '@mobile' ) &&
30+ !scenario . tags . include? ( '@web' )
31+ end
32+ mobile_tagged_count + empty_tagged_scenarios . count
2833 end
2934
3035 def number_of_required_web_devices
Original file line number Diff line number Diff line change 6666 device . save_snapshot_in_file_path ( file_path )
6767end
6868
69+ Then ( /^I enter text "([^\" ]*)"$/ ) do |text |
70+ keyboard_enter_text ( text , { } )
71+ end
72+
6973private
7074
7175def current_process_id
You can’t perform that action at this time.
0 commit comments