Skip to content

Commit ac42c84

Browse files
committed
See if shorthand param without blueprint avoids trying to use PHP 8.3 which is missing from zipped old site build
1 parent d8ac5ca commit ac42c84

File tree

1 file changed

+1
-28
lines changed

1 file changed

+1
-28
lines changed

packages/playground/website/playwright/e2e/deployment.spec.ts

Lines changed: 1 addition & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -4,33 +4,7 @@ import { test, expect } from '../playground-fixtures.ts';
44
import { startVersionSwitchingServer as startServer } from '../version-switching-server.ts';
55

66
const port = 7999;
7-
const blueprint = {
8-
preferredVersions: {
9-
php: '8.0',
10-
wp: 'latest',
11-
},
12-
// Explicitly disable login because we have had trouble with
13-
// our older WP reference build refusing to login because the
14-
// admin email verification had expired.
15-
login: false,
16-
steps: [
17-
{
18-
step: 'setSiteOptions',
19-
options: {
20-
// Set the admin email lifespan to the maximum value to prevent
21-
// the admin email from expiring and causing the login step to fail.
22-
// https://github.com/WordPress/wordpress-develop/blob/f008049c49195dbfa954631fecc7fbfff0cc8ca2/src/wp-login.php#L1379-L1388
23-
admin_email_lifespan: '2147483647',
24-
},
25-
},
26-
],
27-
};
28-
const url = new URL(`http://localhost:${port}`);
29-
// TODO: Say why
30-
url.searchParams.set(
31-
'blueprint-url',
32-
`data:application/json;base64,${btoa(JSON.stringify(blueprint))}`
33-
);
7+
const url = new URL(`http://localhost:${port}/?login=no`);
348

359
const maxDiffPixels = 4000;
3610

@@ -81,7 +55,6 @@ for (const cachingEnabled of [true, false]) {
8155
await expect(page).toHaveScreenshot('website-old.png', {
8256
maxDiffPixels,
8357
});
84-
return;
8558

8659
server!.switchToNewVersion();
8760
// Reload the page instead of navigating to the URL again

0 commit comments

Comments
 (0)