How to e2e test websites with disabled JavaScript and noscript tags?

Viewed 790

I want to e2e test a website like when a user visits it with disabled javascript and/or some scripts blocked.

cypress.io does not (officially) support testing websites with disabled JS so therefore one can not e2e test what users would see in case they are securely visiting the website without JS enabled.

Nightmare JS seems to support it via browser options to disable JS for each Nightmare instance but I haven't tried its performance yet.

Any suggestions for a 2e2 testing tool that allows my scenario to be tested?

1 Answers

Some testing frameworks do not support this scenario when JavaScript is disabled because they inject their scripts in the tested pages and run them during the test execution. For instance, TestCafe requires JavaScript to inject its scripts.

Related