<commit_before># Copyright (c) 2010-2011 Novell, Inc.
# Licensed under the terms of the MIT license.

Given /^I am on the errata page$/ do
  step "I am authorized"
  within(:xpath, "//header") do
    find_link(debrand_string("Errata")).click
  end
end

Given /^I am on the "([^"]*)" errata Details page$/ do |arg1|
  step "I am on the errata page"
    step "I follow \"All\" in the left menu"
    step "I follow \"#{arg1}\""
end

Then /^I should see three links to the errata in the list$/ do
  arch=`uname -m`
  arch.chomp!
  linknames = [ "slessp2-nfs-client-6222",
		"slessp2-aaa_base-6544"]
  if arch != "x86_64"
      linknames << "slessp2-kernel-6641"
  else
      linknames << "slessp2-kernel-6648"
  end
  linknames.each() do |link|
    fail if not has_xpath?("//form/table/tbody/tr/td/a[contains(.,'#{link}')]")
  end
end

Then /^I should see an update in the list$/ do
  fail if not has_xpath?("//form/div/div/div/table/tbody/tr/td/a")
end<commit_msg>remove unused step definition<commit_after># Copyright (c) 2010-2011 Novell, Inc.
# Licensed under the terms of the MIT license.

Given /^I am on the errata page$/ do
  step "I am authorized"
  within(:xpath, "//header") do
    find_link(debrand_string("Errata")).click
  end
end

Given /^I am on the "([^"]*)" errata Details page$/ do |arg1|
  step "I am on the errata page"
    step "I follow \"All\" in the left menu"
    step "I follow \"#{arg1}\""
end

Then /^I should see an update in the list$/ do
  fail if not has_xpath?("//form/div/div/div/table/tbody/tr/td/a")
end
{'fraction_non_alphanumeric': 0.15169270833333334, 'fraction_numerical': 0.028645833333333332, 'mean_word_length': 3.257617728531856, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3820132', 'n_tokens_mistral': 609, 'n_tokens_neox': 571, 'n_words': 193}