From 3a856b1d4e08d1a39857ff51073d5cfdd84efe50 Mon Sep 17 00:00:00 2001 From: Shriyanshagro Date: Sun, 10 Jun 2018 18:18:37 +0530 Subject: [PATCH] updated tests with related wordsmithing --- .../ifttt/tests/robot/test_controlpanel.robot | 26 +++++++++---------- .../ifttt/tests/test_controlpanel.py | 2 +- 2 files changed, 14 insertions(+), 14 deletions(-) diff --git a/src/collective/ifttt/tests/robot/test_controlpanel.robot b/src/collective/ifttt/tests/robot/test_controlpanel.robot index 6e0c424..b58fa2a 100644 --- a/src/collective/ifttt/tests/robot/test_controlpanel.robot +++ b/src/collective/ifttt/tests/robot/test_controlpanel.robot @@ -41,20 +41,20 @@ ${SCREENSHOTS} false *** Test Cases *** -Scenario: As a site administrator I can see IFTTT settings configlet +Scenario: As a site administrator I can see IFTTT Settings configlet Given I'm logged in as a Site Administrator When I open Site Setup - Then I can see IFTTT settings configlet + Then I can see IFTTT Settings configlet -Scenario: As a site administrator I can open IFTTT settings form +Scenario: As a site administrator I can open IFTTT Settings form Given I'm logged in as a Site Administrator And I'm at Site Setup - When I click IFTTT settings configlet - Then I can see IFTTT settings form + When I click IFTTT Settings configlet + Then I can see IFTTT Settings form Scenario: As a site administrator I can set IFTTT secret Given I'm logged in as a Site Administrator - And I'm at IFTTT settings form + And I'm at IFTTT Settings form When I enter IFTTT secret And I press Save Then I see confirmation on success @@ -72,9 +72,9 @@ I'm at Site Setup Page should contain Site Setup Page should contain Configuration area for Plone -I'm at IFTTT settings form +I'm at IFTTT Settings form Goto ${PLONE_URL}/@@collectiveifttt-controlpanel - Page should contain Ifttt Settings + Page should contain IFTTT Settings # --- WHEN ------------------------------------------------------------------- @@ -84,9 +84,9 @@ I open Site Setup Page should contain Site Setup Page should contain Configuration area for Plone -I click IFTTT settings configlet +I click IFTTT Settings configlet Page should contain Add-on Configuration - Page should contain Ifttt Settings + Page should contain IFTTT Settings Page should contain link css=a[href$="@@collectiveifttt-controlpanel"] Click link css=a[href$="@@collectiveifttt-controlpanel"] @@ -109,12 +109,12 @@ I press Save # --- THEN ------------------------------------------------------------------- -I can see IFTTT settings configlet +I can see IFTTT Settings configlet Page should contain Add-on Configuration - Page should contain Ifttt Settings + Page should contain IFTTT Settings Page should contain link css=a[href$="@@collectiveifttt-controlpanel"] -I can see IFTTT settings form +I can see IFTTT Settings form Page should contain element ... css=body.template-collectiveifttt-controlpanel #content #form Element should be visible diff --git a/src/collective/ifttt/tests/test_controlpanel.py b/src/collective/ifttt/tests/test_controlpanel.py index f9de629..8016cd7 100644 --- a/src/collective/ifttt/tests/test_controlpanel.py +++ b/src/collective/ifttt/tests/test_controlpanel.py @@ -23,4 +23,4 @@ def setUp(self): def test_controlpanel(self): controlpanel_view = self.view() - self.assertIn('Register Ifttt"s secret key', controlpanel_view) + self.assertIn('Register an IFTTT secret key', controlpanel_view)