@bigbinary/neeto-playwright-commons 1.11.10 → 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 +6 -5
- package/index.cjs.js.map +1 -1
- package/index.js +6 -5
- package/index.js.map +1 -1
- package/package.json +1 -1
package/index.cjs.js
CHANGED
|
@@ -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
|
});
|