Skip to content

Add cypress tests to validate docs pages #7254

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

Open
wants to merge 12 commits into
base: master
Choose a base branch
from

Conversation

sean1588
Copy link
Contributor

@sean1588 sean1588 commented Apr 15, 2025

fixes: #6774

Adds a schema to represent a test provider that we can use to validate e2e from schema file to html rendered page is structured and contains all the elements as we expect.

If we want to go as far as rendering everything from overview page to clicking through navigation and then clicking through all the resources, then we could potentially do that, though not sure if that is necessary as what we really want to test is the pages generated contain everything we expect to guard against regressions. Though if we feel this is necessary we can follow on with that.

TODO:

  • add testing for function pages (can possibly follow up with this)

Copy link

Your site preview for commit 3be2dba is ready! 🎉

http://registry--origin-pr-7254-3be2dba9.s3-website.us-west-2.amazonaws.com/registry.

@sean1588 sean1588 changed the title Add visual tests registry Add cypress tests to validate docs pages Apr 15, 2025
@iwahbe
Copy link
Member

iwahbe commented Apr 16, 2025

This was originally motivated by #6641, and it looks like the fix for #6641 (#6642) reverts cleanly. Does this test fail if #6642 is reverted?

Copy link

Your site preview for commit 173cb54 is ready! 🎉

http://registry--origin-pr-7254-173cb54e.s3-website.us-west-2.amazonaws.com/registry.

@sean1588 sean1588 force-pushed the sean/add-visual-tests-registry branch from 173cb54 to af5faee Compare April 17, 2025 00:09
Copy link

Your site preview for commit af5faee is ready! 🎉

http://registry--origin-pr-7254-af5faee0.s3-website.us-west-2.amazonaws.com/registry.

empty

check for example section
@sean1588 sean1588 force-pushed the sean/add-visual-tests-registry branch from 87ed893 to babe1b0 Compare April 17, 2025 00:42
@sean1588
Copy link
Contributor Author

@iwahbe - good idea! I reverted that commit locally and was able to repro. I also added an extra resource to the schema, one with the <!-- Start PulumiCodeChooser --> fences and one with the {{% examples %}} fences as those tend to be handled differently and are still in use depending on the provider. I also wired it into the workflow.

@sean1588 sean1588 marked this pull request as ready for review April 17, 2025 00:44
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.

Add visual tests to the registry
2 participants