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

Testsuite: Add step to filter formulas #7349

Merged
merged 2 commits into from
Aug 3, 2023
Merged
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
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ Feature: Use advanced features of Salt formulas
When I install "form.yml" to custom formula metadata directory "testform"
And I install "metadata.yml" to custom formula metadata directory "testform"
When I follow the left menu "Salt > Formula Catalog"
And I enter "testform" as the filtered formula name
Then I should see a "testform" text

Scenario: Assign test formula to minion via group formula
Expand Down
4 changes: 4 additions & 0 deletions testsuite/features/step_definitions/navigation_steps.rb
Original file line number Diff line number Diff line change
Expand Up @@ -841,6 +841,10 @@
find("input[placeholder='Filter by Snippet Name: ']").set(input)
end

When(/^I enter "([^"]*)" as the filtered formula name$/) do |input|
find("input[placeholder='Filter by formula name']").set(input)
end

When(/^I enter the package for "([^"]*)" as the filtered package name$/) do |host|
step %(I enter "#{PACKAGE_BY_CLIENT[host]}" as the filtered package name)
end
Expand Down
Loading