Add cypress tests to validate docs pages
fixes: https://github.com/pulumi/registry/issues/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)
Your site preview for commit 3be2dba9 is ready! :tada:
http://registry--origin-pr-7254-3be2dba9.s3-website.us-west-2.amazonaws.com/registry.
This was originally motivated by https://github.com/pulumi/registry/issues/6641, and it looks like the fix for #6641 (https://github.com/pulumi/registry/pull/6642) reverts cleanly. Does this test fail if #6642 is reverted?
Your site preview for commit 173cb54e is ready! :tada:
http://registry--origin-pr-7254-173cb54e.s3-website.us-west-2.amazonaws.com/registry.
Your site preview for commit af5faee0 is ready! :tada:
http://registry--origin-pr-7254-af5faee0.s3-website.us-west-2.amazonaws.com/registry.
@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.
Your site preview for commit 2de1474f is ready! :tada:
http://registry--origin-pr-7254-2de1474f.s3-website.us-west-2.amazonaws.com/registry.
Your site preview for commit 4c9d36fd is ready! :tada:
http://registry--origin-pr-7254-4c9d36fd.s3-website.us-west-2.amazonaws.com/registry.
Your site preview for commit 27febda3 is ready! :tada:
http://registry--origin-pr-7254-27febda3.s3-website.us-west-2.amazonaws.com/registry.
Your site preview for commit cdd2500b is ready! :tada:
http://registry--origin-pr-7254-cdd2500b.s3-website.us-west-2.amazonaws.com/registry.
Your site preview for commit ae776250 is ready! :tada:
http://registry--origin-pr-7254-ae776250.s3-website.us-west-2.amazonaws.com/registry.
Your site preview for commit 1a37538b is ready! :tada:
http://registry--origin-pr-7254-1a37538b.s3-website.us-west-2.amazonaws.com/registry.
Your site preview for commit 3016cea0 is ready! :tada:
http://registry--origin-pr-7254-3016cea0.s3-website.us-west-2.amazonaws.com/registry.
Site previews for this pull request have been removed. ✨