Skip to content

Commit

Permalink
Adjust CLM filter that became a modal (uyuni-project#4195)
Browse files Browse the repository at this point in the history
  • Loading branch information
ktsamis committed Sep 7, 2021
1 parent 24434c8 commit 1b4892d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
Expand Up @@ -64,21 +64,22 @@ Feature: Adding the CentOS 8 distribution custom repositories
Scenario: Create CLM filters to remove AppStream metadata
Given I am authorized for the "Admin" section
When I follow the left menu "Content Lifecycle > Filters"
And I click on "Create Filter"
Then I wait at most 10 seconds until I see modal containing "Create a new filter" text
Then I should see a "Create a new filter" text
When I enter "ruby-2.7" as "filter_name"
And I enter "ruby-2.7" as "filter_name"
And I select "Module (Stream)" from "type"
And I enter "ruby" as "moduleName"
And I enter "2.7" as "moduleStream"
And I click on "Save"
And I click on "Save" in "Create a new filter" modal
Then I should see a "ruby-2.7" text
When I click on "Create Filter"
Then I wait at most 10 seconds until I see modal containing "Create a new filter" text
Then I should see a "Create a new filter" text
When I enter "python-3.6" as "filter_name"
And I select "Module (Stream)" from "type"
And I enter "python36" as "moduleName"
And I enter "3.6" as "moduleStream"
And I click on "Save"
And I click on "Save" in "Create a new filter" modal
Then I should see a "python-3.6" text

Scenario: Create a CLM project to remove AppStream metadata
Expand Down
2 changes: 1 addition & 1 deletion testsuite/features/step_definitions/navigation_steps.rb
Expand Up @@ -958,7 +958,7 @@

# Wait until a modal window with a specific content is shown
When(/^I wait at most (\d+) seconds until I see modal containing "([^"]*)" text$/) do |timeout, title|
path = "//*[contains(@class, \"modal-body\") and contains(., \"#{title}\")]" \
path = "//*[contains(@class, \"modal-content\") and contains(., \"#{title}\")]" \
'/ancestor::div[contains(@class, "modal-dialog")]'

dialog = find(:xpath, path, wait: timeout.to_i)
Expand Down

0 comments on commit 1b4892d

Please sign in to comment.