@bigbinary/neeto-playwright-commons 1.26.5 → 1.26.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/index.cjs.js +11 -9
- package/index.cjs.js.map +1 -1
- package/index.js +11 -9
- package/index.js.map +1 -1
- package/package.json +1 -1
package/index.cjs.js
CHANGED
|
@@ -116217,9 +116217,10 @@ class IntegrationBase {
|
|
|
116217
116217
|
await this.gotoIntegrationIndex();
|
|
116218
116218
|
await this.clickOnIntegrationCard();
|
|
116219
116219
|
await this.page.getByTestId(INTEGRATION_SELECTORS.disconnectButton).click();
|
|
116220
|
-
await this.
|
|
116221
|
-
.getByTestId(COMMON_SELECTORS.alertModalSubmitButton)
|
|
116222
|
-
|
|
116220
|
+
await this.neetoPlaywrightUtilities.clickButtonAndAwaitLoad({
|
|
116221
|
+
locator: this.page.getByTestId(COMMON_SELECTORS.alertModalSubmitButton),
|
|
116222
|
+
timeout: 15000,
|
|
116223
|
+
});
|
|
116223
116224
|
await this.neetoPlaywrightUtilities.verifyToast();
|
|
116224
116225
|
};
|
|
116225
116226
|
this.connect = async (skipGoTo) => {
|
|
@@ -116235,13 +116236,14 @@ class IntegrationBase {
|
|
|
116235
116236
|
await this.page.waitForLoadState("domcontentloaded", { timeout: 35000 });
|
|
116236
116237
|
};
|
|
116237
116238
|
this.verifyIntegrationStatus = async (status = "connected", visibilityTimeout = 15000) => {
|
|
116239
|
+
const isConnected = status === "connected";
|
|
116238
116240
|
await this.gotoIntegrationIndex();
|
|
116239
|
-
|
|
116240
|
-
await test.expect(this.integrationCard.getByTestId(INTEGRATION_SELECTORS.integrationStatusTag)).toBeVisible({ timeout: visibilityTimeout });
|
|
116241
|
-
}
|
|
116241
|
+
isConnected &&
|
|
116242
|
+
(await test.expect(this.integrationCard.getByTestId(INTEGRATION_SELECTORS.integrationStatusTag)).toBeVisible({ timeout: visibilityTimeout }));
|
|
116242
116243
|
await this.clickOnIntegrationCard();
|
|
116243
|
-
|
|
116244
|
-
|
|
116244
|
+
await test.expect(this.page.getByRole("heading", {
|
|
116245
|
+
name: isConnected ? this.connectedHeader : this.connectHeader,
|
|
116246
|
+
})).toBeVisible();
|
|
116245
116247
|
};
|
|
116246
116248
|
this.clickOnIntegrationCard = async () => {
|
|
116247
116249
|
await this.neetoPlaywrightUtilities.waitForPageLoad({
|
|
@@ -116265,7 +116267,7 @@ class IntegrationBase {
|
|
|
116265
116267
|
this.t = playwrightI18nextFixture.getI18nInstance().t;
|
|
116266
116268
|
this.integration = integration;
|
|
116267
116269
|
this.integrationCard = this.page.getByTestId(INTEGRATION_SELECTORS.integrationCard(integration));
|
|
116268
|
-
this.pageloaderTimeout = pageloaderTimeout ||
|
|
116270
|
+
this.pageloaderTimeout = pageloaderTimeout || 35000;
|
|
116269
116271
|
this.integrationRouteIndex = integrationRouteIndex || "";
|
|
116270
116272
|
this.integrationRouteResponsesParams =
|
|
116271
116273
|
integrationRouteResponsesParams || {};
|