Skip to content

Commit

Permalink
Fix for CI Link test
Browse files Browse the repository at this point in the history
  • Loading branch information
protitude committed Jan 30, 2024
1 parent 61fa637 commit 1f81b8b
Show file tree
Hide file tree
Showing 6 changed files with 14 additions and 15 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ Feature: test CI Link form
And I should see "Link Title"
And I should see "Link URL"
And I should see "Add"
When I fill in "title" with "TEST"
When I fill in "title" with "Test CI Link Title"
When I select "learning" from "category"
When I check "Approved"
# login tag
Expand All @@ -31,7 +31,7 @@ Feature: test CI Link form
When I fill in "Link Title" with "Test"
When I fill in "Link URL" with "http://example.com"
When I press "Submit"
Then I should see "TEST"
Then I should see "Test CI Link Title"
And I should see "Submission information"
And I should see "View"
And I should see "Edit"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,15 +23,15 @@ Resource with Link Title and Link URL (must include https).
And I should see "Link Title"
And I should see "Link URL"
And I should see "Add"
When I fill in "title" with "TEST"
When I fill in "title" with "Test CI Link Title"
When I select "learning" from "category"
When I check "edit-tags-682"
When I check "Beginner"
When I fill in "Description" with "Test"
When I fill in "Link Title" with "Test"
When I fill in "Link URL" with "http://example.com"
When I press "Submit"
Then I should see "TEST"
Then I should see "Test CI Link Title"
And I should see "Submission information"
And I should see "View"
And I should see "Edit"
Expand Down
4 changes: 2 additions & 2 deletions tests/behat/features/templates/ci-links/ci-links-auth.feature
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,9 @@ descriptions, categories, tags (first 3 linked), skill levels, and affinity grou
When I fill in "edit-search--2" with "NotAResource"
And I wait 4 seconds
Then I should see "There are no CI Links at this time"
When I fill in "edit-search--2" with "test"
When I fill in "edit-search--2" with "Test CI Link Title"
And I wait 4 seconds
Then I should see "test"
Then I should see "Test CI Link Title"
When I click "Card View"
Then I should see "test-login-resource"
Then I should see "Learning"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@ with links redirecting to their respective addresses.
Given I am logged in as a user with the "authenticated" role
When I go to "/resources"
And I wait 2 seconds
Then I should see "Test"
When I click "TEST"
Then I should see "TEST"
Then I should see "Test CI Link Title"
When I click "Test CI Link Title"
Then I should see "Test CI Link Title"
Then I should see "login"
Then I should see an image with alt text "Beginner"
Then I should see "Test"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,14 +1,13 @@
@templates
@api
@javascript

Feature: test ci-link submission page as an administrator user
In order to test the ci-links submission page as an administrator user

Scenario: Administrator user Test ci links submission page
Given I am logged in as a user with the "administrator" role
When I go to "/admin/structure/webform/manage/resource/results/submissions"
Then I should see "test"
Then I should see "Test CI Link Title 2"
Then I should see "#"
Then I should see "Title"
Then I should see "Approved"
Expand All @@ -18,11 +17,11 @@ Feature: test ci-link submission page as an administrator user
Then I should see "Changed"
Then I should see "Link to CI link"
Then I should see "Operations"
When I click "test"
When I click "Test CI Link Title 2"
When I click "Edit"
When I check "Approved"
When I wait 3 seconds
#op is the Save button
When I press "op"
When I press "edit-submit"
And I wait 5 seconds
Then I should see "Submission updated in CI Link."
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,9 @@ results are shown in a table with columns for "Votes", "CI Links Title", "Catego
Then I should be on "/user/login?destination=/form/resource"

When I go to "/ci-links"
When I fill in "edit-search--2" with "test"
When I fill in "edit-search--2" with "Test CI Link Title"
Then I should see "These CI links have been crowd-sourced from the ConnectCI"
Then I should see "test"
Then I should see "Test CI Link Title"
Then I should see "Title"
Then I should see "Description"
Then I should see "Category"
Expand Down

0 comments on commit 1f81b8b

Please sign in to comment.