Skip to content

Commit

Permalink
Adding a wait for the import process to complete, otherwise it's a fl…
Browse files Browse the repository at this point in the history
…aky test.
  • Loading branch information
brianhogg committed Dec 17, 2024
1 parent 21f0ce2 commit 6f2ec66
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packages/llms-e2e-test-utils/src/import-course.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ export async function importCourse(
await clickButton( 'Import' );

if ( navigate ) {
await page.waitForSelector( '.llms-admin-notice.notice-success a' );
await clickAndWait( '.llms-admin-notice.notice-success a' );
}
}

0 comments on commit 6f2ec66

Please sign in to comment.