Skip to content

Implement a means to communicate ATTA readiness and other environment details #9

@halindrome

Description

@halindrome

In the ATK ATTA branch at

# HACK to give us sufficient time to receive the document:load-complete
# accessibility event and compare it to the URL we set above.
@joanmarie mentions the hack that was required to ensure the DOMContentLoaded event has been received by the ATTA before we start testing.

The logic in the ATTAcomm.js library is to wait until the DOM Content is loaded (along with any other external test files) before doing ANYTHING. At that point, the library calls the "go" method, which then executes the following logic:

Send the "start" message to the ATTA

If no connection, no response, or a response that at all indicates the ATTA is not ready, to into manual testing mode.

Otherwise, go through each step in the list of tests in order, sending them to the ATTA and waiting for a reply or processing them locally, depending upon the type of step.

When all the steps are complete, send an 'end' message to the ATTA so it knows this test is terminating in case there is any cleanup needed (probably not, but it just seemed polite)

So... is there some way to delay the send of that start message so that the underlying system has an opportunity to get the windows painted etc? A .1 second delay or something to relinquish the processing and let the browser do its thing?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions