-
Notifications
You must be signed in to change notification settings - Fork 364
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
Occasional regression test timeout when waiting for link to load #1594
Comments
@spectranaut I guess I was able to merge both of those PRs even with the failures because we haven't yet changed the branch policies (#1548). Is that right @nschonni? I have no problem with a no external link policy in examples. That does seem like it would be a bit of work to clean up. There are several examples with external links. How to best clean up the external links is a good question. In some cases, like the disclosure nav example and new tree nav example that is in progress, we use the link to load some content. In other places, like the grid of search results, the links are just placeholders and don't have to do anything. Could we just have them all popup an alert that says that if this were a real link it would go some place? Or, should they just do nothing at all? @jongund, what do you think? Would a stopgap be to let those tests fail until we get the external links removed? |
Correct, none of the jobs are marked as required currently except for Travis. I left a note over there for Michael to at least make Travis no longer required. I'm not sure if you wanted to make the new GitHub jobs required, but you can leave a note there if you do. |
@mcking65 a stopgap could be to mark those tests as failing or comment them out, it's only a handful of tests. I don't have a problem doing that as long as it's a priority to get this fixed in the next month or so, which I think we definitely can. When commenting out I can create a list on this issue to "audit" of all external links in examples here and we can decide something reasonable to do. I like the idea of keeping links to within the APG. I think we should think about the effect of the links in the ARIA-AT repo and also when imported into codepen. Maybe we should just always link back to the spec, maybe we should always link to another dummy page, or maybe we should always link to a hashref? I think turning the link into a popup would be a bit weird for trying to get a feel for the user experience of the widget. |
Examples that use external links
Examples that use interal links
|
The answer is in the audit! We don't need to change our example policy, we can just change test: we can update the url on the external links to be the same page + a url fragment, like we do in the test in tree grid. It's just three tests so it should be quick and easy :) |
@spectranaut love the approach! |
* Fixes #1594 by changing link tests to not follow external links. * Adds replace external links helper function
We have a few times seen failures related to timeouts when trying to test functionality in an APG example that results in following a link to an external page.
Here is an example: bocoup#43 You can see if fail on the first commit and pass on the next commit. (The commits just include debugging statements in them). I originally saw this failure in #1424.
When switching from travis to github checks, we saw some failures to follow through on links and discussed options: #1515
One option is to have a policy of not having external links in our example widgets.
The text was updated successfully, but these errors were encountered: