@salesforcedevs/sfdocs-e2e 1.0.12-e2e-topic-version-2 → 1.0.12-e2e-topic-version-3
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
|
@@ -137,8 +137,15 @@ describe('Reference Versioning', () => {
|
|
|
137
137
|
await versionOptions[1].click();
|
|
138
138
|
await referencePage.waitForSpecBasedReferencePageLoad();
|
|
139
139
|
|
|
140
|
-
|
|
141
|
-
|
|
140
|
+
// The outer container can display before Redoc finishes populating its content, so wait
|
|
141
|
+
// for each element directly rather than reading them immediately.
|
|
142
|
+
const apiTitleElement = await $('>>>div.api-title span');
|
|
143
|
+
await apiTitleElement.waitForDisplayed();
|
|
144
|
+
const apiVersionElement = await $('>>>p.version span');
|
|
145
|
+
await apiVersionElement.waitForDisplayed();
|
|
146
|
+
|
|
147
|
+
const apiTitle = await apiTitleElement.getText();
|
|
148
|
+
const apiVersion = await apiVersionElement.getText();
|
|
142
149
|
|
|
143
150
|
expect(apiTitle).toEqual('Salesforce Connect API');
|
|
144
151
|
expect(apiVersion).toEqual('53.0');
|