Skip to content

Commit e01a2c4

Browse files
committed
fix(core): ssrpage
1 parent 4464f24 commit e01a2c4

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

tools/pfe-tools/test/playwright/SSRPage.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,9 @@ export class SSRPage {
8282
javaScriptEnabled: false,
8383
}))
8484
.newPage();
85+
if (this.config.demoContent) {
86+
await this.page.goto(`${this.host}test.html`);
87+
}
8588
}
8689

8790
private async initServer() {
@@ -135,6 +138,8 @@ export class SSRPage {
135138
}
136139

137140
async updateCompleteFor(tagName: string): Promise<void> {
141+
await this.initServer();
142+
await this.initPage();
138143
await this.page.$eval(tagName, el => (el as LitElement).updateComplete);
139144
}
140145
}

0 commit comments

Comments
 (0)