Skip to content

Commit

Permalink
chore: remove keep
Browse files Browse the repository at this point in the history
  • Loading branch information
hexf00 committed Nov 20, 2024
1 parent 7a161a5 commit a5272e1
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 52 deletions.
42 changes: 0 additions & 42 deletions tests/sheets/sheet-keep.spec.ts

This file was deleted.

20 changes: 10 additions & 10 deletions tests/sheets/sheet-scroll.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -292,11 +292,11 @@ const createTest = (row: number, col: number) => {
await page.waitForLoadState('networkidle');
// wait for canvas has data
await page.waitForFunction(() => {
const canvaslist = document.querySelectorAll('canvas');
if (canvaslist.length > 2) {
const imgData = canvaslist[2]!.getContext('2d')!.getImageData(40, 40, 1, 1).data;
const canvas = document.querySelector('.univer-workbench-container-canvas .univer-render-canvas');
if (canvas) {
const imgData = canvas!.getContext('2d')!.getImageData(40, 40, 1, 1).data;
console.log('canvaslist', imgData[0], imgData[1], imgData[2], imgData[3]);
return canvaslist[2]!.getContext('2d')!.getImageData(40, 40, 1, 1).data[3] !== 0;
return canvas!.getContext('2d')!.getImageData(40, 40, 1, 1).data[3] !== 0;
}
});
});
Expand All @@ -314,12 +314,12 @@ const createTest = (row: number, col: number) => {
} finally {

// Keep page
console.log('Test case completed. Browser instance is still open.');
await new Promise((resolve) => {
setTimeout(() => {
resolve(0);
}, 1000 * 60 * 10);
});
// console.log('Test case completed. Browser instance is still open.');
// await new Promise((resolve) => {
// setTimeout(() => {
// resolve(0);
// }, 1000 * 60 * 10);
// });
}
});
};
Expand Down

0 comments on commit a5272e1

Please sign in to comment.