Skip to content

Remove obsolete code #5090

Remove obsolete code

Remove obsolete code #5090

Triggered via pull request November 28, 2024 14:55
Status Failure
Total duration 5m 33s
Artifacts 1

e2e.yml

on: pull_request
Fit to window
Zoom out
Zoom in

Annotations

4 errors and 2 notices
[chromium] › admin/teacher/course-creation.spec.ts:29:6 › Create Courses › it should create a course: tests/e2e-playwright/specs/admin/teacher/course-creation.spec.ts#L33
1) [chromium] › admin/teacher/course-creation.spec.ts:29:6 › Create Courses › it should create a course Error: locator.click: Error: strict mode violation: locator('a.page-title-action[href$="post-new.php?post_type=course"]:has-text("New Course")') resolved to 2 elements: 1) <a class="page-title-action" href="http://localhost:8889/wp-admin/post-new.php?post_type=course">New Course</a> aka getByRole('link', { name: 'New Course', exact: true }) 2) <a class="page-title-action" href="http://localhost:8889/wp-admin/post-new.php?post_type=course">Add New Course</a> aka getByRole('link', { name: 'Add New Course' }) Call log: - waiting for locator('a.page-title-action[href$="post-new.php?post_type=course"]:has-text("New Course")') 31 | coursesPage.goToPostTypeListingPage(); 32 | > 33 | await coursesPage.createCourseButton.click(); | ^ 34 | 35 | // Fill in the course title and description. 36 | const wizardModal = coursesPage.wizardModal; at /home/runner/work/***/***/tests/e2e-playwright/specs/admin/teacher/course-creation.spec.ts:33:40
[chromium] › admin/teacher/course-creation.spec.ts:29:6 › Create Courses › it should create a course: tests/e2e-playwright/specs/admin/teacher/course-creation.spec.ts#L33
1) [chromium] › admin/teacher/course-creation.spec.ts:29:6 › Create Courses › it should create a course Retry #1 ─────────────────────────────────────────────────────────────────────────────────────── Error: locator.click: Error: strict mode violation: locator('a.page-title-action[href$="post-new.php?post_type=course"]:has-text("New Course")') resolved to 2 elements: 1) <a class="page-title-action" href="http://localhost:8889/wp-admin/post-new.php?post_type=course">New Course</a> aka getByRole('link', { name: 'New Course', exact: true }) 2) <a class="page-title-action" href="http://localhost:8889/wp-admin/post-new.php?post_type=course">Add New Course</a> aka getByRole('link', { name: 'Add New Course' }) Call log: - waiting for locator('a.page-title-action[href$="post-new.php?post_type=course"]:has-text("New Course")') 31 | coursesPage.goToPostTypeListingPage(); 32 | > 33 | await coursesPage.createCourseButton.click(); | ^ 34 | 35 | // Fill in the course title and description. 36 | const wizardModal = coursesPage.wizardModal; at /home/runner/work/***/***/tests/e2e-playwright/specs/admin/teacher/course-creation.spec.ts:33:40
[chromium] › admin/teacher/course-creation.spec.ts:29:6 › Create Courses › it should create a course: tests/e2e-playwright/specs/admin/teacher/course-creation.spec.ts#L33
1) [chromium] › admin/teacher/course-creation.spec.ts:29:6 › Create Courses › it should create a course Retry #2 ─────────────────────────────────────────────────────────────────────────────────────── Error: locator.click: Error: strict mode violation: locator('a.page-title-action[href$="post-new.php?post_type=course"]:has-text("New Course")') resolved to 2 elements: 1) <a class="page-title-action" href="http://localhost:8889/wp-admin/post-new.php?post_type=course">New Course</a> aka getByRole('link', { name: 'New Course', exact: true }) 2) <a class="page-title-action" href="http://localhost:8889/wp-admin/post-new.php?post_type=course">Add New Course</a> aka getByRole('link', { name: 'Add New Course' }) Call log: - waiting for locator('a.page-title-action[href$="post-new.php?post_type=course"]:has-text("New Course")') 31 | coursesPage.goToPostTypeListingPage(); 32 | > 33 | await coursesPage.createCourseButton.click(); | ^ 34 | 35 | // Fill in the course title and description. 36 | const wizardModal = coursesPage.wizardModal; at /home/runner/work/***/***/tests/e2e-playwright/specs/admin/teacher/course-creation.spec.ts:33:40
E2E Tests
Process completed with exit code 1.
🎭 Playwright Run Summary
5 passed (24.2s)
🎭 Playwright Run Summary
1 failed [chromium] › admin/teacher/course-creation.spec.ts:29:6 › Create Courses › it should create a course 6 passed (41.5s)

Artifacts

Produced during runtime
Name Size
playwright-report
541 KB