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

fix: [#315] conditionally inject NWTL and simmer.js #316

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

davidholyko
Copy link

@davidholyko davidholyko commented Mar 5, 2025

Fixes #315

@@ -15,9 +15,20 @@ const SIMMERJS = fs.readFileSync(require.resolve('simmerjs/dist/simmer.js')).toS
let _config = null;

function injectNWTL(browser) {
browser.execute(DOM_TESTING_LIBRARY_UMD);
const shouldInject = browser.execute(function () {
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Related to this issue

#315

@davidholyko davidholyko changed the title fix: conditionally inject NWTL and simmer.js fix: [#315] conditionally inject NWTL and simmer.js Mar 5, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Nightwatch Testing Library injects testing library and simmer on each call of getByRole, getByText etc
1 participant