sridharbandi / Java-a11y

Accessibility Automated Testing with Java Selenium
https://sridharbandi.github.io/Java-a11y/
MIT License
12 stars 12 forks source link

HTML_CodeSniffer not working #12

Closed kaviarasan96 closed 1 year ago

kaviarasan96 commented 4 years ago

https://squizlabs.github.io/HTML_CodeSniffer/build/HTMLCS.js is blocked for me as im using in private network.Is there any other way to overcome the issue.

sridharbandi commented 4 years ago

@kaviarasan96 Currently there is no other way. Can you talk to your n/w team to whitelist it? I will consider this a feature in the next releases.

oallauddin commented 1 year ago

@kaviarasan96 try using local copy of the js file as a test resource. your test resources should override those in java-a11y.

  1. use java-a11y as test dependency
    <dependency>
    <groupId>io.github.sridharbandi</groupId>
    <artifactId>java-a11y</artifactId>
    <version>3.0.0</version>
    <scope>test</scope>
    </dependency>
  2. download https://squizlabs.github.io/HTML_CodeSniffer/build/HTMLCS.js to src/test/resources/build/HTMLCS.js
  3. download https://github.com/sridharbandi/Java-a11y/blob/master/src/main/resources/js/htmlcs.js to src/test/resources/js/htmlcs.js
  4. replace https://squizlabs.github.io/HTML_CodeSniffer/build/HTMLCS.js with ./build/HTMLCS.js in src/test/resources/js/htmlcs.js
  5. run your test
sridharbandi commented 1 year ago

Closing as there is no activity