ignore style sheet changes before the target DOM was serialized

The serialized DOM will contains all the styles, so this looks safe.
This commit is contained in:
Yanzhen Yu
2026-04-01 12:00:00 +08:00
parent 79a7191916
commit bd5aa59589
5 changed files with 37 additions and 23 deletions

View File

@@ -11,6 +11,8 @@ interface ISuite extends Suite {
}
describe('record integration tests', function(this: ISuite) {
this.timeout(10_000);
const getHtml = (fileName: string, options: recordOptions = {}): string => {
const filePath = path.resolve(__dirname, `./html/${fileName}`);
const html = fs.readFileSync(filePath, 'utf8');
@@ -214,4 +216,4 @@ describe('record integration tests', function(this: ISuite) {
const snapshots = await page.evaluate('window.snapshots');
assertSnapshot(snapshots, __filename, 'react-styled-components');
});
}).timeout(10000);
});