Skip to content

NEW e2e environment using playground cli #236

NEW e2e environment using playground cli

NEW e2e environment using playground cli #236

Triggered via pull request August 22, 2024 12:54
Status Failure
Total duration 5m 15s
Artifacts 1

e2e-tests.yml

on: pull_request
Fit to window
Zoom out
Zoom in

Annotations

7 errors and 1 notice
[webkit] › editor/events.spec.ts:42:2 › Events in the Editor › An admin should be able to publish an offline event: test/e2e/tests/editor/events.spec.ts#L8
1) [webkit] › editor/events.spec.ts:42:2 › Events in the Editor › An admin should be able to publish an offline event TimeoutError: page.waitForFunction: Timeout 10000ms exceeded. 6 | test.describe('Events in the Editor', () => { 7 | test.beforeEach(async ({ admin, page }) => { > 8 | await admin.createNewPost({ postType: 'gatherpress_event' }); | ^ 9 | await page.getByLabel('Add title').fill('Change title to allow saving'); 10 | await page 11 | .getByLabel('Block: Event Date') at Editor.setPreferences (/home/runner/work/gatherpress/gatherpress/node_modules/@wordpress/e2e-test-utils-playwright/src/editor/set-preferences.ts:23:18) at Admin.createNewPost (/home/runner/work/gatherpress/gatherpress/node_modules/@wordpress/e2e-test-utils-playwright/src/admin/create-new-post.ts:43:20) at /home/runner/work/gatherpress/gatherpress/test/e2e/tests/editor/events.spec.ts:8:3
[webkit] › editor/events.spec.ts:42:2 › Events in the Editor › An admin should be able to publish an offline event: test/e2e/tests/editor/events.spec.ts#L29
1) [webkit] › editor/events.spec.ts:42:2 › Events in the Editor › An admin should be able to publish an offline event TimeoutError: locator.click: Timeout 10000ms exceeded. Call log: - waiting for getByRole('button', { name: 'Event settings' }) 27 | test.afterEach(async ({ editor, page }) => { 28 | // Click again to close the element, to let upcoming tests not get flaky. > 29 | await page.getByRole('button', { name: 'Event settings' }).click(); | ^ 30 | await editor.publishPost(); 31 | }); 32 | at /home/runner/work/gatherpress/gatherpress/test/e2e/tests/editor/events.spec.ts:29:62
[webkit] › editor/venues.spec.ts:11:2 › Venues in the Editor › The admin should be able to create a new Venue.: test/e2e/tests/editor/venues.spec.ts#L8
2) [webkit] › editor/venues.spec.ts:11:2 › Venues in the Editor › The admin should be able to create a new Venue. TimeoutError: page.waitForFunction: Timeout 10000ms exceeded. 6 | test.describe('Venues in the Editor', () => { 7 | test.beforeEach(async ({ admin }) => { > 8 | await admin.createNewPost({ postType: 'gatherpress_venue' }); | ^ 9 | }); 10 | 11 | test('The admin should be able to create a new Venue.', async ({ at Editor.setPreferences (/home/runner/work/gatherpress/gatherpress/node_modules/@wordpress/e2e-test-utils-playwright/src/editor/set-preferences.ts:23:18) at Admin.createNewPost (/home/runner/work/gatherpress/gatherpress/node_modules/@wordpress/e2e-test-utils-playwright/src/admin/create-new-post.ts:43:20) at /home/runner/work/gatherpress/gatherpress/test/e2e/tests/editor/venues.spec.ts:8:3
[webkit] › frontend/rsvp.spec.ts:43:2 › RSVP to an event › A logged in user can perform RSVP action: test/e2e/tests/frontend/rsvp.spec.ts#L45
3) [webkit] › frontend/rsvp.spec.ts:43:2 › RSVP to an event › A logged in user can perform RSVP action TimeoutError: locator.click: Timeout 10000ms exceeded. Call log: - waiting for getByRole('link', { name: 'Events' }) 43 | test('A logged in user can perform RSVP action', async ({ page }) => { 44 | await page.goto('/'); > 45 | await page.getByRole('link', { name: 'Events' }).click(); // Imported from of https://github.com/GatherPress/demo-data | ^ 46 | 47 | await page.evaluate(() => window.scrollTo(0, 5000)); 48 | await page at /home/runner/work/gatherpress/gatherpress/test/e2e/tests/frontend/rsvp.spec.ts:45:52
[webkit] › site-editor/templates.spec.ts:7:2 › Templates › The events template can be edited: test/e2e/tests/site-editor/templates.spec.ts#L8
4) [webkit] › site-editor/templates.spec.ts:7:2 › Templates › The events template can be edited ── TimeoutError: page.waitForFunction: Timeout 10000ms exceeded. 6 | test.describe('Templates', () => { 7 | test('The events template can be edited', async ({ admin }) => { > 8 | await admin.visitSiteEditor({ | ^ 9 | // postId: 'twentytwentyfour/single-gatherpress_event', 10 | postType: 'wp_template', 11 | // canvas: 'edit', at Editor.setPreferences (/home/runner/work/gatherpress/gatherpress/node_modules/@wordpress/e2e-test-utils-playwright/src/editor/set-preferences.ts:23:18) at Admin.visitSiteEditor (/home/runner/work/gatherpress/gatherpress/node_modules/@wordpress/e2e-test-utils-playwright/src/admin/visit-site-editor.ts:68:21) at /home/runner/work/gatherpress/gatherpress/test/e2e/tests/site-editor/templates.spec.ts:8:3
[webkit] › wp-admin/settings.spec.ts:7:2 › Settings › A link to the plugin settings page is present under the Events menu: test/e2e/tests/wp-admin/settings.spec.ts#L19
5) [webkit] › wp-admin/settings.spec.ts:7:2 › Settings › A link to the plugin settings page is present under the Events menu TimeoutError: locator.getAttribute: Timeout 10000ms exceeded. Call log: - waiting for locator('li').filter({ has: getByRole('link', { name: 'Events' }) }).getByRole('link', { name: 'Settings' }) 17 | name: 'Settings', 18 | }); > 19 | const settingsMenuUrl = await settingsMenu.getAttribute('href'); | ^ 20 | 21 | await expect(settingsMenu).toBeVisible(); 22 | await expect(settingsMenuUrl).toContain( at /home/runner/work/gatherpress/gatherpress/test/e2e/tests/wp-admin/settings.spec.ts:19:46
e2e-tests
Process completed with exit code 1.
🎭 Playwright Run Summary
5 failed [webkit] › editor/events.spec.ts:42:2 › Events in the Editor › An admin should be able to publish an offline event [webkit] › editor/venues.spec.ts:11:2 › Venues in the Editor › The admin should be able to create a new Venue. [webkit] › frontend/rsvp.spec.ts:43:2 › RSVP to an event › A logged in user can perform RSVP action [webkit] › site-editor/templates.spec.ts:7:2 › Templates › The events template can be edited ─── [webkit] › wp-admin/settings.spec.ts:7:2 › Settings › A link to the plugin settings page is present under the Events menu 16 passed (3.0m)

Artifacts

Produced during runtime
Name Size
test-results-matrix-less-debugging
760 KB