[openads-Commits] r8524 - in branches/4.7.0_evo_redaction_libre: app/js tests tests/resources/app

0 views
Skip to first unread message

sof...@adullact.net

unread,
Jan 18, 2019, 8:27:49 AM1/18/19
to openmairi...@googlegroups.com
Author: softime
Date: 2019-01-18 14:27:43 +0100 (Fri, 18 Jan 2019)
New Revision: 8524

Modified:
branches/4.7.0_evo_redaction_libre/app/js/script.js
branches/4.7.0_evo_redaction_libre/tests/050_instruction.robot
branches/4.7.0_evo_redaction_libre/tests/resources/app/instruction.robot
Log:
* Cache certaines champs seulement form ajout de l'instruction
* Correction des tests

Modified: branches/4.7.0_evo_redaction_libre/app/js/script.js
===================================================================
--- branches/4.7.0_evo_redaction_libre/app/js/script.js 2019-01-18 11:08:52 UTC (rev 8523)
+++ branches/4.7.0_evo_redaction_libre/app/js/script.js 2019-01-18 13:27:43 UTC (rev 8524)
@@ -2553,9 +2553,12 @@
setTimeout(resize_frame_pdf, 2000);
}

- // masque par défaut les champs 'signataire' et 'type de rédaction'
- // lors de l'ajout d'un évènement d'instruction
- hide_field_signataire_and_typeredction_by_default();
+ // masque par défaut les champs 'signataire' et 'type de rédaction' sur le
+ // sous-formulaire d'ajout d'une instruction
+ if ($("div.sousform-instruction-action-0").length > 0) {
+ $('#flag_edition_integrale').parent().parent().hide();
+ $('#signataire_arrete').parent().parent().hide();
+ }

// modifie les messages de confirmations lors des clics sur les boutons du
// Portlet 'Rédaction libre' et 'Rédaction par compléments'
@@ -4128,18 +4131,7 @@
$("div #" + widget_id + " .widget-footer").hide();
}

-
/**
- * Hack rapide pour cacher les champs 'signataire' et 'type de rédaction'
- * lors de l'ajout d'un évènement d'instruction
- **/
-function hide_field_signataire_and_typeredction_by_default()
-{
- $('#flag_edition_integrale').parent().parent().hide();
- $('#signataire_arrete').parent().parent().hide();
-}
-
-/**
* Hack rapide pour modifier les messages de confirmations lors des clics
* sur les boutons du Portlet 'Rédaction libre' et 'Rédaction par compléments'
**/

Modified: branches/4.7.0_evo_redaction_libre/tests/050_instruction.robot
===================================================================
--- branches/4.7.0_evo_redaction_libre/tests/050_instruction.robot 2019-01-18 11:08:52 UTC (rev 8523)
+++ branches/4.7.0_evo_redaction_libre/tests/050_instruction.robot 2019-01-18 13:27:43 UTC (rev 8524)
@@ -2712,12 +2712,12 @@
Click On Back Button In Subform
Click On SubForm Portlet Action instruction enable-edition-integrale
Cliquer sur le bouton de la fenêtre modale Confirmer
-
+
Click On SubForm Portlet Action instruction modifier
Wait Until Element Is Visible corps_om_htmletatex_ifr
Sleep 4
Wait Until Keyword Succeeds ${TIMEOUT} ${RETRY_INTERVAL} Click Element css=#fieldset-sousform-instruction-titre legend
- Element Should Be Visible css=#titre_om_htmletat_ifr
+ Wait Until Keyword Succeeds ${TIMEOUT} ${RETRY_INTERVAL} Element Should Be Visible css=#titre_om_htmletat_ifr
Element Should Be Visible css=#corps_om_htmletatex_ifr
Element Should Be Visible css=#btn_preview
Element Should Not Be Visible css=#btn_refresh
@@ -2771,13 +2771,13 @@
#On change le mode de rédaction
Click On SubForm Portlet Action instruction enable-edition-integrale
Cliquer sur le bouton de la fenêtre modale Confirmer
-
+
Click On SubForm Portlet Action instruction modifier
Wait Until Element Is Visible corps_om_htmletatex_ifr
Sleep 4
Wait Until Keyword Succeeds ${TIMEOUT} ${RETRY_INTERVAL} Click Element css=#fieldset-sousform-instruction-titre legend

- Element Should Be Visible css=#titre_om_htmletat_ifr
+ Wait Until Keyword Succeeds ${TIMEOUT} ${RETRY_INTERVAL} Element Should Be Visible css=#titre_om_htmletat_ifr
Element Should Be Visible css=#corps_om_htmletatex_ifr

Input HTML corps_om_htmletatex Azerty123456

Modified: branches/4.7.0_evo_redaction_libre/tests/resources/app/instruction.robot
===================================================================
--- branches/4.7.0_evo_redaction_libre/tests/resources/app/instruction.robot 2019-01-18 11:08:52 UTC (rev 8523)
+++ branches/4.7.0_evo_redaction_libre/tests/resources/app/instruction.robot 2019-01-18 13:27:43 UTC (rev 8524)
@@ -137,6 +137,6 @@

# attend que la fenêtre modale soit invisible
Wait Until Element Is Not Visible xpath=//div[contains(@class, 'ui-dialog')]
-
+
# délai pour que l'action soit effectuée
- Sleep 2
+ Sleep 2.5

Reply all
Reply to author
Forward
0 new messages