[opencourrier-Commits] r717 - trunk/tests

5 views
Skip to first unread message

sof...@adullact.net

unread,
Jan 11, 2016, 7:15:35 AM1/11/16
to openmairie-...@googlegroups.com
Author: softime
Date: 2016-01-11 13:15:31 +0100 (Mon, 11 Jan 2016)
New Revision: 717

Modified:
trunk/tests/40_options.txt
Log:
* Correction des tests en r?\195?\169cup?\195?\169rant l'ann?\195?\169e courante.

Modified: trunk/tests/40_options.txt
===================================================================
--- trunk/tests/40_options.txt 2015-10-15 13:16:17 UTC (rev 716)
+++ trunk/tests/40_options.txt 2016-01-11 12:15:31 UTC (rev 717)
@@ -302,6 +302,9 @@
[Documentation] Permet de filtrer la recherche des courrier et des tâches
... par srervice.

+ # On récupère l'année courante
+ ${year} = Get Time return year
+
# On se connecte en tant qu'utilisateur
Open Browser And Login superutil superutil
# On ouvre le menu de recherche des courriers
@@ -318,7 +321,7 @@
Total Results Should Be Equal 1
# On vérifie les courriers liés
Go To Submenu In Menu courrier recherche_courrier
- Click On Link 2015-4
+ Click On Link ${year}-4
Click On Edit Button
Click Element css=#activator span.add-16
Sleep 1
@@ -327,13 +330,13 @@
${length} = Get Length ${list}
${length} = Convert to String ${length}
Should Be Equal ${length} 25
- Click Button css=#recherchecourrier input#recherchecourrierlie
+ Click Element css=div#recherchecourrier input#recherchecourrierlie
Sleep 1
Page Should Not Contain Errors
Element Should Contain css=#linkMailForm 2014-3
- Element Should Contain css=#linkMailForm 2015-5
- Element Should Contain css=#linkMailForm 2015-6
- Element Should Contain css=#linkMailForm 2015-D-2
+ Element Should Contain css=#linkMailForm ${year}-5
+ Element Should Contain css=#linkMailForm ${year}-6
+ Element Should Contain css=#linkMailForm ${year}-D-2

# On se connecte en tant qu'admin
Open Browser And Login admin admin
@@ -361,7 +364,7 @@
Total Results Should Be Equal 0
# On vérifie les courriers liés
Go To Submenu In Menu courrier recherche_courrier
- Click On Link 2015-4
+ Click On Link ${year}-4
Click On Edit Button
Click Element css=#activator span.add-16
Sleep 1
@@ -373,6 +376,6 @@
Sleep 1
Page Should Not Contain Errors
Element Should Not Contain css=#linkMailForm 2014-3
- Element Should Not Contain css=#linkMailForm 2015-5
- Element Should Not Contain css=#linkMailForm 2015-6
- Element Should Contain css=#linkMailForm 2015-D-2
+ Element Should Not Contain css=#linkMailForm ${year}-5
+ Element Should Not Contain css=#linkMailForm ${year}-6
+ Element Should Contain css=#linkMailForm ${year}-D-2

Reply all
Reply to author
Forward
0 new messages