From 86f7ca99fa984c1119e9fcb5bb2cc0e0e718583c Mon Sep 17 00:00:00 2001 From: Nicolas Ducoulombier Date: Mon, 18 Nov 2019 14:15:59 +0100 Subject: [PATCH] adding test for social wall: publish a post and see it on your friend wall and comment a post --- tests/behat/features/socialWall.feature | 39 +++++++++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100644 tests/behat/features/socialWall.feature diff --git a/tests/behat/features/socialWall.feature b/tests/behat/features/socialWall.feature new file mode 100644 index 0000000000..090211ac66 --- /dev/null +++ b/tests/behat/features/socialWall.feature @@ -0,0 +1,39 @@ + +Feature: Social Wall + A user should be able to send message on the social wall and the message +should be on its friend wall. + + Background: Given I am a platform administrator + And I have a friend named "fbaggins" with id "11" + + Scenario: Send a new post + Given I am a platform administrator + And I am on "main/social/home.php" + Then I should see "Social wall" + When I fill in the following: + | social_wall_new_msg_main | Behat test social wall post content | + And I press "Post" + And wait for the page to be loaded + Then I should see "Message Sent" + And I should see "Behat test social wall post content" + + Scenario: View friend's post on my wall + Given I am a platform administrator + And I have a friend named "fbaggins" with id "11" + When I am logged as "fbaggins" + And I am on "main/social/home.php" + Then I should see "Behat test social wall post content" + + Scenario: Comment friend's post on my wall + Given I am a platform administrator + And I have a friend named "fbaggins" with id "11" + When I am logged as "fbaggins" + And I am on "main/social/home.php" + Then I should see "Behat test social wall post content" + When I fill in the following: + | comment | Behat test comment on social wall post | + And I press "Post" + And wait for the page to be loaded + Then I should see "Behat test comment on social wall post depuis moins +d'une minute" +