You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There is a need for testing of new front end components. Until there is a complete solution, there is a workaround that checks every page in the sitemap and ensure that a certain element exists in the site. The code was originally provided by @jonathanbobel and I converted to a gist that can be downloaded here.
To use this code, do the following:
Download the code snippet mentioned above. The file is called "sitemap-element-checker.js".
Add that file to the root of the 10x project.
Open the file site.json and temporarily change the value of "url" to "http://localhost:8080". Save the file.
Open a new terminal and run the following:
node sitemap-element-checker.js
It will list all the pages in the site and state whether or not the element exists in the page.
The text was updated successfully, but these errors were encountered:
There is a need for testing of new front end components. Until there is a complete solution, there is a workaround that checks every page in the sitemap and ensure that a certain element exists in the site. The code was originally provided by @jonathanbobel and I converted to a gist that can be downloaded here.
To use this code, do the following:
node sitemap-element-checker.js
It will list all the pages in the site and state whether or not the element exists in the page.
The text was updated successfully, but these errors were encountered: