[ Docs]: The v9 Expect page will show the expect-webdriverio v8 docs
Pre-check
- I know I can edit the docs but prefer to file this issue
Describe the improvement
Unclear documentation
Description of the improvement / report
The Expect API page downloads 5 files from expect-webdriverio, listed in scripts/docs-generation/3rd-party/api.json. The entry has no branch, so 3rdPartyDocs.ts uses main.
The main branch of expect-webdriverio is now v8 (8.0.0-alpha.1), for WebdriverIO v10. The version for WebdriverIO v9 is on the v7 branch (7.0.0). At the next production deploy, webdriver.io shows the v8 docs to v9 users: docs/API.md has 184 changed lines (strict toHaveText on multiple elements, strict $(), removed deprecated APIs). The live page is older than both versions, so the problem is not visible yet.
Fix on main: add "branch": "v7" to the expect-webdriverio entry of scripts/docs-generation/3rd-party/api.json. The v7 branch has all 5 files of locations. The v10 branch (infra/docs/src/3rd-party/api.json) must keep main: no change.
On the v10 release: keep "branch": "v7" on the v9 maintenance branch only. If it moves to main with the v9 code, the v10 site shows the v7 docs. Tracked in webdriverio/expect-webdriverio#2246.
Low priority: the v8 branch (v8 site) also uses expect-webdriverio main. The matching branch is wdio-v8 (4.11.9), but it does not have docs/Framework.md and docs/CustomMatchers.md, so locations must also change.
Code of Conduct
- I agree to follow this project's Code of Conduct
Source: webdriverio/webdriverio