-
Notifications
You must be signed in to change notification settings - Fork 189
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into use_optimize_720_83_for_update_guide
- Loading branch information
Showing
5 changed files
with
103 additions
and
39 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/"); | ||
}); |
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