mirror of
https://github.com/nocodb/nocodb.git
synced 2026-04-25 04:16:05 +00:00
fix playwright test
This commit is contained in:
@@ -129,7 +129,12 @@ export class TopbarPage extends BasePage {
|
||||
|
||||
// verify downloaded content against expected content
|
||||
const expectedData = fs.readFileSync(`./fixtures/${verificationFile}`, 'utf8').replace(/\r/g, '').split('\n');
|
||||
const file = fs.readFileSync('./output/at.txt', 'utf8').replace(/\r/g, '').split('\n');
|
||||
let fileStr = fs.readFileSync('./output/at.txt', 'utf8').replace(/\r/g, '');
|
||||
// remove BOM
|
||||
if (fileStr.startsWith('\ufeff')) {
|
||||
fileStr = fileStr.replace('\ufeff', '');
|
||||
}
|
||||
const file = fileStr.split('\n');
|
||||
expect(file).toEqual(expectedData);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user