Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

QE: Change UI element for checking list of salt keys #7429

Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion testsuite/documentation/cucumber-steps.md
Original file line number Diff line number Diff line change
Expand Up @@ -228,7 +228,9 @@ For a test with a regular expression, there is ```I should see a text like "..."
When I wait until I see the name of "sle_minion", refreshing the page
When I wait until I do not see the name of "sle_minion", refreshing the page
When I wait until the table contains "FINISHED" or "SKIPPED" followed by "FINISHED" in its first rows
When I refresh page until I see "sle_minion" hostname as text
When I refresh systems page until I see "sle_minion" hostname as text
When I refresh keys page until I see "sle_minion" hostname as text

```

(last one should probably be renamed - it looks in the contents area of the page)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ Feature: Retracted patches
And I follow "Packages" in the content area
And I follow "rute-dummy-2.0-1.2.x86_64"
And I follow "Target Systems"
And I refresh page until I see "sle_minion" hostname as text
And I refresh systems page until I see "sle_minion" hostname as text

Scenario: Target systems for retracted packages should be empty
When I follow the left menu "Software > Channel List > All"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ Feature: Management of minion keys
And I restart salt-minion on "sle_minion"
And I wait at most 10 seconds until Salt master sees "sle_minion" as "unaccepted"
And I follow the left menu "Salt > Keys"
And I refresh page until I see "sle_minion" hostname as text
And I refresh keys page until I see "sle_minion" hostname as text
Then I should see a "Fingerprint" text
And I see "sle_minion" fingerprint
And I should see a "pending" text
Expand Down
8 changes: 7 additions & 1 deletion testsuite/features/step_definitions/salt_steps.rb
Original file line number Diff line number Diff line change
Expand Up @@ -412,12 +412,18 @@ def pillar_get(key, minion)
raise "xpath: #{xpath_query} not found" unless find(:xpath, xpath_query).click
end

When(/^I refresh page until I see "(.*?)" hostname as text$/) do |minion|
When(/^I refresh systems page until I see "(.*?)" hostname as text$/) do |minion|
within('#spacewalk-content') do
step %(I wait until I see the name of "#{minion}", refreshing the page)
end
end

When(/^I refresh keys page until I see "(.*?)" hostname as text$/) do |minion|
within('#spacewalk-list') do
step %(I wait until I see the name of "#{minion}", refreshing the page)
end
end

When(/^I refresh page until I do not see "(.*?)" hostname as text$/) do |minion|
within('#spacewalk-content') do
step %(I wait until I do not see the name of "#{minion}", refreshing the page)
Expand Down
Loading