Skip to content

Update pre-merge checklist #542

Update pre-merge checklist

Update pre-merge checklist #542

Triggered via push November 14, 2024 16:26
Status Failure
Total duration 6m 9s
Artifacts 1

trunk.yml

on: push
Matrix: unit-php / PHP Unit Tests
build  /  Plugin Build
build / Plugin Build
docs  /  hookdocs
docs / hookdocs
build  /  Playground Preview
build / Playground Preview
Matrix: build / PHP Syntax Check
Waiting for pending jobs
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 / E2E Tests
Process completed with exit code 1.
🎭 Playwright Run Summary
1 failed [chromium] › admin/teacher/course-creation.spec.ts:29:6 › Create Courses › it should create a course 6 passed (42.9s)
🎭 Playwright Run Summary
5 passed (25.2s)

Artifacts

Produced during runtime
Name Size
playwright-report
538 KB