Closed idanElitzur closed 1 year ago
please your help @adamgruber 🙏
I'm not sure this line is correct:
import * as addContext from './node_modules/mochawesome/src/addContext';
Have you tried replacing with this?
const addContext = require('mochawesome/addContext');
Thanks, It's solved the type error but the screenshots are not attached to the report. Even there is no any broken image or 404 responses in the browser console. Do you maybe know what missed in my configuration above?
I guess the root cause is related that I'm using on('after:spec')
because Cypress v10x configuration in not support in test:after:run
anymore
@adamgruber
Sorry I'm not too familiar with the cypress changes since I don't use it.
OK Thanks a lot anyway, Love your reporter! Shana tova 🍎 🍯 @adamgruber
I'll close this one.
Describe the bug Since the latest Cypress version the 'after:run' API configuration is changed and the mochawesome addContext configureation is now part of the cypress config file and not in the support file anymore. So I've tried to refactor the configuration for I can attach the failed tests screenshoots but it yell about
Code Reproduce
Expected behavior A clear and concise description of what you expected to happen.
Screenshots If applicable, add screenshots to help explain your problem.
Environment (please complete the following information):
Additional context Add any other context about the problem here.