From 308ecede13d0345431be01180573f369699b140b Mon Sep 17 00:00:00 2001 From: Blesilda Ramirez Date: Thu, 3 Oct 2024 17:49:51 +0800 Subject: [PATCH] pkp/pkp-lib#10451 Fix cypress test error related to contributors listing --- cypress/tests/data/60-content/AmwandengaSubmission.cy.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cypress/tests/data/60-content/AmwandengaSubmission.cy.js b/cypress/tests/data/60-content/AmwandengaSubmission.cy.js index c46277e4b0a..71509288a8a 100644 --- a/cypress/tests/data/60-content/AmwandengaSubmission.cy.js +++ b/cypress/tests/data/60-content/AmwandengaSubmission.cy.js @@ -477,7 +477,7 @@ describe('Data suite: Amwandenga', function() { cy.wait(1500); cy.get('#contributors-button').click(); - cy.get('#contributors div').contains('Alan Mwandenga').parent().parent().find('button').contains('Edit').click(); + cy.get('#contributors div').contains('Alan Mwandenga').parents('div').find('button').contains('Edit').click(); cy.get('#contributors [name="familyName-en"]').type(' Version 2', {delay: 0}); cy.get('#contributors button').contains('Save').click(); // cy.get('#contributors button').contains('Save').should("not.be.visible");