Bugzilla – Attachment 190126 Details for
Bug 41368
Tools/ManageMarcImport_spec.ts is failing
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 41368: Set new values directly in DOM
Bug-41368-Set-new-values-directly-in-DOM.patch (text/plain), 1.97 KB, created by
Lucas Gass (lukeg)
on 2025-12-03 17:54:17 UTC
(
hide
)
Description:
Bug 41368: Set new values directly in DOM
Filename:
MIME Type:
Creator:
Lucas Gass (lukeg)
Created:
2025-12-03 17:54:17 UTC
Size:
1.97 KB
patch
obsolete
>From 9dbe38e25b22e3402e6ab21522acabdd25f45a84 Mon Sep 17 00:00:00 2001 >From: Lucas Gass <lucas@bywatersolutions.com> >Date: Wed, 3 Dec 2025 17:53:04 +0000 >Subject: [PATCH] Bug 41368: Set new values directly in DOM > >To test: >1. APPLY PATCH, yarn build >2. cypress run --spec t/cypress/integration/Tools/ManageMarcImport_spec.ts >3. it passes >--- > .../Tools/ManageMarcImport_spec.ts | 22 +++++++------------ > 1 file changed, 8 insertions(+), 14 deletions(-) > >diff --git a/t/cypress/integration/Tools/ManageMarcImport_spec.ts b/t/cypress/integration/Tools/ManageMarcImport_spec.ts >index 13f27698fdd..33cc204e2df 100644 >--- a/t/cypress/integration/Tools/ManageMarcImport_spec.ts >+++ b/t/cypress/integration/Tools/ManageMarcImport_spec.ts >@@ -53,20 +53,14 @@ describe("loads the manage MARC import page", () => { > > cy.get('select[name="format"]').should("have.value", "MARCXML"); > >- //select some new options >- cy.get("#matcher").select("3", { force: true }); >- cy.get("#matcher") >- .select("3", { force: true }) >- .should("have.value", "3"); >- cy.get("#overlay_action") >- .select("create_new", { force: true }) >- .should("have.value", "create_new"); >- cy.get("#nomatch_action") >- .select("ignore", { force: true }) >- .should("have.value", "ignore"); >- cy.get("#item_action") >- .select("ignore", { force: true }) >- .should("have.value", "ignore"); >+ //select some new options directly in the DOM >+ cy.window().then(win => { >+ win.document.getElementById("matcher").value = "3"; >+ win.document.getElementById("overlay_action").value = "create_new"; >+ win.document.getElementById("nomatch_action").value = "ignore"; >+ win.document.getElementById("item_action").value = "ignore"; >+ win.document.getElementById("format").value = "MARCXML"; >+ }); > > cy.get("#mainformsubmit").click(); > >-- >2.39.5
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 41368
:
190126
|
190131
|
190143