From 079bf5fd0ff04ec28c6f6b9a4f343b13d2a2dd09 Mon Sep 17 00:00:00 2001 From: Brian Hogg Date: Thu, 21 Nov 2024 12:45:32 -0500 Subject: [PATCH] Adding screenshots. --- packages/llms-e2e-test-utils/src/run-setup-wizard.js | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/packages/llms-e2e-test-utils/src/run-setup-wizard.js b/packages/llms-e2e-test-utils/src/run-setup-wizard.js index 2b9b5ee5c5..9aa9be205d 100644 --- a/packages/llms-e2e-test-utils/src/run-setup-wizard.js +++ b/packages/llms-e2e-test-utils/src/run-setup-wizard.js @@ -78,11 +78,19 @@ export async function runSetupWizard( { } else if ( coursesToImport ) { // Import courses. + await page.screenshot({ + path: 'before-selecting-courses-setup-wizard.jpg' + }); + // Select specified courses. for ( const courseTitle of coursesToImport ) { await clickElementByText( courseTitle, 'h3' ); } + await page.screenshot({ + path: 'after-selecting-courses-setup-wizard.jpg' + }); + await clickAndWait( '.llms-setup-actions .llms-button-primary' ); if ( 1 === coursesToImport.length ) {