Module: TestPluginHelper

Defined in:
lib/efset_test_helper/efset_apps/test_plugin_helper.rb

Instance Method Summary collapse

Instance Method Details

#complete_efset_listeningObject



28
29
30
31
32
33
34
35
# File 'lib/efset_test_helper/efset_apps/test_plugin_helper.rb', line 28

def complete_efset_listening
  skip_instructions
  3.times do
    confirm_audio_check
    select_radio(1)
    next_task
  end
end

#complete_efset_readingObject



22
23
24
25
26
# File 'lib/efset_test_helper/efset_apps/test_plugin_helper.rb', line 22

def complete_efset_reading
  skip_instructions
  select_radio(1)
  3.times {next_task}
end

#complete_expressObject

Answer test



10
11
12
13
14
# File 'lib/efset_test_helper/efset_apps/test_plugin_helper.rb', line 10

def complete_express
  confirm_audio_check
  select_radio(1)
  2.times {next_task}
end

#complete_express1604Object



16
17
18
19
20
# File 'lib/efset_test_helper/efset_apps/test_plugin_helper.rb', line 16

def complete_express1604
  select_radio(2)
  continue_next_task
  15.times {next_task}
end

#complete_placement_listeningObject



43
44
45
46
47
48
49
50
51
52
# File 'lib/efset_test_helper/efset_apps/test_plugin_helper.rb', line 43

def complete_placement_listening
  skip_instructions
  confirm_audio_check
  select_dropdown(6)
  next_task
  5.times do
    confirm_audio_check
    next_task
  end
end

#complete_placement_readingObject



37
38
39
40
41
# File 'lib/efset_test_helper/efset_apps/test_plugin_helper.rb', line 37

def complete_placement_reading
  skip_instructions
  select_dropdown(1)
  4.times {next_task}
end

#confirm_audio_checkObject



63
64
65
66
# File 'lib/efset_test_helper/efset_apps/test_plugin_helper.rb', line 63

def confirm_audio_check
  play_icon.when_present(10).click
  confirm_audio.click
end

#next_taskObject



68
69
70
71
72
# File 'lib/efset_test_helper/efset_apps/test_plugin_helper.rb', line 68

def next_task
  sleep 0.5
  continue_next_task
  confirm_next_task
end

#play_icon_visible?Boolean

Answer test helpers

Returns:

  • (Boolean)


58
59
60
61
# File 'lib/efset_test_helper/efset_apps/test_plugin_helper.rb', line 58

def play_icon_visible?
  play_icon.wait_until_present(15)
  play_icon.visible?
end