Update pre-merge checklist #542
trunk.yml
on: push
Matrix: unit-php / PHP Unit Tests
unit-js
/
JS Linting
2m 1s
unit-js
/
TypeScript Checking
1m 44s
unit-js
/
JS Testing
2m 18s
unit-php
/
PHP Linting
1m 17s
e2e
/
E2E Tests
5m 56s
docs
/
hookdocs
build
/
Playground Preview
Matrix: build / PHP Syntax Check
Waiting for pending jobs
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 |
|