Skip to content
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

fix: only set allowedOrigin when needed #248

Merged
merged 19 commits into from Sep 19, 2022
Merged

Conversation

michael-siek
Copy link
Member

No description provided.

@CLAassistant
Copy link

CLAassistant commented Sep 16, 2022

CLA assistant check
All committers have signed the CLA.

@michael-siek michael-siek marked this pull request as ready for review September 19, 2022 15:10
@michael-siek michael-siek requested a review from a team September 19, 2022 19:41
$driver.get fixture "/index.html"
run_axe
allowed_origin = get_allowed_origin.first()
expect(allowed_origin).to eq "http://localhost:8000"

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do you think we should be checking the get_allowed_origin.length here as well? Axe-core does .push and it might be forward-thinking to ensure that there is only one for this series of checks

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Based on the examples we should just check the 0th array https://github.com/dequelabs/axe-test-fixtures/blob/v1/README.md?plain=1#L440

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Feel free to dismiss. I see why that's the case.

Copy link

@dbowling dbowling left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't think you need the .length now that there isn't a .first, but it LGTM as-is.

@michael-siek michael-siek merged commit 8fa09ad into develop Sep 19, 2022
@michael-siek michael-siek deleted the fix/set-allowed-origin branch September 19, 2022 20:38
Zidious pushed a commit that referenced this pull request Oct 25, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants