Skip to content

Commit

Permalink
Added log
Browse files Browse the repository at this point in the history
  • Loading branch information
can-angun committed Dec 23, 2024
1 parent a675ff6 commit 9bdc196
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
1 change: 1 addition & 0 deletions ui-tests/cypress.config.sample.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ module.exports = defineConfig({
});
on('task', {
log(message) {
cy.log('LOOOOOOOOOOOOOOGGGGGG');
fs.appendFileSync('cypress-console.log', `${message}\n`);
return null;
},
Expand Down
12 changes: 6 additions & 6 deletions ui-tests/cypress/e2e/onboarding/onboarding.cy.js
Original file line number Diff line number Diff line change
Expand Up @@ -439,12 +439,12 @@ describe('Complete Onboarding', () => {
// reportsPageHelpers.verifyEmptyPageElements();
navigationHelpers.goToHooksPage();
//hooksPageHelpers.verifyFullDataPageElements(); //TODO: Data is not being generated with the populator. Need to generate the data
cy.intercept('**/api/**', (req) => {
req.on('response', (res) => {
cy.task('log', `Request URL: ${req.url}`);
cy.task('log', `Response Status: ${res.statusCode}`);
});
});
// cy.intercept('**/api/**', (req) => {
// req.on('response', (res) => {
// cy.task('log', `Request URL: ${req.url}`);
// cy.task('log', `Response Status: ${res.statusCode}`);
// });
// });
hooksPageHelpers.verifyEmptyPageElements();
navigationHelpers.goToDbViewerPage();
dbCountlyPageHelpers.verifyFullDataPageElements();
Expand Down

0 comments on commit 9bdc196

Please sign in to comment.