Internal - Fix behat tests

pull/3464/head
Julio Montoya 5 years ago
parent e3eca0dac1
commit 565fc6bebf
  1. 7
      tests/behat/features/toolLink.feature
  2. 20
      tests/behat/features/toolWork.feature

@ -8,16 +8,17 @@ Feature: Link tool
Scenario: Create a link category
Given I am on "/main/link/link.php?action=addcategory&cid=1"
And wait for the page to be loaded
And wait the page to be loaded when ready
When I fill in the following:
| category_title | Category 1 |
| description | Category description |
And I fill in ckeditor field "description" with "Category description"
And I press "submitCategory"
And wait for the page to be loaded
Then I should see "Category added"
Scenario: Create a link
And I am on "/main/link/link.php?action=addlink&cid=1"
And wait the page to be loaded when ready
When I fill in the following:
| url | http://www.chamilo.org |
| title | Chamilo |
@ -38,11 +39,13 @@ Feature: Link tool
Given I am on "/main/link/link.php?cid=1"
And I follow "Delete"
And I confirm the popup
And wait very long for the page to be loaded
Then I should see "The link has been deleted"
Scenario: Delete link category
Given I am on "/main/link/link.php?cid=1"
And I follow "Delete"
And wait very long for the page to be loaded
Then I should see "The category has been deleted."

@ -2,16 +2,16 @@ Feature: Work tool
In order to use the work tool
The teachers should be able to create works
# Scenario: Create a work
# Given I am a platform administrator
# And I am on course "TEMP" homepage
# And I am on "/main/work/work.php?action=create_dir&cid=1"
# When I fill in the following:
# | new_dir | Work 1 |
# And I fill in ckeditor field "description" with "Work description"
# And I press "submit"
# And I wait for the page to be loaded
# Then I should see "Directory created"
Scenario: Create a work
Given I am a platform administrator
And I am on course "TEMP" homepage
And I am on "/main/work/work.php?action=create_dir&cid=1"
When I fill in the following:
| new_dir | Work 1 |
And I fill in ckeditor field "description" with "Work description"
And I press "submit"
And I wait for the page to be loaded
Then I should see "Directory created"
Scenario: Edit a work
Given I am a platform administrator

Loading…
Cancel
Save