From 590f9adc7b9c0626a3f56747261bb89df853631c Mon Sep 17 00:00:00 2001 From: Jean-Christophe Engel Date: Sat, 1 Jun 2024 08:41:50 +0200 Subject: [PATCH] =?UTF-8?q?3-06a=20garantir=20unicit=C3=A9=20du=20responsa?= =?UTF-8?q?ble=20;=203-07=20suppression=20ligne=20inutile?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- paheko.side | 83 +++++++++++++++++++++++++++++++++++------------------ 1 file changed, 55 insertions(+), 28 deletions(-) diff --git a/paheko.side b/paheko.side index 23dbf60..0809bf0 100644 --- a/paheko.side +++ b/paheko.side @@ -2960,6 +2960,61 @@ "target": "1280x1020", "targets": [], "value": "" + }, { + "id": "2e55f3c0-92f8-4a63-809d-09a50020293c", + "comment": "Créer un responsable", + "command": "", + "target": "", + "targets": [], + "value": "" + }, { + "id": "b7ea4b6b-3795-4b4c-bb31-9861eb8b5713", + "comment": "Membres/Ajouter", + "command": "click", + "target": "xpath=//a[contains(@href, '/admin/users/new.php')]", + "targets": [ + ["linkText=Ajouter", "linkText"], + ["css=li:nth-child(2) li:nth-child(1) > a", "css:finder"], + ["xpath=//a[contains(text(),'Ajouter')]", "xpath:link"], + ["xpath=//a[contains(@href, '/admin/users/new.php')]", "xpath:href"], + ["xpath=//li/a", "xpath:position"], + ["xpath=//a[contains(.,'Ajouter')]", "xpath:innerText"] + ], + "value": "" + }, { + "id": "0211dfaa-ccb5-4536-b195-8dc03b5eefee", + "comment": "Mémoriser numéro du responsable", + "command": "storeValue", + "target": "id=f_numero", + "targets": [], + "value": "numero_responsable" + }, { + "id": "bd826a05-76cb-4b8d-800a-13e7eca77baf", + "comment": "Nom du responsable", + "command": "executeScript", + "target": "const upper = (str) => { return str.charAt(0).toUpperCase() + str.slice(1);} ; const chaine = (length) => { let chars = 'aàbcdeéèfghijklmnoôpqrstuùvwxyz'; let str = ''; for (let i = 0; i < length; i++) { str += chars.charAt(Math.floor(Math.random() * chars.length)); } let debut = upper(str.slice(0, length/2)); let fin = upper(str.slice(length/2)); return debut + ' ' + fin;};return chaine(12)", + "targets": [], + "value": "nom_responsable" + }, { + "id": "3e994625-eb50-484e-b032-364afba627f3", + "comment": "", + "command": "type", + "target": "id=f_nom", + "targets": [], + "value": "${nom_responsable}" + }, { + "id": "26b34df7-3a41-4b06-8c4f-d44332771388", + "comment": "Enregistrer", + "command": "click", + "target": "name=save", + "targets": [ + ["name=save", "name"], + ["css=.main", "css:finder"], + ["xpath=//button[@name='save']", "xpath:attributes"], + ["xpath=//p/button", "xpath:position"], + ["xpath=//button[contains(.,'Créer ce membre')]", "xpath:innerText"] + ], + "value": "" }, { "id": "e4abd389-b84d-4765-ac92-e6b81f98aa9f", "comment": "Catégorie du membre", @@ -2974,20 +3029,6 @@ "target": "const upper = (str) => { return str.charAt(0).toUpperCase() + str.slice(1);} ; const chaine = (length) => { let chars = 'aàbcdeéèfghijklmnoôpqrstuùvwxyz'; let str = ''; for (let i = 0; i < length; i++) { str += chars.charAt(Math.floor(Math.random() * chars.length)); } let debut = upper(str.slice(0, length/2)); let fin = upper(str.slice(length/2)); return debut + ' ' + fin;};return chaine(12)", "targets": [], "value": "nom" - }, { - "id": "27686919-327a-4850-9bf5-b846a2872f02", - "comment": "Nom du responsable", - "command": "store", - "target": "Lambert Paul", - "targets": [], - "value": "nom_responsable" - }, { - "id": "e211cc9b-6075-420b-b6e8-8ec5b01b52a0", - "comment": "Numéro du responsable", - "command": "store", - "target": "1", - "targets": [], - "value": "numero_responsable" }, { "id": "9a06fd19-ed46-460b-9a90-69f38435f6e9", "comment": "Adresse E-Mail", @@ -3540,20 +3581,6 @@ ["xpath=//button[contains(.,'Créer ce membre')]", "xpath:innerText"] ], "value": "" - }, { - "id": "2f94bd66-13fc-4a51-9d2b-92a73a8ff064", - "comment": "Membres/Ajouter", - "command": "click", - "target": "xpath=//a[contains(@href, '/admin/users/new.php')]", - "targets": [ - ["linkText=Ajouter", "linkText"], - ["css=li:nth-child(2) li:nth-child(1) > a", "css:finder"], - ["xpath=//a[contains(text(),'Ajouter')]", "xpath:link"], - ["xpath=//a[contains(@href, '/admin/users/new.php')]", "xpath:href"], - ["xpath=//li/a", "xpath:position"], - ["xpath=//a[contains(.,'Ajouter')]", "xpath:innerText"] - ], - "value": "" }, { "id": "9c4d5fc5-0925-434d-928f-8696ad7e0f6e", "comment": "Catégorie du membre",