From 32a1f040f6c0aed9c459b154520d345194601e02 Mon Sep 17 00:00:00 2001 From: Felipe Elia Date: Wed, 23 Aug 2023 13:02:42 -0300 Subject: [PATCH] Log the formatted query info --- tests/cypress/support/global-hooks.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/cypress/support/global-hooks.js b/tests/cypress/support/global-hooks.js index 537c5d57a6..d9897740d3 100644 --- a/tests/cypress/support/global-hooks.js +++ b/tests/cypress/support/global-hooks.js @@ -36,8 +36,8 @@ before(() => { afterEach(() => { if (cy.state('test').state === 'failed') { - cy.get('#debug-menu-target-EP_Debug_Bar_ElasticPress') - .invoke('text') + cy.get('#debug-menu-target-EP_Debug_Bar_ElasticPress .ep-copy-button') + .invoke('attr', 'data-clipboard-text') .then((text) => { if (!text) { return;