Skip to content

Commit

Permalink
More logs in the tests
Browse files Browse the repository at this point in the history
  • Loading branch information
martinRenou committed Oct 23, 2024
1 parent d24414b commit 66163fd
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions ui-tests/tests/sketcher.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ test.describe('Sketcher test', () => {
test.beforeEach(async ({ page, request }) => {
page.setViewportSize({ width: 1920, height: 1080 });
page.on('console', message => {
console.log('ERROR IN THE PAGE', message.text());
if (message.type() === 'error') {
errors += 1;
}
Expand Down
1 change: 1 addition & 0 deletions ui-tests/tests/tree.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ test.describe('Tree UI test', () => {
test.beforeEach(async ({ page, request }) => {
page.setViewportSize({ width: 1920, height: 1080 });
page.on('console', message => {
console.log('ERROR IN THE PAGE', message.text());
if (message.type() === 'error') {
errors += 1;
}
Expand Down
1 change: 1 addition & 0 deletions ui-tests/tests/ui.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ test.describe('UI Test', () => {
const logs: string[] = [];

page.on('console', message => {
console.log('ERROR IN THE PAGE', message.text());
logs.push(message.text());
});

Expand Down

0 comments on commit 66163fd

Please sign in to comment.