From 9b38b099261e574b4db65fccfb001bfc0ed28f74 Mon Sep 17 00:00:00 2001 From: Pedro Amorim Date: Thu, 18 Apr 2024 10:19:32 +0000 Subject: [PATCH] Bug 36627: Add tests k-t-d, from /kohadevbox/koha, run: yarn run cypress run --spec "./t/cypress/integration/ERM/DataProviders_spec.ts" Signed-off-by: Pedro Amorim --- .../integration/ERM/DataProviders_spec.ts | 5 ++++ t/cypress/support/e2e.js | 23 ++++++++++++++++++- 2 files changed, 27 insertions(+), 1 deletion(-) diff --git a/t/cypress/integration/ERM/DataProviders_spec.ts b/t/cypress/integration/ERM/DataProviders_spec.ts index ccce9e9fdc2..07d31ab4ae2 100644 --- a/t/cypress/integration/ERM/DataProviders_spec.ts +++ b/t/cypress/integration/ERM/DataProviders_spec.ts @@ -682,6 +682,11 @@ describe("Data provider tab options", () => { cy.get("#usage_data_providerstabs").contains("Import logs").click(); cy.get("#counter_logs_list").contains("Showing 1 to 1 of 1 entries"); + + // Check 'Imported by' name + cy.get("#counter_logs_list table tbody tr:first td") + .eq(2) + .contains("koha"); }); }); diff --git a/t/cypress/support/e2e.js b/t/cypress/support/e2e.js index c0d0d2d6f79..e19973bf2e5 100644 --- a/t/cypress/support/e2e.js +++ b/t/cypress/support/e2e.js @@ -1140,7 +1140,28 @@ cy.get_counter_file = () => { "erm_counter_log_id": 2, "filename": "PTFS Journals_TR_J1", "importdate": "2023-06-19T09:40:46+00:00", - "logdetails": null + "logdetails": null, + "patron": { + "cardnumber": "42", + "category_id": "S", + "check_previous_checkout": "inherit", + "date_enrolled": "2024-04-18", + "expiry_date": "2032-07-18", + "incorrect_address": false, + "lang": "default", + "library_id": "CPL", + "login_attempts": 0, + "patron_card_lost": false, + "patron_id": 51, + "privacy": 1, + "privacy_guarantor_checkouts": 0, + "privacy_guarantor_fines": false, + "protected": false, + "restricted": false, + "surname": "koha", + "updated_on": "2024-04-18T09:42:59+00:00", + "userid": "koha", + }, } ] } -- 2.39.3 (Apple Git-146)