upskill-event-manager/wordpress-dev/tests/test-results/e2e-results.xml
bengizmo 7fa7459fad Refactors event submission and listing to use TEC Community Events
shortcodes ([tribe_community_events view=\"...\"]) on dedicated pages
(/manage-event/, /my-events/) instead of child theme template overrides.

This change addresses persistent content duplication and layout issues
encountered with the template override method.

Changes include:
- Updating plugin activation hook to create new pages with shortcodes.
- Updating dashboard links to point to new pages.
- Removing child theme override files and related custom handler logic.
- Updating integration tests for activation.
- Adding/updating E2E tests for dashboard links and new pages.
- Fixing `run-tests.sh` corruption and adding pre-E2E setup steps
  (plugin reactivation, rewrite flush) to resolve 404s.
- Updating relevant documentation and memory bank files.

Testing:
- Integration tests pass.
- E2E tests pass for core functionality (login, dashboard, links).
- E2E tests for rendering of TEC CE shortcodes on new pages fail due
  to environment-specific issues (likely JS/timing) and are recommended
  to be skipped. Manual verification confirms pages render correctly."
2025-04-02 22:23:37 -03:00

110 lines
No EOL
7 KiB
XML
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<testsuites id="" name="" tests="17" failures="2" skipped="2" errors="0" time="39.646598">
<testsuite name="community-events.spec.ts" timestamp="2025-04-03T01:19:33.901Z" hostname="chromium" tests="2" failures="2" skipped="0" time="30.257" errors="0">
<testcase name="Community Events Shortcode Page Tests should display event submission form on /manage-event/" classname="community-events.spec.ts" time="16.46">
<failure message="community-events.spec.ts:13:6 should display event submission form on /manage-event/" type="FAILURE">
<![CDATA[ [chromium] community-events.spec.ts:13:6 Community Events Shortcode Page Tests should display event submission form on /manage-event/
TimeoutError: page.waitForSelector: Timeout 10000ms exceeded.
Call log:
- waiting for locator('#tribe-community-events.tribe-community-events-form') to be visible
20 | // Wait for the form container to appear first
21 | const formSelector = '#tribe-community-events.tribe-community-events-form';
> 22 | await page.waitForSelector(formSelector, { state: 'visible', timeout: 10000 }); // Increased timeout
| ^
23 | await expect(page.locator(formSelector)).toBeVisible();
24 |
25 | // Wait for the title input field to appear
at /Users/ben/dev/upskill-event-manager/wordpress-dev/tests/e2e/tests/community-events.spec.ts:22:14
attachment #1: screenshot (image/png) ──────────────────────────────────────────────────────────
test-results/community-events-Community-9b6df-ssion-form-on-manage-event--chromium/test-failed-1.png
────────────────────────────────────────────────────────────────────────────────────────────────
]]>
</failure>
<system-out>
<![CDATA[
[[ATTACHMENT|../../test-results/community-events-Community-9b6df-ssion-form-on-manage-event--chromium/test-failed-1.png]]
]]>
</system-out>
</testcase>
<testcase name="Community Events Shortcode Page Tests should display event list on /my-events/" classname="community-events.spec.ts" time="13.797">
<failure message="community-events.spec.ts:31:6 should display event list on /my-events/" type="FAILURE">
<![CDATA[ [chromium] community-events.spec.ts:31:6 Community Events Shortcode Page Tests should display event list on /my-events/
TimeoutError: page.waitForSelector: Timeout 10000ms exceeded.
Call log:
- waiting for locator('table#tribe-community-events-list') to be visible
38 | // Wait for the table to appear
39 | const tableSelector = 'table#tribe-community-events-list';
> 40 | await page.waitForSelector(tableSelector, { state: 'visible', timeout: 10000 }); // Increased timeout
| ^
41 | await expect(page.locator(tableSelector)).toBeVisible();
42 |
43 | // Wait for the list title generated by the shortcode
at /Users/ben/dev/upskill-event-manager/wordpress-dev/tests/e2e/tests/community-events.spec.ts:40:14
attachment #1: screenshot (image/png) ──────────────────────────────────────────────────────────
test-results/community-events-Community-a750f-ay-event-list-on-my-events--chromium/test-failed-1.png
────────────────────────────────────────────────────────────────────────────────────────────────
]]>
</failure>
<system-out>
<![CDATA[
[[ATTACHMENT|../../test-results/community-events-Community-a750f-ay-event-list-on-my-events--chromium/test-failed-1.png]]
]]>
</system-out>
</testcase>
</testsuite>
<testsuite name="dashboard.spec.ts" timestamp="2025-04-03T01:19:33.901Z" hostname="chromium" tests="3" failures="0" skipped="0" time="15.58" errors="0">
<testcase name="Trainer Dashboard Tests should display dashboard elements for logged-in trainer" classname="dashboard.spec.ts" time="4.731">
</testcase>
<testcase name="Trainer Dashboard Tests should filter events table when filter links are clicked" classname="dashboard.spec.ts" time="8.628">
</testcase>
<testcase name="Trainer Dashboard Tests should display correctly on mobile viewport" classname="dashboard.spec.ts" time="2.221">
</testcase>
</testsuite>
<testsuite name="login.spec.ts" timestamp="2025-04-03T01:19:33.901Z" hostname="chromium" tests="4" failures="0" skipped="0" time="22.443" errors="0">
<testcase name="Login Functionality @login displays login form" classname="login.spec.ts" time="2.922">
</testcase>
<testcase name="Login Functionality @login shows error on invalid credentials" classname="login.spec.ts" time="6.314">
</testcase>
<testcase name="Login Functionality @login redirects to dashboard on successful login" classname="login.spec.ts" time="5.715">
</testcase>
<testcase name="Login Functionality @login remembers login state" classname="login.spec.ts" time="7.492">
</testcase>
</testsuite>
<testsuite name="registration.spec.ts" timestamp="2025-04-03T01:19:33.901Z" hostname="chromium" tests="8" failures="0" skipped="2" time="31.681" errors="0">
<testcase name="Trainer Registration Page E2E Tests should load the registration page successfully and display form" classname="registration.spec.ts" time="2.905">
</testcase>
<testcase name="Trainer Registration Page E2E Tests should show validation errors for empty required fields on submit" classname="registration.spec.ts" time="8.939">
</testcase>
<testcase name="Trainer Registration Page E2E Tests should show validation error for invalid email format" classname="registration.spec.ts" time="5.767">
</testcase>
<testcase name="Trainer Registration Page E2E Tests should show validation error for password mismatch" classname="registration.spec.ts" time="5.101">
</testcase>
<testcase name="Trainer Registration Page E2E Tests should show validation error for weak password" classname="registration.spec.ts" time="4.066">
</testcase>
<testcase name="Trainer Registration Page E2E Tests should allow successful registration with minimum valid required data" classname="registration.spec.ts" time="4.903">
</testcase>
<testcase name="Trainer Registration Page E2E Tests DEBUG: Capture validation error HTML structure" classname="registration.spec.ts" time="0">
<properties>
<property name="skip" value="">
</property>
</properties>
<skipped>
</skipped>
</testcase>
<testcase name="Trainer Registration Page E2E Tests DEBUG: Capture State/Province dropdown options for US" classname="registration.spec.ts" time="0">
<properties>
<property name="skip" value="">
</property>
</properties>
<skipped>
</skipped>
</testcase>
</testsuite>
</testsuites>