Skip to content

Commit

Permalink
Fix e2e tests
Browse files Browse the repository at this point in the history
  • Loading branch information
donnapep committed Nov 28, 2024
1 parent c4c94fe commit 4a0ddac
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion tests/e2e-playwright/pages/admin/courses/courses.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ export default class CoursesPage extends PostType {
this.wizardModal = new WizardModal( wizardLocator );

this.createCourseButton = page.locator(
'a.page-title-action[href$="post-new.php?post_type=course"]:has-text("New Course")'
'a.page-title-action[href$="post-new.php?post_type=course"]:has-text("New Course"):visible'
);

this.publishButton = page.locator(
Expand Down
2 changes: 1 addition & 1 deletion tests/e2e-playwright/pages/admin/courses/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ export default class CoursesPage extends PostType {
this.wizardModal = new WizardModal( wizardLocator );

this.createCourseButton = page.locator(
'a.page-title-action[href$="post-new.php?post_type=course"]:has-text("New Course")'
'a.page-title-action[href$="post-new.php?post_type=course"]:has-text("New Course"):visible'
);

this.courseOutlineBlock = new CourseOutline( page );
Expand Down

0 comments on commit 4a0ddac

Please sign in to comment.