inbox.feature 3.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192
  1. Feature: Inbox
  2. A user should be able to send and receive messages.
  3. Background:
  4. Scenario: Send a new message
  5. Given I am a platform administrator
  6. And I am on "main/messages/inbox.php"
  7. When I press "Compose message"
  8. Then I should see "Send to"
  9. When I fill in the following:
  10. | Send to | acostea |
  11. And I press "Andrea Costea (acostea)"
  12. Then I fill in the following:
  13. | Subject | Behat test message subject |
  14. | Message | Behat test message content |
  15. And I press "Send message"
  16. And wait for the page to be loaded
  17. Then I should see "The message has been sent to"
  18. Scenario: Verify message is in outbox
  19. Given I am a platform administrator
  20. And I am on "main/messages/inbox.php"
  21. When I press "Outbox"
  22. Then I should see "Messages / Outbox"
  23. And I should see "Behat test message subject"
  24. Scenario: Delete message
  25. Given I am a platform administrator
  26. And I am on "main/messages/outbox.php"
  27. Then I should see "Messages / Outbox"
  28. And I should see "Behat test message subject"
  29. When I press "Behat test message subject"
  30. Then I should see "Behat test message content"
  31. And I should see "Delete message"
  32. When I press "Delete message"
  33. And wait for the page to be loaded
  34. Then I should see "The selected messages have been deleted"
  35. #Scenario to be added/completed/verified/
  36. # scenario : delete multiple messages
  37. # Given I am a platform administrator
  38. # And I am on "main/messages/outbox.php"
  39. # Then I should see "Messages / Outbox"
  40. # When I check multiple checkbox
  41. # And I press the arrow next to Detail
  42. # And I press Delete Selected messages
  43. # Then I should see "The selected messages have been deleted"
  44. Scenario: Read a message and come back to inbox
  45. Given I am a student
  46. And I am on "main/messages/inbox.php"
  47. Then I should see "Behat test message subject"
  48. When I press "Behat test message subject"
  49. And wait for the page to be loaded
  50. Then I should see "Behat test message content"
  51. And I should see "Inbox"
  52. When I press "Inbox"
  53. And wait for the page to be loaded
  54. Then I should see "Messages / Inbox"
  55. And I should see "Behat test message subject"
  56. Scenario: Reply to a message
  57. Given I am a student
  58. And I am on "main/messages/inbox.php"
  59. Then I should see "Behat test message subject"
  60. When I press "Behat test message subject"
  61. And wait for the page to be loaded
  62. Then I should see "Behat test message content"
  63. When I press "Reply to this message"
  64. And wait for the page to be loaded
  65. Then I should see "Send to"
  66. And I should see "RE: Behat test message subject"
  67. When I press "Send message"
  68. And wait for the page to be loaded
  69. Then I should see "The message has been sent to"
  70. #Scenario to be added/completed/verified/
  71. # Scenario: Forward a message
  72. # Given I am a student
  73. # And I am on "main/messages/inbox.php"
  74. # Then I should see "Behat test message subject"
  75. # When I press "Forward message" on the line of "Behat test message subject"
  76. # And wait for the page to be loaded
  77. # Then I should see "Send to"
  78. # And I should see "[Fwd: Behat test message subject]"
  79. #Scenario to be added/completed/verified/
  80. # scenario : delete a message using the trash icon directly on the Inbox page