-
-
Notifications
You must be signed in to change notification settings - Fork 43
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #394 from plone/port-robot-test
Port robot test
- Loading branch information
Showing
2 changed files
with
32 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
port robot tests [1letter] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,35 +1,46 @@ | ||
*** Settings ***************************************************************** | ||
*** Settings *** | ||
|
||
Resource plone/app/robotframework/keywords.robot | ||
Resource plone/app/robotframework/saucelabs.robot | ||
Resource plone/app/robotframework/selenium.robot | ||
Resource plone/app/robotframework/browser.robot | ||
|
||
Library Remote ${PLONE_URL}/RobotRemote | ||
Library Remote ${PLONE_URL}/RobotRemote | ||
|
||
Test Setup Run Keywords Plone test setup | ||
Test Teardown Run keywords Plone test teardown | ||
Test Setup Run Keywords Plone test setup | ||
Test Teardown Run keywords Plone test teardown | ||
|
||
|
||
*** Test cases *************************************************************** | ||
*** Test cases *** | ||
|
||
Scenario: type title is normalized | ||
Given a logged in manager | ||
When adding a new content type | ||
and type title is Boîte à outils | ||
Then type id should become boite_a_outils | ||
Given a site owner | ||
When adding a new content type | ||
and type title is Boîte à outils | ||
Then type id should become boite_a_outils | ||
|
||
|
||
*** Keywords ***************************************************************** | ||
*** Keywords *** | ||
|
||
# Given | ||
|
||
a site owner | ||
|
||
Enable autologin as Manager | ||
|
||
# When | ||
|
||
adding a new content type | ||
Go to ${PLONE_URL}/@@dexterity-types | ||
Click Overlay Button Add New Content Type… | ||
|
||
Go to ${PLONE_URL}/@@dexterity-types | ||
Click "Add New Content Type…" | ||
|
||
# Then | ||
|
||
type title is | ||
[Arguments] ${title} | ||
Input text form-widgets-title ${title} | ||
[Arguments] ${title} | ||
|
||
Fill text //input[@id="form-widgets-title"] ${title} | ||
|
||
type id should become | ||
[Arguments] ${id} | ||
Set Focus To Element form-widgets-id | ||
Wait until keyword succeeds 10 1 Textfield Value Should Be form-widgets-id ${id} | ||
[Arguments] ${id} | ||
|
||
Focus id=form-widgets-id | ||
Get text //input[@id="form-widgets-id"] should be ${id} |