@bigbinary/neeto-playwright-commons 1.11.9 → 1.11.11
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 +7 -6
- package/index.cjs.js.map +1 -1
- package/index.d.ts +11 -1
- package/index.js +7 -6
- package/index.js.map +1 -1
- package/package.json +1 -1
package/index.cjs.js
CHANGED
|
@@ -15078,7 +15078,7 @@ class IntegrationBase {
|
|
|
15078
15078
|
}
|
|
15079
15079
|
|
|
15080
15080
|
class GooglePage extends IntegrationBase {
|
|
15081
|
-
constructor(page, neetoPlaywrightUtilities, integration, integrationRouteIndex) {
|
|
15081
|
+
constructor({ page, neetoPlaywrightUtilities, integration, integrationRouteIndex, }) {
|
|
15082
15082
|
var _a;
|
|
15083
15083
|
super({
|
|
15084
15084
|
page,
|
|
@@ -15265,12 +15265,13 @@ class SlackPage extends IntegrationBase {
|
|
|
15265
15265
|
};
|
|
15266
15266
|
this.connectAndVerifyIntegration = async (redirectUrl, customSteps, channelToConfigure = SLACK_DEFAULT_CHANNEL) => {
|
|
15267
15267
|
await this.connect();
|
|
15268
|
-
|
|
15269
|
-
.getByRole("button", {
|
|
15268
|
+
const loginButton = this.page.getByRole("button", {
|
|
15270
15269
|
name: this.t("neetoSlack.slack.connect.loginButton"),
|
|
15271
|
-
})
|
|
15272
|
-
|
|
15273
|
-
|
|
15270
|
+
});
|
|
15271
|
+
if (await loginButton.isVisible()) {
|
|
15272
|
+
await loginButton.click({ delay: 5000 });
|
|
15273
|
+
await this.page.waitForURL(RegExp("(.*)slack.com/.*"));
|
|
15274
|
+
}
|
|
15274
15275
|
const allowButton = this.page.getByRole("button", {
|
|
15275
15276
|
name: SLACK_WEB_TEXTS.allow,
|
|
15276
15277
|
});
|