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 ) {