toolLink.feature 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. Feature: Link tool
  2. In order to use the link tool
  3. The teachers should be able to create link categories and links
  4. Background:
  5. Given I am a platform administrator
  6. And I am on course "TEMP" homepage
  7. Scenario: Create a link category
  8. Given I am on "/main/link/link.php?action=addcategory&cidReq=TEMP"
  9. When I fill in the following:
  10. | category_title | Category 1 |
  11. | description | Category description |
  12. And I press "submitCategory"
  13. Then I should see "Category added"
  14. Scenario: Create a link
  15. Given I am on "/main/link/link.php?action=addlink&cidReq=TEMP"
  16. When I fill in the following:
  17. | url | http://www.chamilo.org |
  18. | title | Chamilo |
  19. And I press "submitLink"
  20. Then I should see "The link has been added"
  21. # Scenario: Create a link with category
  22. # Given I am on "/main/link/link.php?action=addlink&cidReq=TEMP"
  23. # When I fill in the following:
  24. # | url | http://www.chamilo.org |
  25. # | title | Chamilo in category 1 |
  26. # And I select "Category 1" from "category_id"
  27. # And I press "submitLink"
  28. # Then I should see "The link has been added"
  29. Scenario: Delete link
  30. Given I am on "/main/link/link.php?cidReq=TEMP"
  31. And I follow "Delete"
  32. And I confirm the popup
  33. Then I should see "The link has been deleted"
  34. Scenario: Delete link category
  35. Given I am on "/main/link/link.php?cidReq=TEMP"
  36. And I follow "Delete"
  37. Then I should see "The category has been deleted."