From 2a6fffe42e33ce4e84e1ed00eba868922d0303f3 Mon Sep 17 00:00:00 2001 From: Jean-Christophe Engel Date: Mon, 16 Sep 2024 15:09:30 +0200 Subject: [PATCH] =?UTF-8?q?ajout=2012-14=20email=20cach=C3=A9=20fiche=20me?= =?UTF-8?q?mbre?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- membres.side | 455 ++++++++++++++++++++++++++++++++++++++++++++++++++- 1 file changed, 453 insertions(+), 2 deletions(-) diff --git a/membres.side b/membres.side index 30c424b..ee75a08 100644 --- a/membres.side +++ b/membres.side @@ -46126,6 +46126,13 @@ "target": "xpath=//dt[contains(.,'Adresse E-Mail')]/following-sibling::dd/a", "targets": [], "value": "${email}" + }, { + "id": "1f0735e6-1121-495f-a935-22f39afb762f", + "comment": "modifier email", + "command": "", + "target": "", + "targets": [], + "value": "" }, { "id": "93fd0929-bd09-4e79-b690-ec7a14ada4ef", "comment": "", @@ -46144,7 +46151,7 @@ "id": "674a6353-0531-4144-bc74-1b3d94a19aef", "comment": "", "command": "click", - "target": "xpath=//a[contains(@href, \"/admin/me\")]", + "target": "xpath=//a[@href=\"/admin/me/\"]", "targets": [], "value": "" }, { @@ -46315,6 +46322,450 @@ "targets": [], "value": "" }] + }, { + "id": "fb565ffb-1563-4c63-82a7-a9b31fa04f8f", + "name": "12-14 email non visible fiche membre", + "commands": [{ + "id": "ba133d57-5e42-4ca0-b2b2-d0af8be2a1df", + "comment": "", + "command": "open", + "target": "http://test.paheko.localhost/admin/login.php", + "targets": [], + "value": "" + }, { + "id": "f944ef4e-967a-445a-be6c-0b86b3154415", + "comment": "", + "command": "setWindowSize", + "target": "1280x1020", + "targets": [], + "value": "" + }, { + "id": "3156b7d0-2c0e-47f4-903e-91bf5e536775", + "comment": "Vérifier si déjà connecté", + "command": "storeXpathCount", + "target": "xpath=//button[@name='login']", + "targets": [], + "value": "connecte" + }, { + "id": "f6cf2e5c-857f-4171-acc1-156f23172ef3", + "comment": "", + "command": "if", + "target": "${connecte} > 0", + "targets": [], + "value": "" + }, { + "id": "51ec0f25-23ea-48a3-afd8-41fcef6506cc", + "comment": "identifiant", + "command": "type", + "target": "id=f_id", + "targets": [], + "value": "jckix@free.fr" + }, { + "id": "01c5c2be-5bc7-4f0b-bc37-149fbc793939", + "comment": "mot de passe", + "command": "type", + "target": "id=f_password", + "targets": [], + "value": "interpeller noircir colis allumer" + }, { + "id": "a91a25ac-fd54-47e0-a36a-540cc24b84fc", + "comment": "Connexion", + "command": "click", + "target": "name=login", + "targets": [], + "value": "" + }, { + "id": "3256443d-75aa-4b9a-a7c8-1fbcdede6161", + "comment": "", + "command": "end", + "target": "", + "targets": [], + "value": "" + }, { + "id": "b2cb5e7d-352b-40c4-a304-b23f28f4b66e", + "comment": "", + "command": "click", + "target": "xpath=//a[contains(@href, \"/admin/config/\")]", + "targets": [ + ["css=li:nth-child(6) b", "css:finder"], + ["xpath=//li[6]/h3/a/b", "xpath:position"], + ["xpath=//b[contains(.,'Configuration')]", "xpath:innerText"] + ], + "value": "" + }, { + "id": "09aa2334-a66b-462f-9297-f554fb3c7bb8", + "comment": "", + "command": "click", + "target": "xpath=//a[contains(@href, \"/admin/config/users\")]", + "targets": [ + ["css=ul:nth-child(1) > li:nth-child(3) > a", "css:finder"], + ["xpath=//a[contains(text(),'Membres')]", "xpath:link"], + ["xpath=//a[@href='http://test.paheko.localhost/admin/config/users/']", "xpath:href"], + ["xpath=//nav/ul/li[3]/a", "xpath:position"] + ], + "value": "" + }, { + "id": "e51880e1-4278-4d98-b330-5b7bc4a20cd0", + "comment": "", + "command": "click", + "target": "xpath=//a[contains(@href, \"/admin/config/fields\")]", + "targets": [ + ["css=ul:nth-child(1) > li:nth-child(3) > a", "css:finder"], + ["xpath=//a[contains(text(),'Membres')]", "xpath:link"], + ["xpath=//a[@href='http://test.paheko.localhost/admin/config/users/']", "xpath:href"], + ["xpath=//nav/ul/li[3]/a", "xpath:position"] + ], + "value": "" + }, { + "id": "97a4c8a6-9d61-4fc8-9b9d-689d3351745c", + "comment": "rendre email non visible fiche membre", + "command": "", + "target": "", + "targets": [], + "value": "" + }, { + "id": "5665b8af-0d35-425a-b9a2-92344e20ac72", + "comment": "", + "command": "store", + "target": "Adresse E-Mail", + "targets": [], + "value": "libelle_champ" + }, { + "id": "834618e1-a425-4806-a3eb-123c1c136591", + "comment": "", + "command": "click", + "target": "xpath=//th[text()=\"${libelle_champ}\"]/following-sibling::td/a[contains(@href, \"edit.php\")]", + "targets": [ + ["css=tr:nth-child(1) > .actions span", "css:finder"], + ["xpath=//td[6]/a/span", "xpath:position"], + ["xpath=//span[contains(.,'Modifier')]", "xpath:innerText"] + ], + "value": "" + }, { + "id": "b3067787-5591-40b1-9b5d-1697ff65e2c3", + "comment": "", + "command": "selectFrame", + "target": "index=0", + "targets": [ + ["index=0"] + ], + "value": "" + }, { + "id": "abf44a0f-b16a-4f29-968c-884a4405ab18", + "comment": "", + "command": "storeValue", + "target": "id=f_name", + "targets": [], + "value": "nom_champ" + }, { + "id": "f770d8d9-813a-469e-bb54-ec8648b8913b", + "comment": "", + "command": "executeScript", + "target": "return 'f_' + ${nom_champ}", + "targets": [], + "value": "id_champ" + }, { + "id": "9f92d0d5-2bef-42ae-a692-522a5c15726a", + "comment": "", + "command": "check", + "target": "id=f_user_access_level_0", + "targets": [], + "value": "" + }, { + "id": "3d706b77-5740-480d-aa72-c0072dc6178d", + "comment": "", + "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(.,'Enregistrer')]", "xpath:innerText"] + ], + "value": "" + }, { + "id": "4eba9229-8340-4266-9718-7307f22af22e", + "comment": "", + "command": "selectFrame", + "target": "relative=parent", + "targets": [ + ["relative=parent"] + ], + "value": "" + }, { + "id": "c2e378ae-3c27-442d-b76e-b3b994129718", + "comment": "", + "command": "assertElementPresent", + "target": "xpath=//th[text()=\"${libelle_champ}\"]/following-sibling::td[3]/span[@title=\"Caché\"]", + "targets": [], + "value": "" + }, { + "id": "b218cce3-700e-45a6-9f6b-739fe785caf5", + "comment": "créer un membre", + "command": "", + "target": "", + "targets": [], + "value": "" + }, { + "id": "8d0ec297-a7bd-408d-880e-7a914b4dfd32", + "comment": "", + "command": "click", + "target": "linkText=Ajouter", + "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": "3c059cda-1975-459b-90f1-70a375d9b99b", + "comment": "", + "command": "storeValue", + "target": "id=f_numero", + "targets": [], + "value": "numero" + }, { + "id": "a2df3b8c-6563-414a-b4dc-505c21434c30", + "comment": "", + "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" + }, { + "id": "e7e7cf2d-a10a-49ef-bcd3-5c39691fe2fc", + "comment": "", + "command": "type", + "target": "id=f_nom", + "targets": [], + "value": "${nom}" + }, { + "id": "0a251ef2-32d3-4e59-85ae-48898764f860", + "comment": "", + "command": "executeScript", + "target": "const chaine = (length) => { let chars = 'abcdefghijklmnopqrstuvwxyz0123456789'; let str = ''; for (let i = 0; i < length; i++) { str += chars.charAt(Math.floor(Math.random() * chars.length)); } return str; }; return chaine(8) + \"@\" + chaine(5) + \".fr\"", + "targets": [], + "value": "email" + }, { + "id": "fc7c99c5-47c4-40c9-894e-85c72704460e", + "comment": "", + "command": "type", + "target": "id=f_email", + "targets": [], + "value": "${email}" + }, { + "id": "89425489-7761-40eb-bdf9-db0f083a338a", + "comment": "", + "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": "a940c08e-c7b2-43b2-afbe-4eecfca48acb", + "comment": "vérifier infos membre", + "command": "", + "target": "", + "targets": [], + "value": "" + }, { + "id": "0b6038cc-8854-4523-a951-d005c9aa4fc0", + "comment": "", + "command": "assertText", + "target": "xpath=//dt[contains(.,'Numéro de membre')]/following-sibling::dd", + "targets": [], + "value": "${numero}" + }, { + "id": "94a0f9a5-856c-4227-aa6d-c065eadcfc72", + "comment": "", + "command": "assertText", + "target": "xpath=//dt[contains(.,'Nom & prénom')]/following-sibling::dd", + "targets": [], + "value": "${nom}" + }, { + "id": "09d8e3d0-fd33-4818-95e3-92e43c48e9f0", + "comment": "", + "command": "assertText", + "target": "xpath=//dt[contains(.,'Adresse E-Mail')]/following-sibling::dd/a", + "targets": [], + "value": "${email}" + }, { + "id": "3614b091-28aa-4913-a20c-93093dad8ca4", + "comment": "vérifier absence email dans fiche membre", + "command": "", + "target": "", + "targets": [], + "value": "" + }, { + "id": "5d98573d-c309-42d4-9c54-1335ef3de250", + "comment": "", + "command": "chooseOkOnNextConfirmation", + "target": "", + "targets": [], + "value": "" + }, { + "id": "57126e72-d1ee-4bc7-9098-c628818a77c4", + "comment": "", + "command": "click", + "target": "name=login_as", + "targets": [], + "value": "" + }, { + "id": "c955ad83-c313-4584-b01c-a52c01567edb", + "comment": "", + "command": "click", + "target": "xpath=//a[contains(@href, \"/admin/me\")]", + "targets": [], + "value": "" + }, { + "id": "5c86959c-9c87-47b0-a22c-63485aa41fa3", + "comment": "", + "command": "click", + "target": "xpath=//a[contains(@href, \"/admin/me/edit.php\")]", + "targets": [], + "value": "" + }, { + "id": "c91b098a-f2c5-4817-ad88-63e67596ea75", + "comment": "", + "command": "assertElementNotPresent", + "target": "xpath=//dt[text()=\"${libelle_champ}\"]", + "targets": [], + "value": "" + }, { + "id": "1ffb9891-10dc-4c00-a098-6e93b9587af0", + "comment": "remettre à l'état initial", + "command": "", + "target": "", + "targets": [], + "value": "" + }, { + "id": "db88b150-1107-42bf-942a-3b5528aee9fc", + "comment": "", + "command": "click", + "target": "xpath=//a[contains(@href, '/admin/logout.php')]", + "targets": [], + "value": "" + }, { + "id": "bd585157-5eae-40ad-b2c6-3e317475eaf1", + "comment": "", + "command": "type", + "target": "id=f_id", + "targets": [], + "value": "jckix@free.fr" + }, { + "id": "58bf36ec-cc08-467d-a9ca-6aba2521c7d6", + "comment": "", + "command": "type", + "target": "id=f_password", + "targets": [], + "value": "interpeller noircir colis allumer" + }, { + "id": "c4bcdfac-2b10-44d1-aa79-22b1c9dbafce", + "comment": "", + "command": "click", + "target": "name=login", + "targets": [], + "value": "" + }, { + "id": "db1a14b3-e3d8-49a0-b4a9-eb010c4c3de1", + "comment": "", + "command": "click", + "target": "xpath=//a[contains(@href, \"/admin/config/\")]", + "targets": [ + ["css=li:nth-child(6) b", "css:finder"], + ["xpath=//li[6]/h3/a/b", "xpath:position"], + ["xpath=//b[contains(.,'Configuration')]", "xpath:innerText"] + ], + "value": "" + }, { + "id": "8444f7cb-46c1-4974-ab15-20e75a042c5e", + "comment": "", + "command": "click", + "target": "xpath=//a[contains(@href, \"/admin/config/users\")]", + "targets": [ + ["css=ul:nth-child(1) > li:nth-child(3) > a", "css:finder"], + ["xpath=//a[contains(text(),'Membres')]", "xpath:link"], + ["xpath=//a[@href='http://test.paheko.localhost/admin/config/users/']", "xpath:href"], + ["xpath=//nav/ul/li[3]/a", "xpath:position"] + ], + "value": "" + }, { + "id": "f5859040-d797-4cd3-9b0f-dc465f351f7d", + "comment": "", + "command": "click", + "target": "xpath=//a[contains(@href, \"/admin/config/fields\")]", + "targets": [ + ["css=ul:nth-child(1) > li:nth-child(3) > a", "css:finder"], + ["xpath=//a[contains(text(),'Membres')]", "xpath:link"], + ["xpath=//a[@href='http://test.paheko.localhost/admin/config/users/']", "xpath:href"], + ["xpath=//nav/ul/li[3]/a", "xpath:position"] + ], + "value": "" + }, { + "id": "ddd8876e-3be7-4dba-96b5-db1e7e71b814", + "comment": "", + "command": "click", + "target": "xpath=//th[text()=\"${libelle_champ}\"]/following-sibling::td/a[contains(@href, \"edit.php\")]", + "targets": [ + ["css=tr:nth-child(1) > .actions span", "css:finder"], + ["xpath=//td[6]/a/span", "xpath:position"], + ["xpath=//span[contains(.,'Modifier')]", "xpath:innerText"] + ], + "value": "" + }, { + "id": "53f4a5d5-6599-464d-b72e-a2290cebb32b", + "comment": "", + "command": "selectFrame", + "target": "index=0", + "targets": [ + ["index=0"] + ], + "value": "" + }, { + "id": "0b89375e-6e66-4f72-83ce-f613d3f865d3", + "comment": "", + "command": "check", + "target": "id=f_user_access_level_1", + "targets": [], + "value": "" + }, { + "id": "5cc07b20-8be2-4f1b-91ce-22023fc7d3c8", + "comment": "", + "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(.,'Enregistrer')]", "xpath:innerText"] + ], + "value": "" + }, { + "id": "8a1cd04a-7d5f-450a-ba05-eee25f2b9f78", + "comment": "", + "command": "selectFrame", + "target": "relative=parent", + "targets": [ + ["relative=parent"] + ], + "value": "" + }, { + "id": "696325fc-2fc7-4348-a7a6-0c2248b8d398", + "comment": "", + "command": "assertElementPresent", + "target": "xpath=//th[text()=\"${libelle_champ}\"]/following-sibling::td[3]/span[@title=\"Visible\"]", + "targets": [], + "value": "" + }] }], "suites": [{ "id": "6bdd4e16-7197-4388-9a5f-350523eb6c98", @@ -46399,7 +46850,7 @@ "persistSession": false, "parallel": false, "timeout": 300, - "tests": ["2414b9b6-6de9-4c5d-b120-30830eba1b2f", "b8768454-ae31-4cec-a902-45218cd2cd06", "38833b4a-62c8-4f5d-9865-8f38d1ee3994", "db2765f8-b677-4b7b-ad52-c9fdfd8f8ead", "eb01441e-0b46-45c7-a58d-0aa7a47dff1e", "98cd4288-efed-412c-ae9f-ff8f97366fae", "a79ce0c0-32c8-461a-af13-a9e1a538e24d", "31a150da-a0ca-4aaf-b32b-8a057fd93a59", "2c1df50d-b2c8-4f68-92d5-8aaa5a45b4de", "8f0f0203-7b71-44eb-bb81-1fcab1183a83"] + "tests": ["2414b9b6-6de9-4c5d-b120-30830eba1b2f", "b8768454-ae31-4cec-a902-45218cd2cd06", "38833b4a-62c8-4f5d-9865-8f38d1ee3994", "db2765f8-b677-4b7b-ad52-c9fdfd8f8ead", "eb01441e-0b46-45c7-a58d-0aa7a47dff1e", "98cd4288-efed-412c-ae9f-ff8f97366fae", "a79ce0c0-32c8-461a-af13-a9e1a538e24d", "31a150da-a0ca-4aaf-b32b-8a057fd93a59", "2c1df50d-b2c8-4f68-92d5-8aaa5a45b4de", "8f0f0203-7b71-44eb-bb81-1fcab1183a83", "fb565ffb-1563-4c63-82a7-a9b31fa04f8f"] }], "urls": ["http://test.paheko.localhost/"], "plugins": []