Skip to content

Commit

Permalink
log error in appear test
Browse files Browse the repository at this point in the history
  • Loading branch information
KingSora committed May 9, 2024
1 parent db95b79 commit 6bf33a3
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 2 deletions.
Expand Up @@ -407,8 +407,13 @@ startBtn.addEventListener('click', async () => {
await runHideWrapper();

setTestResult(true);
} catch (exception) {
} catch (e: any) {
setTestResult(false);
throw exception;
console.error(e.message, {
expected: e.expected,
actual: e.actual,
operator: e.operator,
});
throw e;
}
});
Expand Up @@ -4,6 +4,10 @@ import { test } from '@playwright/test';
playwrightRollup();

test.describe('appear', () => {
test.beforeEach(({ page }) => {
page.mouse.move(0, 0);
});

test('default', async ({ page }) => {
await expectSuccess(page);
});
Expand Down

0 comments on commit 6bf33a3

Please sign in to comment.