Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Using the package with Badeball Preprocessor #439

Open
ebbimola opened this issue Jul 30, 2024 · 0 comments
Open

Using the package with Badeball Preprocessor #439

ebbimola opened this issue Jul 30, 2024 · 0 comments
Assignees
Labels
Status: help wanted Extra attention is needed Type: enhancement New feature or request.

Comments

@ebbimola
Copy link

Description
The package does not seem to be compatible with @badeball/cypress-cucumber-preprocessor

config:
const { ensureBrowserFlags } = require('@neuralegion/cypress-har-generator');

on('before:browser:launch', (browser = {}, launchOptions) => {
ensureBrowserFlags(browser, launchOptions);
return launchOptions;
});

Please call the 'ensureBrowserFlags' before attempting to start the recording.
cy.task('saveHar')
failed with the following error: The task 'saveHar' was not handled in the setupNodeEvents method. The following tasks are registered: browserstack_log, cypress-cucumber-preprocessor:spec-envelopes, cypress-cucumber-preprocessor:test-case-started, cypress-cucumber-preprocessor:test-step-started, cypress-cucumber-preprocessor:test-step-finished, cypress-cucumber-preprocessor:test-case-finished, cypress-cucumber-preprocessor:create-string-attachment Fix this in your setupNodeEvents method here: /cypress.config.js Because this error occurred during a after all hook we are skipping all of the remaining tests. Although you have test retries enabled, we do not retry tests when before all or after all hooks

@ebbimola ebbimola added Status: help wanted Extra attention is needed Type: enhancement New feature or request. labels Jul 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Status: help wanted Extra attention is needed Type: enhancement New feature or request.
Projects
None yet
Development

No branches or pull requests

2 participants