-
Notifications
You must be signed in to change notification settings - Fork 193
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore(deps): bump unist-util-visit from 4.1.2 to 5.0.0 (#2524)
* chore(deps): bump unist-util-visit from 4.1.2 to 5.0.0 Bumps [unist-util-visit](https://github.com/syntax-tree/unist-util-visit) from 4.1.2 to 5.0.0. - [Release notes](https://github.com/syntax-tree/unist-util-visit/releases) - [Commits](syntax-tree/unist-util-visit@4.1.2...5.0.0) --- updated-dependencies: - dependency-name: unist-util-visit dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <[email protected]> * tests: add regression tests around docs instance cross-linking --------- Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Steven Hicks <[email protected]> Co-authored-by: Steven Hicks <[email protected]>
- Loading branch information
1 parent
1ccc6fd
commit 365ad85
Showing
4 changed files
with
102 additions
and
38 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
import { test, expect } from "@playwright/test"; | ||
|
||
test("main docs cross-link to optimize docs", async ({ page }) => { | ||
await page.goto("/docs/components/"); | ||
|
||
await expect(page).toHaveTitle( | ||
/Overview Components \| Camunda Platform 8 Docs/ | ||
); | ||
|
||
// This is a link known to cross over to $optimize$. | ||
await page | ||
.getByRole("article") | ||
.getByRole("link", { name: "Optimize" }) | ||
.click(); | ||
|
||
// The `$optimize$` should be transformed to `optimize` in the target URL. | ||
await expect(page.url()).toContain("/optimize/components/what-is-optimize/"); | ||
}); | ||
|
||
test("optimize docs cross-link to main docs", async ({ page }) => { | ||
await page.goto( | ||
"/optimize/apis-tools/optimize-api/optimize-api-authorization/" | ||
); | ||
|
||
await expect(page).toHaveTitle(/Authorization \| Camunda Platform 8 Docs/); | ||
|
||
// This is a link known to cross over to $docs$. | ||
await page.getByRole("link", { name: "building your own client" }).click(); | ||
|
||
// The `$docs$` should be transformed to `docs` in the target URL. | ||
await expect(page.url()).toContain("/docs/apis-tools/build-your-own-client/"); | ||
}); |