mirror of
https://github.com/WordPress/create-block-theme.git
synced 2026-07-28 22:45:03 +08:00
Some checks failed
Run checks / Lint (push) Failing after -8h1m22s
Run checks / Compute previous WordPress version (push) Successful in -8h1m22s
Run checks / PHP 7.4 (push) Failing after -8h1m22s
Run checks / PHP 7.4 (WP previous major version) (push) Failing after -8h1m22s
Run checks / PHP 8.0 (push) Failing after -8h1m22s
Run checks / PHP 8.0 (WP previous major version) (push) Failing after -8h1m22s
Run checks / PHP 8.1 (push) Failing after -8h1m22s
Run checks / PHP 8.1 (WP previous major version) (push) Failing after -8h1m22s
Run checks / E2E Tests (push) Failing after 7s
Run checks / PHP 8.2 (push) Failing after -8h1m22s
Run checks / PHP 8.2 (WP previous major version) (push) Failing after -8h1m22s
Run checks / PHP 8.3 (WP previous major version) (push) Failing after -8h1m22s
Run checks / PHP 8.3 (push) Failing after 5s
* Add e2e tests
* Add e2e tests to CI
* Fix lint errors
* Use psge.once()
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
* Remove unnecessary test
* Attempt to fix linting error
* Remove last()
* Delete test theme in afterAll
* Add @playwright/test
* Also delete the theme in the beforeAll step
* Test the theme was activated
* Also test opening the plugin sidebar
* Attempt to fix landing-page timeout
* Test that zip file was downloaded
* Align test scripts closer to GB
* Update specs/landing-page.spec.js
Co-authored-by: Jerry Jones <jones.jeremydavid@gmail.com>
* Revert "Update specs/landing-page.spec.js"
This reverts commit b0e688fea0.
* Only run delete theme command if theme exists
---------
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Jerry Jones <jones.jeremydavid@gmail.com>
29 lines
787 B
JavaScript
29 lines
787 B
JavaScript
/**
|
|
* WordPress dependencies
|
|
*/
|
|
const { test, expect } = require( '@wordpress/e2e-test-utils-playwright' );
|
|
|
|
test.describe( 'Create Block Theme — Site Editor Sidebar', () => {
|
|
test( 'plugin sidebar button is present in the editor toolbar', async ( {
|
|
admin,
|
|
page,
|
|
} ) => {
|
|
await admin.visitSiteEditor( { canvas: 'edit' } );
|
|
await expect(
|
|
page.getByRole( 'button', { name: 'Create Block Theme' } )
|
|
).toBeVisible();
|
|
} );
|
|
|
|
test( 'clicking the toolbar button opens the plugin sidebar', async ( {
|
|
admin,
|
|
page,
|
|
} ) => {
|
|
await admin.visitSiteEditor( { canvas: 'edit' } );
|
|
await page
|
|
.getByRole( 'button', { name: 'Create Block Theme' } )
|
|
.click();
|
|
await expect(
|
|
page.getByRole( 'button', { name: 'Save Changes to Theme' } )
|
|
).toBeVisible();
|
|
} );
|
|
} );
|