From d8c797feff4daed839ebdf05f9a072ffbf08bbca Mon Sep 17 00:00:00 2001 From: Ivo Valchev Date: Tue, 22 Oct 2019 12:20:21 +0200 Subject: [PATCH] setcontent.feature test --- tests/behat/setcontent.feature | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 tests/behat/setcontent.feature diff --git a/tests/behat/setcontent.feature b/tests/behat/setcontent.feature new file mode 100644 index 00000000..ac47f551 --- /dev/null +++ b/tests/behat/setcontent.feature @@ -0,0 +1,15 @@ +Feature: Setcontent + + @javascript + Scenario: As a user I want to see the results of Setcontent + When I am on "/page/setcontent-test-page" + Then I should see "yes" in the "#results-one" element + And I should see "yes" in the "#results-two" element + And I should see "yes" in the "#results-four" element + And I should see "yes" in the "#results-five" element + And I should see "yes" in the "#results-six" element + + Then I should see "2" in the "#three .s1" element + And I should see "published" in the "#three .s2" element + + And I should not see "[no]" in the "body" element \ No newline at end of file