Site Editor: update index page for templates (TEST – NOT TO MERGE) #99344
Annotations
10 errors, 1 warning, and 1 notice
Run the tests:
test/e2e/specs/site-editor/pages.spec.js#L260
1) [chromium] › site-editor/pages.spec.js:252:2 › Pages › swap template and reset to default ─────
Error: locator.click: Error: strict mode violation: getByRole('button', { name: 'Add New Template' }) resolved to 2 elements:
1) <button type="button" aria-label="Add New Template" clas…>…</button> aka getByLabel('Navigation').getByLabel('Add New Template')
2) <button type="button" aria-label="Add New Template" clas…>Add New Template</button> aka getByText('Add New Template')
Call log:
- waiting for getByRole('button', { name: 'Add New Template' })
258 | const templateName = 'demo';
259 | await page.getByRole( 'button', { name: 'Templates' } ).click();
> 260 | await page.getByRole( 'button', { name: 'Add New Template' } ).click();
| ^
261 | await page
262 | .getByRole( 'button', {
263 | name: 'A custom template can be manually applied to any post or page.',
at /home/runner/work/gutenberg/gutenberg/test/e2e/specs/site-editor/pages.spec.js:260:66
|
Run the tests:
test/e2e/specs/site-editor/pages.spec.js#L260
1) [chromium] › site-editor/pages.spec.js:252:2 › Pages › swap template and reset to default ─────
Retry #1 ───────────────────────────────────────────────────────────────────────────────────────
Error: locator.click: Error: strict mode violation: getByRole('button', { name: 'Add New Template' }) resolved to 2 elements:
1) <button type="button" aria-label="Add New Template" clas…>…</button> aka getByLabel('Navigation').getByLabel('Add New Template')
2) <button type="button" aria-label="Add New Template" clas…>Add New Template</button> aka getByText('Add New Template')
Call log:
- waiting for getByRole('button', { name: 'Add New Template' })
258 | const templateName = 'demo';
259 | await page.getByRole( 'button', { name: 'Templates' } ).click();
> 260 | await page.getByRole( 'button', { name: 'Add New Template' } ).click();
| ^
261 | await page
262 | .getByRole( 'button', {
263 | name: 'A custom template can be manually applied to any post or page.',
at /home/runner/work/gutenberg/gutenberg/test/e2e/specs/site-editor/pages.spec.js:260:66
|
Run the tests:
test/e2e/specs/site-editor/pages.spec.js#L260
1) [chromium] › site-editor/pages.spec.js:252:2 › Pages › swap template and reset to default ─────
Retry #2 ───────────────────────────────────────────────────────────────────────────────────────
Error: locator.click: Error: strict mode violation: getByRole('button', { name: 'Add New Template' }) resolved to 2 elements:
1) <button type="button" aria-label="Add New Template" clas…>…</button> aka getByLabel('Navigation').getByLabel('Add New Template')
2) <button type="button" aria-label="Add New Template" clas…>Add New Template</button> aka getByText('Add New Template')
Call log:
- waiting for getByRole('button', { name: 'Add New Template' })
258 | const templateName = 'demo';
259 | await page.getByRole( 'button', { name: 'Templates' } ).click();
> 260 | await page.getByRole( 'button', { name: 'Add New Template' } ).click();
| ^
261 | await page
262 | .getByRole( 'button', {
263 | name: 'A custom template can be manually applied to any post or page.',
at /home/runner/work/gutenberg/gutenberg/test/e2e/specs/site-editor/pages.spec.js:260:66
|
Run the tests:
test/e2e/specs/site-editor/site-editor-url-navigation.spec.js#L46
2) [chromium] › site-editor/site-editor-url-navigation.spec.js:23:3 › Site editor url navigation › Redirection after template and template part creation › Redirection after template creation
Error: page.click: Error: strict mode violation: locator('role=button[name="Add New Template"i]') resolved to 2 elements:
1) <button type="button" aria-label="Add New Template" clas…>…</button> aka getByLabel('Navigation').getByLabel('Add New Template')
2) <button type="button" aria-label="Add New Template" clas…>Add New Template</button> aka getByText('Add New Template')
Call log:
- waiting for locator('role=button[name="Add New Template"i]')
44 | page.click( 'role=button[name="Templates"]' ),
45 | ] );
> 46 | await page.click( 'role=button[name="Add New Template"i]' );
| ^
47 | await page
48 | .getByRole( 'button', {
49 | name: 'Single item: Post',
at /home/runner/work/gutenberg/gutenberg/test/e2e/specs/site-editor/site-editor-url-navigation.spec.js:46:15
|
Run the tests:
test/e2e/specs/site-editor/site-editor-url-navigation.spec.js#L46
2) [chromium] › site-editor/site-editor-url-navigation.spec.js:23:3 › Site editor url navigation › Redirection after template and template part creation › Redirection after template creation
Retry #1 ───────────────────────────────────────────────────────────────────────────────────────
Error: page.click: Error: strict mode violation: locator('role=button[name="Add New Template"i]') resolved to 2 elements:
1) <button type="button" aria-label="Add New Template" clas…>…</button> aka getByLabel('Navigation').getByLabel('Add New Template')
2) <button type="button" aria-label="Add New Template" clas…>Add New Template</button> aka getByText('Add New Template')
Call log:
- waiting for locator('role=button[name="Add New Template"i]')
44 | page.click( 'role=button[name="Templates"]' ),
45 | ] );
> 46 | await page.click( 'role=button[name="Add New Template"i]' );
| ^
47 | await page
48 | .getByRole( 'button', {
49 | name: 'Single item: Post',
at /home/runner/work/gutenberg/gutenberg/test/e2e/specs/site-editor/site-editor-url-navigation.spec.js:46:15
|
Run the tests:
test/e2e/specs/site-editor/site-editor-url-navigation.spec.js#L46
2) [chromium] › site-editor/site-editor-url-navigation.spec.js:23:3 › Site editor url navigation › Redirection after template and template part creation › Redirection after template creation
Retry #2 ───────────────────────────────────────────────────────────────────────────────────────
Error: page.click: Error: strict mode violation: locator('role=button[name="Add New Template"i]') resolved to 2 elements:
1) <button type="button" aria-label="Add New Template" clas…>…</button> aka getByLabel('Navigation').getByLabel('Add New Template')
2) <button type="button" aria-label="Add New Template" clas…>Add New Template</button> aka getByText('Add New Template')
Call log:
- waiting for locator('role=button[name="Add New Template"i]')
44 | page.click( 'role=button[name="Templates"]' ),
45 | ] );
> 46 | await page.click( 'role=button[name="Add New Template"i]' );
| ^
47 | await page
48 | .getByRole( 'button', {
49 | name: 'Single item: Post',
at /home/runner/work/gutenberg/gutenberg/test/e2e/specs/site-editor/site-editor-url-navigation.spec.js:46:15
|
Run the tests:
test/e2e/specs/site-editor/templates.spec.js#L17
3) [chromium] › site-editor/templates.spec.js:13:2 › Templates › Create a custom template ────────
Error: locator.click: Error: strict mode violation: getByRole('button', { name: 'Add New Template' }) resolved to 2 elements:
1) <button type="button" aria-label="Add New Template" clas…>…</button> aka getByLabel('Navigation').getByLabel('Add New Template')
2) <button type="button" aria-label="Add New Template" clas…>Add New Template</button> aka getByText('Add New Template')
Call log:
- waiting for getByRole('button', { name: 'Add New Template' })
15 | await admin.visitSiteEditor();
16 | await page.getByRole( 'button', { name: 'Templates' } ).click();
> 17 | await page.getByRole( 'button', { name: 'Add New Template' } ).click();
| ^
18 | await page
19 | .getByRole( 'button', {
20 | name: 'A custom template can be manually applied to any post or page.',
at /home/runner/work/gutenberg/gutenberg/test/e2e/specs/site-editor/templates.spec.js:17:66
|
Run the tests:
test/e2e/specs/site-editor/templates.spec.js#L17
3) [chromium] › site-editor/templates.spec.js:13:2 › Templates › Create a custom template ────────
Retry #1 ───────────────────────────────────────────────────────────────────────────────────────
Error: locator.click: Error: strict mode violation: getByRole('button', { name: 'Add New Template' }) resolved to 2 elements:
1) <button type="button" aria-label="Add New Template" clas…>…</button> aka getByLabel('Navigation').getByLabel('Add New Template')
2) <button type="button" aria-label="Add New Template" clas…>Add New Template</button> aka getByText('Add New Template')
Call log:
- waiting for getByRole('button', { name: 'Add New Template' })
15 | await admin.visitSiteEditor();
16 | await page.getByRole( 'button', { name: 'Templates' } ).click();
> 17 | await page.getByRole( 'button', { name: 'Add New Template' } ).click();
| ^
18 | await page
19 | .getByRole( 'button', {
20 | name: 'A custom template can be manually applied to any post or page.',
at /home/runner/work/gutenberg/gutenberg/test/e2e/specs/site-editor/templates.spec.js:17:66
|
Run the tests:
test/e2e/specs/site-editor/templates.spec.js#L17
3) [chromium] › site-editor/templates.spec.js:13:2 › Templates › Create a custom template ────────
Retry #2 ───────────────────────────────────────────────────────────────────────────────────────
Error: locator.click: Error: strict mode violation: getByRole('button', { name: 'Add New Template' }) resolved to 2 elements:
1) <button type="button" aria-label="Add New Template" clas…>…</button> aka getByLabel('Navigation').getByLabel('Add New Template')
2) <button type="button" aria-label="Add New Template" clas…>Add New Template</button> aka getByText('Add New Template')
Call log:
- waiting for getByRole('button', { name: 'Add New Template' })
15 | await admin.visitSiteEditor();
16 | await page.getByRole( 'button', { name: 'Templates' } ).click();
> 17 | await page.getByRole( 'button', { name: 'Add New Template' } ).click();
| ^
18 | await page
19 | .getByRole( 'button', {
20 | name: 'A custom template can be manually applied to any post or page.',
at /home/runner/work/gutenberg/gutenberg/test/e2e/specs/site-editor/templates.spec.js:17:66
|
Run the tests
Process completed with exit code 1.
|
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/setup-node@64ed1c7eab4cce3362f8c340dee64e5eaeef8f7c, actions/cache@88522ab9f39a2ea568f7027eddc7d8d8bc9d59c8. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
|
Run the tests
3 failed
[chromium] › site-editor/pages.spec.js:252:2 › Pages › swap template and reset to default ──────
[chromium] › site-editor/site-editor-url-navigation.spec.js:23:3 › Site editor url navigation › Redirection after template and template part creation › Redirection after template creation
[chromium] › site-editor/templates.spec.js:13:2 › Templates › Create a custom template ─────────
3 skipped
176 passed (5.7m)
|
The logs for this run have expired and are no longer available.
Loading