@salesforcedevs/sfdocs-e2e 1.0.12-e2e-topic-version-5 → 1.0.12-e2e-topic-version-6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@salesforcedevs/sfdocs-e2e",
3
- "version": "1.0.12-e2e-topic-version-5",
3
+ "version": "1.0.12-e2e-topic-version-6",
4
4
  "description": "E2E test suite for SFDocs static portal pages (SSG)",
5
5
  "license": "ISC",
6
6
  "bin": {
@@ -120,13 +120,17 @@ describe('Reference Versioning', () => {
120
120
  const searchBox = await dxInput.shadow$('input');
121
121
 
122
122
  await searchBox.click();
123
- await browser.keys('/cart-coupons');
123
+ await browser.keys('coupon');
124
124
 
125
+ // Search filters asynchronously — wait for the tree to actually narrow down instead of
126
+ // querying immediately, which would still catch the pre-filter (full) tree.
127
+ await browser.waitUntil(
128
+ async () => (await $$('>>>dx-tree-item')).length === 2,
129
+ { timeoutMsg: 'expected search for "coupon" to narrow the tree to 2 results' },
130
+ );
125
131
  const dxTreeItems = await $$('>>>dx-tree-item');
126
132
 
127
- expect(dxTreeItems.length > 2).toBeTruthy();
128
-
129
- await (await dxTreeItems[2]).click();
133
+ await (await dxTreeItems[0]).click();
130
134
 
131
135
  const versionBtn = await $('>>>.version-picker-button');
132
136