Bugzilla – Attachment 168897 Details for
Bug 36372
Allow privileged users to set the 'record source' on cataloguing
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 36372: Cypress tests
Bug-36372-Cypress-tests.patch (text/plain), 2.17 KB, created by
Arthur Suzuki
on 2024-07-12 12:18:39 UTC
(
hide
)
Description:
Bug 36372: Cypress tests
Filename:
MIME Type:
Creator:
Arthur Suzuki
Created:
2024-07-12 12:18:39 UTC
Size:
2.17 KB
patch
obsolete
>From 374b69a32760552fa514e6cbafc83a732c23c0f6 Mon Sep 17 00:00:00 2001 >From: Arthur Suzuki <arthur.suzuki@biblibre.com> >Date: Thu, 27 Jun 2024 11:55:15 +0200 >Subject: [PATCH] Bug 36372: Cypress tests > >--- > .../integration/Catalogue/Detail_spec.ts | 37 +++++++++++++++++++ > 1 file changed, 37 insertions(+) > create mode 100644 t/cypress/integration/Catalogue/Detail_spec.ts > >diff --git a/t/cypress/integration/Catalogue/Detail_spec.ts b/t/cypress/integration/Catalogue/Detail_spec.ts >new file mode 100644 >index 00000000000..8175a4b3d60 >--- /dev/null >+++ b/t/cypress/integration/Catalogue/Detail_spec.ts >@@ -0,0 +1,37 @@ >+import { mount } from "@cypress/vue"; >+const dayjs = require("dayjs"); /* Cannot use our calendar JS code, it's in an include file (!) >+ Also note that moment.js is deprecated */ >+ >+describe("Set record_source button is present", () => { >+ before(() => { >+ cy.login(); >+ cy.title().should("eq", "Koha staff interface"); >+ cy.visit("/cgi-bin/koha/admin/record_sources"); >+ cy.contains("New record source").click(); >+ cy.get("#name").type("Poop"); >+ cy.get("#record_source_edit").contains("Submit").click(); >+ }); >+ >+ after(() => { >+ cy.visit("/cgi-bin/koha/cataloguing/record_source.pl?biblionumber=51"); >+ cy.get("select").select("No specified source"); >+ cy.get("input[type=submit]").click(); >+ >+ cy.intercept("GET", '/api/v1/record_sources*').as('listSources') >+ cy.visit("/cgi-bin/koha/admin/record_sources"); >+ cy.wait('@listSources') >+ cy.get("tr:last-child a.delete").click(); >+ cy.contains("Poop"); >+ cy.get("button.approve").click(); >+ }); >+ >+ it("Set record source", () => { >+ cy.visit("/cgi-bin/koha/catalogue/detail.pl?biblionumber=51"); >+ cy.contains("Edit").click(); >+ cy.contains("Set record source").click(); >+ cy.get("#record_source_id").select("Poop"); >+ cy.contains("Set record source").click(); >+ cy.visit("/cgi-bin/koha/catalogue/detail.pl?biblionumber=51"); >+ cy.get("#catalogue_detail_record_source").contains("Poop"); >+ }); >+}); >\ No newline at end of file >-- >2.39.2
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 36372
:
166161
|
168054
|
168195
|
168338
|
168339
|
168340
|
168430
|
168510
|
168511
|
168512
|
168897
|
168898
|
168899
|
168900
|
168902
|
169268
|
169269
|
169270
|
169271
|
169542
|
169831
|
172369
|
172370
|
172371
|
176743
|
176744