Skip to content

Commit 1fe6cb4

Browse files
committed
test(@angular-devkit/build-angular): update HMR test to support new chrome driver
(cherry picked from commit 38acdb7)
1 parent b4ac3a7 commit 1fe6cb4

File tree

1 file changed

+3
-3
lines changed
  • packages/angular_devkit/build_angular/src/dev-server

1 file changed

+3
-3
lines changed

packages/angular_devkit/build_angular/src/dev-server/hmr_spec.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -97,13 +97,13 @@ describe('Dev Server Builder HMR', () => {
9797
expect(logs).toContain(`[HMR] css reload %s ${url}styles.css`);
9898
expect(logs).toContain('[HMR] App is up to date.');
9999

100-
const pTag = await page.evaluate(() => {
100+
const pTagColor = await page.evaluate(() => {
101101
const el = document.querySelector('p');
102102

103-
return JSON.parse(JSON.stringify(getComputedStyle(el)));
103+
return getComputedStyle(el).color;
104104
});
105105

106-
expect(pTag.color).toBe('rgb(255, 255, 0)');
106+
expect(pTagColor).toBe('rgb(255, 255, 0)');
107107
break;
108108
}
109109

0 commit comments

Comments
 (0)