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(Sitemap): Use response data #2272

Merged
merged 2 commits into from
Mar 24, 2022
Merged

Conversation

tvdeyen
Copy link
Member

@tvdeyen tvdeyen commented Mar 24, 2022

What is this pull request for?

Our ajax library returns the parsed json as response.data. The former was part of the fetch() api that we used before.

Checklist

@tvdeyen tvdeyen added this to the 6.0 milestone Mar 24, 2022
@tvdeyen tvdeyen requested a review from a team March 24, 2022 09:30
@tvdeyen
Copy link
Member Author

tvdeyen commented Mar 24, 2022

This needs #2271

Our ajax library returns the parsed json as response.data. The former was part of the fetch() api that we used before.
Enable forgery protection so we have a csrf-token in the dom that our ajax lib
expects.

Also wait for the sitemap spinner to disappear
before acting with the dom with capybara
@tvdeyen tvdeyen merged commit e88a3a5 into AlchemyCMS:main Mar 24, 2022
@tvdeyen tvdeyen deleted the fix-sitemap-response branch March 24, 2022 11:51
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.

2 participants