errata test added
[opensuse:spacewalk-testsuite-base.git] / features / step_definitions / erratapage_steps.rb
1 Given /^I am on the Errata page$/ do
2   Given "I am authorized"
3   within(:xpath, "//div[@id=\"mainNavWrap\"]") do
4     find_link("Errata").click
5   end
6 end
7
8 When /^I check test channel$/ do
9   within(:xpath, "//form/table/tbody/tr[contains(.,'Test Base Channel')]") do
10     find(:xpath, "//input[@type='checkbox']").set(true)
11   end
12 end
13
14 When /^I check "([^"]*)" erratum$/ do |arg1|
15   within(:xpath, "//form/table/tbody/tr[.//a[contains(.,'"+arg1+"')]]") do
16     find(:xpath, "//input[@type='checkbox']").set(true)
17   end
18 end
19
20 When /^I search for erratum$/ do
21   within(:xpath, "//form/div/div/table/tbody/tr[contains(.,'Search For')]") do
22     fill_in "search_string", :with => "Test"
23     click_button "Search"
24   end
25 end