e2e: Add basic tests for settings page #271
Annotations
5 errors and 1 notice
|
Running e2e tests:
test/e2e/test.spec.js#L79
1) [chromium] › test.spec.js:76:7 › Custom HTML Block Extension › Settings page › should be rendered
Error: Timed out 5000ms waiting for expect(locator).toBeVisible()
Locator: getByRole('button', { name: 'Save settings' })
Expected: visible
Received: hidden
Call log:
- expect.toBeVisible with timeout 5000ms
- waiting for getByRole('button', { name: 'Save settings' })
77 | await admin.visitAdminPage( 'options-general.php?page=custom-html-block-extension' );
78 | // Editor config tab
> 79 | await expect( page.getByRole( 'button', { name: 'Save settings' } ) ).toBeVisible();
| ^
80 | // Tools tab
81 | await page.getByRole( 'tab', { name: 'Tools' } ).click();
82 | await expect( page.getByRole( 'button', { name: 'Export', exact: true } ) ).toBeVisible();
at /home/runner/work/custom-html-block-extension/custom-html-block-extension/test/e2e/test.spec.js:79:74
|
Running e2e tests:
test/e2e/test.spec.js#L79
1) [chromium] › test.spec.js:76:7 › Custom HTML Block Extension › Settings page › should be rendered
Retry #1 ───────────────────────────────────────────────────────────────────────────────────────
Error: Timed out 5000ms waiting for expect(locator).toBeVisible()
Locator: getByRole('button', { name: 'Save settings' })
Expected: visible
Received: hidden
Call log:
- expect.toBeVisible with timeout 5000ms
- waiting for getByRole('button', { name: 'Save settings' })
77 | await admin.visitAdminPage( 'options-general.php?page=custom-html-block-extension' );
78 | // Editor config tab
> 79 | await expect( page.getByRole( 'button', { name: 'Save settings' } ) ).toBeVisible();
| ^
80 | // Tools tab
81 | await page.getByRole( 'tab', { name: 'Tools' } ).click();
82 | await expect( page.getByRole( 'button', { name: 'Export', exact: true } ) ).toBeVisible();
at /home/runner/work/custom-html-block-extension/custom-html-block-extension/test/e2e/test.spec.js:79:74
|
Running e2e tests:
test/e2e/test.spec.js#L79
1) [chromium] › test.spec.js:76:7 › Custom HTML Block Extension › Settings page › should be rendered
Retry #2 ───────────────────────────────────────────────────────────────────────────────────────
Error: Timed out 5000ms waiting for expect(locator).toBeVisible()
Locator: getByRole('button', { name: 'Save settings' })
Expected: visible
Received: hidden
Call log:
- expect.toBeVisible with timeout 5000ms
- waiting for getByRole('button', { name: 'Save settings' })
77 | await admin.visitAdminPage( 'options-general.php?page=custom-html-block-extension' );
78 | // Editor config tab
> 79 | await expect( page.getByRole( 'button', { name: 'Save settings' } ) ).toBeVisible();
| ^
80 | // Tools tab
81 | await page.getByRole( 'tab', { name: 'Tools' } ).click();
82 | await expect( page.getByRole( 'button', { name: 'Export', exact: true } ) ).toBeVisible();
at /home/runner/work/custom-html-block-extension/custom-html-block-extension/test/e2e/test.spec.js:79:74
|
Running e2e tests
Process completed with exit code 1.
|
Running e2e tests
1 failed
[chromium] › test.spec.js:76:7 › Custom HTML Block Extension › Settings page › should be rendered
3 passed (34.0s)
|
Loading