Skip to content

Commit e4f3510

Browse files
authored
Merge 1d3ad4a into 2ab316b
2 parents 2ab316b + 1d3ad4a commit e4f3510

File tree

5 files changed

+20
-11
lines changed

5 files changed

+20
-11
lines changed

.buildkite/pipeline.yml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,12 @@ steps:
5656
- label: E2E Tests on {{matrix}}
5757
key: e2e_tests
5858
command: |
59+
# Windows-specific setup
60+
if [ "{{matrix}}" = "windows" ]; then
61+
# prepare_windows_host_for_app_distribution.ps1 comes from CI Toolkit Plugin
62+
powershell -Command "& 'prepare_windows_host_for_app_distribution.ps1' -InstallPython \$true -InstallNativeCompilationTools \$true"
63+
fi
64+
5965
# call with bash explicitly because we run this on Windows, too
6066
bash .buildkite/commands/install-node-dependencies.sh
6167
export IS_DEV_BUILD=true
@@ -65,6 +71,8 @@ steps:
6571
npm run e2e
6672
artifact_paths:
6773
- test-results/**/*.zip
74+
- test-results/**/*.png
75+
- test-results/**/*error-context.md
6876
plugins: [$CI_TOOLKIT_PLUGIN, $NVM_PLUGIN]
6977
agents:
7078
queue: "{{matrix}}"
@@ -73,7 +81,7 @@ steps:
7381
DEBUG: "pw:browser"
7482
matrix:
7583
- mac
76-
#- windows
84+
- windows
7785
notify:
7886
- github_commit_status:
7987
context: All E2E Tests

e2e/blueprints.test.ts

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ test.describe( 'Blueprints', () => {
2424
}
2525

2626
const siteContent = new SiteContent( session.mainWindow, 'My WordPress Website' );
27-
await expect( siteContent.siteNameHeading ).toBeVisible( { timeout: 60_000 } );
27+
await expect( siteContent.siteNameHeading ).toBeVisible( { timeout: 120_000 } );
2828
} );
2929

3030
test.afterAll( async () => {
@@ -55,7 +55,7 @@ test.describe( 'Blueprints', () => {
5555

5656
// Wait for site to be created and running
5757
const siteContent = new SiteContent( session.mainWindow, siteName );
58-
await expect( siteContent.runningButton ).toBeAttached( { timeout: 60_000 } );
58+
await expect( siteContent.runningButton ).toBeAttached( { timeout: 120_000 } );
5959

6060
// Navigate to Settings tab to get admin URL
6161
const settingsTab = await siteContent.navigateToTab( 'Settings' );
@@ -90,7 +90,7 @@ test.describe( 'Blueprints', () => {
9090

9191
// Wait for site to be created and running
9292
const siteContent = new SiteContent( session.mainWindow, siteName );
93-
await expect( siteContent.runningButton ).toBeAttached( { timeout: 60_000 } );
93+
await expect( siteContent.runningButton ).toBeAttached( { timeout: 120_000 } );
9494

9595
// Navigate to Settings tab to get admin URL
9696
const settingsTab = await siteContent.navigateToTab( 'Settings' );
@@ -127,7 +127,7 @@ test.describe( 'Blueprints', () => {
127127

128128
// Wait for site to be created and running
129129
const siteContent = new SiteContent( session.mainWindow, siteName );
130-
await expect( siteContent.runningButton ).toBeAttached( { timeout: 60_000 } );
130+
await expect( siteContent.runningButton ).toBeAttached( { timeout: 120_000 } );
131131

132132
// Navigate to Settings tab to get admin URL
133133
const settingsTab = await siteContent.navigateToTab( 'Settings' );
@@ -162,7 +162,7 @@ test.describe( 'Blueprints', () => {
162162

163163
// Wait for site to be created and running
164164
const siteContent = new SiteContent( session.mainWindow, siteName );
165-
await expect( siteContent.runningButton ).toBeAttached( { timeout: 60_000 } );
165+
await expect( siteContent.runningButton ).toBeAttached( { timeout: 120_000 } );
166166

167167
// Navigate to Settings tab to get admin URL
168168
const settingsTab = await siteContent.navigateToTab( 'Settings' );
@@ -199,7 +199,7 @@ test.describe( 'Blueprints', () => {
199199

200200
// Wait for site to be created and running
201201
const siteContent = new SiteContent( session.mainWindow, siteName );
202-
await expect( siteContent.runningButton ).toBeAttached( { timeout: 60_000 } );
202+
await expect( siteContent.runningButton ).toBeAttached( { timeout: 120_000 } );
203203

204204
// Navigate to Settings tab to verify site is accessible
205205
const settingsTab = await siteContent.navigateToTab( 'Settings' );
@@ -237,7 +237,7 @@ test.describe( 'Blueprints', () => {
237237

238238
// Wait for site to be created and running
239239
const siteContent = new SiteContent( session.mainWindow, siteName );
240-
await expect( siteContent.runningButton ).toBeAttached( { timeout: 60_000 } );
240+
await expect( siteContent.runningButton ).toBeAttached( { timeout: 120_000 } );
241241

242242
// Navigate to Settings tab to verify site is accessible
243243
const settingsTab = await siteContent.navigateToTab( 'Settings' );

e2e/sites.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ test.describe( 'Servers', () => {
3030
}
3131

3232
const siteContent = new SiteContent( session.mainWindow, defaultSiteName );
33-
await expect( siteContent.siteNameHeading ).toBeVisible( { timeout: 60_000 } );
33+
await expect( siteContent.siteNameHeading ).toBeVisible( { timeout: 120_000 } );
3434
} );
3535

3636
test.afterAll( async () => {
@@ -52,7 +52,7 @@ test.describe( 'Servers', () => {
5252

5353
// Check the site is running
5454
const siteContent = new SiteContent( session.mainWindow, siteName );
55-
await expect( siteContent.runningButton ).toBeAttached( { timeout: 30_000 } );
55+
await expect( siteContent.runningButton ).toBeAttached( { timeout: 120_000 } );
5656
expect( await siteContent.siteNameHeading ).toHaveText( siteName );
5757

5858
// Check a WordPress site has been created

playwright.config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ export default defineConfig( {
1212
trace: 'retain-on-failure',
1313
},
1414

15-
timeout: 60_000,
15+
timeout: 180_000,
1616

1717
// Global expect timeout for all assertions
1818
expect: {

src/lib/windows-helpers.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ export async function promptWindowsSpeedUpSites( {
1414

1515
if (
1616
process.platform !== 'win32' ||
17+
process.env.E2E ||
1718
( skipIfAlreadyPrompted && typeof userData.promptWindowsSpeedUpResult !== 'undefined' )
1819
) {
1920
return;

0 commit comments

Comments
 (0)