From 48f9693ee1b27f94d53bc40917fc48643ee290f4 Mon Sep 17 00:00:00 2001 From: Jean-Christophe Engel Date: Mon, 14 Oct 2024 09:18:55 +0200 Subject: [PATCH] =?UTF-8?q?ajout=2014-43=20droit=20=C3=A9criture=20:=20mod?= =?UTF-8?q?ifier=20admin=20impossible?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- membres.side | 543 ++++++++++++++++++++++++++++++++++++++++++++++++++- 1 file changed, 542 insertions(+), 1 deletion(-) diff --git a/membres.side b/membres.side index 30a41ad..ad2dc2a 100644 --- a/membres.side +++ b/membres.side @@ -56185,6 +56185,547 @@ "targets": [], "value": "" }] + }, { + "id": "e186b063-f0d3-4a57-b58f-2ae29c4e57ab", + "name": "14-43 droit écriture : modifier admin impossible", + "commands": [{ + "id": "b89a502e-c195-4988-acce-52bfa7b7ca45", + "comment": "", + "command": "open", + "target": "http://test.paheko.localhost/admin/login.php", + "targets": [], + "value": "" + }, { + "id": "ca442b86-5f47-4e9f-ba54-4f9f8e6a6e82", + "comment": "", + "command": "setWindowSize", + "target": "1280x1020", + "targets": [], + "value": "" + }, { + "id": "2bacc2d2-be77-442a-a3e5-a2e80eec78e3", + "comment": "Vérifier si déjà connecté", + "command": "storeXpathCount", + "target": "xpath=//button[@name='login']", + "targets": [], + "value": "connecte" + }, { + "id": "2ed480e7-c2e6-4dcc-9e10-538999d76839", + "comment": "", + "command": "if", + "target": "${connecte} > 0", + "targets": [], + "value": "" + }, { + "id": "9252e5d6-8b95-4b98-b6ca-b15d876a583d", + "comment": "", + "command": "type", + "target": "id=f_id", + "targets": [ + ["id=f_id", "id"], + ["name=id", "name"], + ["css=#f_id", "css:finder"], + ["xpath=//input[@id='f_id']", "xpath:attributes"], + ["xpath=//input", "xpath:position"] + ], + "value": "jckix@free.fr" + }, { + "id": "e3658dca-5d8c-4f99-b75c-cd6aeb7cd8da", + "comment": "", + "command": "type", + "target": "id=f_password", + "targets": [ + ["id=f_password", "id"], + ["name=password", "name"], + ["css=#f_password", "css:finder"], + ["xpath=//input[@id='f_password']", "xpath:attributes"], + ["xpath=//dd[2]/input", "xpath:position"] + ], + "value": "interpeller noircir colis allumer" + }, { + "id": "27647361-bc04-432c-b267-ddeca6d739a5", + "comment": "", + "command": "click", + "target": "xpath=//button[@name='login']", + "targets": [ + ["name=login", "name"], + ["css=.main", "css:finder"], + ["xpath=//button[@name='login']", "xpath:attributes"], + ["xpath=//p/button", "xpath:position"], + ["xpath=//button[contains(.,'Se connecter')]", "xpath:innerText"] + ], + "value": "" + }, { + "id": "858bfc5f-a0aa-4786-9ff5-38443d6a78cd", + "comment": "", + "command": "end", + "target": "", + "targets": [], + "value": "" + }, { + "id": "6370246e-e0c2-4671-befc-51db094cb656", + "comment": "", + "command": "store", + "target": "Membres actifs", + "targets": [], + "value": "nom_categorie" + }, { + "id": "428b23a3-8ffe-44b4-9ff6-75a5e4a07440", + "comment": "modifier la catégorie : droit écriture", + "command": "", + "target": "", + "targets": [], + "value": "" + }, { + "id": "7af6bd9c-bf28-4768-bcea-c16964f7fe0a", + "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": "2532cbba-7c76-4dbb-97c8-e362b2604ab2", + "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": "49e031fe-fe3f-4f04-8b89-0b33fbe2be19", + "comment": "", + "command": "click", + "target": "xpath=//a[contains(@href, \"/admin/config/categories\")]", + "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": "c34bdfd7-b106-4ff6-af12-68fb6d2482f7", + "comment": "", + "command": "click", + "target": "xpath=//table[@class=\"list\"]/tbody//th[text()=\"${nom_categorie}\"]/following-sibling::td/a[starts-with(@href, \"edit.php\")]", + "targets": [], + "value": "" + }, { + "id": "3f25dda9-7d0d-4a74-8295-735c31e86ba1", + "comment": "", + "command": "check", + "target": "id=f_perm_users_2", + "targets": [], + "value": "" + }, { + "id": "6a5c0d26-d45c-4004-b3c7-5404e9b59229", + "comment": "", + "command": "click", + "target": "name=save", + "targets": [], + "value": "" + }, { + "id": "17214637-b387-4f8f-8b78-0be4a7b14eae", + "comment": "Créer un membre dans la catégorie", + "command": "", + "target": "", + "targets": [], + "value": "" + }, { + "id": "6247122a-a42e-40cd-8e79-65d385bfb927", + "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": "nom1" + }, { + "id": "dd5d6ece-0905-43d9-9f50-701458064ddb", + "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) + \"@free.fr\"", + "targets": [], + "value": "courriel1" + }, { + "id": "e166ec25-93ce-4848-9454-d15b850b8d75", + "comment": "", + "command": "executeScript", + "target": "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)); } return str.charAt(0).toUpperCase() + str.slice(1); }; return chaine(15)", + "targets": [], + "value": "ville" + }, { + "id": "c32c8bf1-3724-43bd-8d98-5ccbb59e72b0", + "comment": "", + "command": "executeScript", + "target": "return '0' + Math.random().toString(10).substring(2, 11);", + "targets": [], + "value": "tel" + }, { + "id": "359af1d9-af14-4630-b667-3b5584618b60", + "comment": "", + "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": "8c0b7004-8e79-420c-b422-e940098ec516", + "comment": "", + "command": "storeValue", + "target": "id=f_numero", + "targets": [], + "value": "numero1" + }, { + "id": "e689a50d-3835-4f51-a081-4e15fa97a3de", + "comment": "", + "command": "click", + "target": "xpath=//select[@id=\"f_id_category\"]/option[contains(text(), \"${nom_categorie}\")]", + "targets": [ + ["css=#f_id_category > option:nth-child(3)", "css:finder"], + ["xpath=//option[@value='1']", "xpath:attributes"], + ["xpath=//select[@id='f_id_category']/option[3]", "xpath:idRelative"], + ["xpath=//option[3]", "xpath:position"], + ["xpath=//option[contains(.,'Membres actifs')]", "xpath:innerText"] + ], + "value": "" + }, { + "id": "d40e75cf-6540-48bb-b998-47f8f8df3a59", + "comment": "", + "command": "type", + "target": "id=f_nom", + "targets": [ + ["id=f_nom", "id"], + ["name=nom", "name"], + ["css=#f_nom", "css:finder"], + ["xpath=//input[@id='f_nom']", "xpath:attributes"], + ["xpath=//dd[3]/input", "xpath:position"] + ], + "value": "${nom1}" + }, { + "id": "eab78d36-0e03-403b-ba7d-e216d0ebe8be", + "comment": "", + "command": "type", + "target": "id=f_email", + "targets": [ + ["id=f_email", "id"], + ["name=email", "name"], + ["css=#f_email", "css:finder"], + ["xpath=//input[@id='f_email']", "xpath:attributes"], + ["xpath=//dd[4]/input", "xpath:position"] + ], + "value": "${courriel1}" + }, { + "id": "f5d2b3d4-0d89-43ad-bbc1-2b3c43b59f66", + "comment": "", + "command": "type", + "target": "id=f_ville", + "targets": [ + ["id=f_ville", "id"], + ["name=ville", "name"], + ["css=#f_ville", "css:finder"], + ["xpath=//input[@id='f_ville']", "xpath:attributes"], + ["xpath=//dd[10]/input", "xpath:position"] + ], + "value": "${ville}" + }, { + "id": "1d2cbfae-372a-44c0-875d-dc4d928bebe7", + "comment": "", + "command": "type", + "target": "id=f_telephone", + "targets": [ + ["id=f_telephone", "id"], + ["name=telephone", "name"], + ["css=#f_telephone", "css:finder"], + ["xpath=//input[@id='f_telephone']", "xpath:attributes"], + ["xpath=//dd[11]/input", "xpath:position"] + ], + "value": "${tel}" + }, { + "id": "5826679d-34cf-4ab9-823d-9d99fe46c5b0", + "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": "fc804356-0e01-4a0f-96ce-6aa3654fdddb", + "comment": "connecter ce membre", + "command": "", + "target": "", + "targets": [], + "value": "" + }, { + "id": "5eca6870-7b30-4647-ab80-f1bc53d57db8", + "comment": "", + "command": "click", + "target": "xpath=//a[contains(@href, \"edit_security.php\")]", + "targets": [], + "value": "" + }, { + "id": "a7bb7d76-0d6f-486e-86ce-ae70b7c7165f", + "comment": "", + "command": "store", + "target": "soin oeuf mélodieux intellectuel", + "targets": [], + "value": "mdp" + }, { + "id": "321c49fb-4d25-433f-9990-1150f2ca2a29", + "comment": "", + "command": "selectFrame", + "target": "index=0", + "targets": [ + ["index=0"] + ], + "value": "" + }, { + "id": "e3949a08-51b2-4176-ba18-efb24d4c0918", + "comment": "", + "command": "type", + "target": "id=f_password", + "targets": [ + ["id=f_password", "id"], + ["css=#f_password", "css:finder"], + ["xpath=//input[@id='f_password']", "xpath:attributes"], + ["xpath=//dd[3]/input", "xpath:position"] + ], + "value": "${mdp}" + }, { + "id": "75281e4f-27d1-4471-baa1-125d95969d05", + "comment": "", + "command": "type", + "target": "id=f_password_confirmed", + "targets": [ + ["id=f_password_confirmed", "id"], + ["name=password_confirmed", "name"], + ["css=#f_password_confirmed", "css:finder"], + ["xpath=//input[@id='f_password_confirmed']", "xpath:attributes"], + ["xpath=//dd[5]/input", "xpath:position"] + ], + "value": "${mdp}" + }, { + "id": "04d7120e-865e-4200-9f56-1473916bf6ae", + "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": "b4e5bcd3-77e2-4435-bc10-41485b3e0058", + "comment": "", + "command": "selectFrame", + "target": "relative=parent", + "targets": [ + ["relative=parent"] + ], + "value": "" + }, { + "id": "90db4732-5ce6-4ece-8d86-bb48e910ada3", + "comment": "Déconnexion admin", + "command": "click", + "target": "xpath=//a[contains(@href, '/admin/logout.php')]", + "targets": [], + "value": "" + }, { + "id": "a44262ef-b18c-42d1-a500-2c22b3eb26b3", + "comment": "", + "command": "type", + "target": "id=f_id", + "targets": [], + "value": "${courriel1}" + }, { + "id": "1b45e131-5ade-47b9-8b4a-7c6f28ba1fa7", + "comment": "", + "command": "type", + "target": "id=f_password", + "targets": [], + "value": "${mdp}" + }, { + "id": "2bd9f2e1-54b9-48ab-9918-a0e23da20d16", + "comment": "", + "command": "click", + "target": "name=login", + "targets": [], + "value": "" + }, { + "id": "0d68fc80-0465-497c-89fe-d0a2783775b3", + "comment": "", + "command": "click", + "target": "xpath=//a[contains(@href, \"/admin/me/\")]", + "targets": [], + "value": "" + }, { + "id": "cf64019c-f39c-4cac-af80-c8965f97ac8c", + "comment": "", + "command": "assertText", + "target": "xpath=//dt[text()=\"Numéro de membre\"]/following-sibling::dd", + "targets": [], + "value": "${numero1}" + }, { + "id": "d25cd5e8-c80e-4743-9713-3d07051541d3", + "comment": "Essayer de modifier un admin", + "command": "", + "target": "", + "targets": [], + "value": "" + }, { + "id": "3db20955-7757-404c-bf31-0f4c9ddca0af", + "comment": "", + "command": "click", + "target": "xpath=//a[contains(@href, \"/admin/users\")]", + "targets": [], + "value": "" + }, { + "id": "c18f08fd-b094-40cc-a833-578a8b45c458", + "comment": "", + "command": "type", + "target": "name=qt", + "targets": [], + "value": "1" + }, { + "id": "83c12b4e-75b8-44d9-b1d0-29a11f4eb261", + "comment": "", + "command": "click", + "target": "xpath=//button[@title=\"Chercher\"]", + "targets": [], + "value": "" + }, { + "id": "72ff66af-f2e6-4513-8a1b-3f6f0fdd25c6", + "comment": "", + "command": "assertText", + "target": "xpath=//dt[text()=\"Numéro de membre\"]/following-sibling::dd", + "targets": [], + "value": "1" + }, { + "id": "1c0a320c-4cc6-43b3-a48c-498426ef0090", + "comment": "", + "command": "assertText", + "target": "xpath=//aside[@class=\"describe\"]//dt[text()=\"Catégorie\"]/following-sibling::dd", + "targets": [], + "value": "Administrateurs" + }, { + "id": "9a3b7ae8-5766-4b3c-beae-cf20d5fd31b7", + "comment": "", + "command": "assertElementNotPresent", + "target": "xpath=//a[starts-with(@href, \"edit.php\")]", + "targets": [], + "value": "" + }, { + "id": "04f5a0af-3030-42ed-8b85-990aee418b45", + "comment": "remettre les droits à l'état initial", + "command": "", + "target": "", + "targets": [], + "value": "" + }, { + "id": "f06cdbd0-acee-4d30-894f-a3dcafac4110", + "comment": "", + "command": "click", + "target": "xpath=//a[contains(@href, '/admin/logout.php')]", + "targets": [], + "value": "" + }, { + "id": "1787b8c0-9b3c-4cd9-bda2-5cc46761dd8b", + "comment": "", + "command": "type", + "target": "id=f_id", + "targets": [], + "value": "jckix@free.fr" + }, { + "id": "cdcaa16d-112c-49e1-9aca-e417015fa86a", + "comment": "", + "command": "type", + "target": "id=f_password", + "targets": [], + "value": "interpeller noircir colis allumer" + }, { + "id": "3db75bbb-8020-41ff-b6f6-b883a5864805", + "comment": "", + "command": "click", + "target": "name=login", + "targets": [], + "value": "" + }, { + "id": "92e59772-4526-42ca-8803-12fe9463afb1", + "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": "67f58f44-6daa-412a-b60a-7b78261882d9", + "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": "8572c8de-881a-4ada-8bbd-b10999e85202", + "comment": "", + "command": "click", + "target": "xpath=//a[contains(@href, \"/admin/config/categories\")]", + "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": "a4b6248d-9ab9-4908-bbe6-66424728a897", + "comment": "", + "command": "click", + "target": "xpath=//table[@class=\"list\"]/tbody//th[text()=\"${nom_categorie}\"]/following-sibling::td/a[starts-with(@href, \"edit.php\")]", + "targets": [], + "value": "" + }, { + "id": "28db0c1f-3ea9-4553-9873-789940173cf8", + "comment": "", + "command": "check", + "target": "id=f_perm_users_0", + "targets": [], + "value": "" + }, { + "id": "240f9e5a-c2de-45c6-ba9b-09d85e3e8f87", + "comment": "", + "command": "click", + "target": "name=save", + "targets": [], + "value": "" + }] }, { "id": "793d3286-9eca-4939-b066-a522c7f390e1", "name": "14-50 droit administration", @@ -57000,7 +57541,7 @@ "persistSession": false, "parallel": false, "timeout": 300, - "tests": ["060b5608-629e-45d1-83e4-6a4c5db608e5", "72592be1-aa5c-428f-b16e-8bf09f4103cf", "c38b2445-1882-440e-befa-1dd78c918593", "5f7e280d-ec44-49b7-b373-6109494ba9f7", "d92eebc8-c916-44e0-8f75-0472e7bb52dd", "2fbd88ba-af7e-41f4-a65e-82ceb9b9ddc0", "08ad7abc-cc17-456f-9ff0-a10a7a29e784", "8b29c931-a500-4cf3-9079-13dbe03d1909", "918d1f7a-7547-4c00-8972-fc4744da82cc", "61e3023d-156d-47cb-a26a-5750b7d3ceb6", "7402d095-05b5-45eb-8029-9c6b106cf42d", "8311e834-db9a-40cc-a3ff-558b5be6ba2c", "182cfb32-6ded-4b73-8857-bb85476d34ac", "793d3286-9eca-4939-b066-a522c7f390e1"] + "tests": ["060b5608-629e-45d1-83e4-6a4c5db608e5", "72592be1-aa5c-428f-b16e-8bf09f4103cf", "c38b2445-1882-440e-befa-1dd78c918593", "5f7e280d-ec44-49b7-b373-6109494ba9f7", "d92eebc8-c916-44e0-8f75-0472e7bb52dd", "2fbd88ba-af7e-41f4-a65e-82ceb9b9ddc0", "08ad7abc-cc17-456f-9ff0-a10a7a29e784", "8b29c931-a500-4cf3-9079-13dbe03d1909", "918d1f7a-7547-4c00-8972-fc4744da82cc", "61e3023d-156d-47cb-a26a-5750b7d3ceb6", "7402d095-05b5-45eb-8029-9c6b106cf42d", "8311e834-db9a-40cc-a3ff-558b5be6ba2c", "182cfb32-6ded-4b73-8857-bb85476d34ac", "e186b063-f0d3-4a57-b58f-2ae29c4e57ab", "793d3286-9eca-4939-b066-a522c7f390e1"] }], "urls": ["http://test.paheko.localhost/"], "plugins": []