Skip to content

Commit

Permalink
Adding screenshots.
Browse files Browse the repository at this point in the history
  • Loading branch information
brianhogg committed Nov 21, 2024
1 parent faa6426 commit 079bf5f
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions packages/llms-e2e-test-utils/src/run-setup-wizard.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 ) {
Expand Down

0 comments on commit 079bf5f

Please sign in to comment.