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

Create a way to test new components #163

Open
natashapl opened this issue May 9, 2024 · 0 comments
Open

Create a way to test new components #163

natashapl opened this issue May 9, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@natashapl
Copy link
Contributor

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:

  1. Download the code snippet mentioned above. The file is called "sitemap-element-checker.js".
  2. Add that file to the root of the 10x project.
  3. Open the file site.json and temporarily change the value of "url" to "http://localhost:8080". Save the file.
  4. 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.

@natashapl natashapl added the enhancement New feature or request label May 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant