Code Monkey home page Code Monkey logo

Comments (6)

aarongoldenthal avatar aarongoldenthal commented on May 18, 2024 1

@drnickyoung If that's a copy from your configuration, check the spelling of the "defaults" property.

from pa11y-ci.

aarongoldenthal avatar aarongoldenthal commented on May 18, 2024

Did you set ignoreHTTPSErrors as part of the chromeLaunchConfig? This works for me:

{
    "defaults": {
        "chromeLaunchConfig": {
            "ignoreHTTPSErrors": true
        }
    }
}

from pa11y-ci.

AssassinLV avatar AssassinLV commented on May 18, 2024

I've tried - but in the ends I just made a new self signed certificate and added it on "Trusted Root Authorities" :)

from pa11y-ci.

drnickyoung avatar drnickyoung commented on May 18, 2024

Was this ever resolved, using the config scripts that is? I am facing the same error using:

{
    "default": {
        "chromeLaunchConfig": {
            "ignoreHTTPSErrors": true
        },
        "standard": "WCAG2AA",
        "timeout": 5000,
        "wait": 2000,
        "page": {
            "viewport": {
                "width": 320,
                "height": 480
            }
        }
    },
    "urls": [
        "https://xyz/",
        "https://xyz/about"
    ]
}

and getting this back:

Errors in https://xyz/:

 • Error: net::ERR_CERT_AUTHORITY_INVALID at https://xyz/

I have used ignoreHTTPSErrors in pa11y-dashboard config and it works fine at ignoring the certificate issue. Just Pa11y-ci doesn't seem to use it in the config, ot I am doing something wrong.

from pa11y-ci.

drnickyoung avatar drnickyoung commented on May 18, 2024

@aarongoldenthal going by the main readme "default" is correct. Changing it "defaults" creates the error:

Errors in https://xyz

 • Error: page.on is not a function

Now on investigating further I see "page" is and issue, presumably it is not supported or there is some other issue. Anyway together with your suggestion I now have a working set-up:

{
    "defaults": {
        "chromeLaunchConfig": {
            "ignoreHTTPSErrors": true
        },
        "standard": "WCAG2AA",
        "timeout": 10000,
        "wait": 5000
    },
    "urls": [
        "https://xyz",
        "https://xyz/about"
    ]
}

Would suggest someone reviews the main readme and updates it, default to defaults (or point out what I have got wrong!).

from pa11y-ci.

josebolos avatar josebolos commented on May 18, 2024

Thanks for creating this issue. It looks like this is now fixed, feel free to reopen the issue if not.

from pa11y-ci.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.