@bigbinary/neeto-playwright-commons 1.9.23 → 1.9.24
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 -0
- package/index.cjs.js.map +1 -1
- package/index.d.ts +12 -0
- package/index.js +6 -0
- package/index.js.map +1 -1
- package/package.json +1 -1
package/index.cjs.js
CHANGED
|
@@ -13953,6 +13953,11 @@ class SlackPage extends IntegrationBase {
|
|
|
13953
13953
|
integration: "slack",
|
|
13954
13954
|
integrationRouteIndex,
|
|
13955
13955
|
});
|
|
13956
|
+
this.closeCoachMark = async (slackWebappPage = this.page) => {
|
|
13957
|
+
const slackWebappPageDataQa = getByDataQA(slackWebappPage);
|
|
13958
|
+
const closeCoachMarkButton = slackWebappPageDataQa(SLACK_DATA_QA_SELECTORS.coachMarkCloseButton);
|
|
13959
|
+
await closeCoachMarkButton.click();
|
|
13960
|
+
};
|
|
13956
13961
|
this.connectAndVerifyIntegration = async (redirectUrl, customSteps, channelToConfigure = SLACK_DEFAULT_CHANNEL) => {
|
|
13957
13962
|
await this.connect();
|
|
13958
13963
|
await this.page
|
|
@@ -14057,6 +14062,7 @@ class SlackPage extends IntegrationBase {
|
|
|
14057
14062
|
await slackWebappPage
|
|
14058
14063
|
.locator(SLACK_SELECTORS.redirectOpenInBrowser)
|
|
14059
14064
|
.click();
|
|
14065
|
+
await this.closeCoachMark(slackWebappPage);
|
|
14060
14066
|
}
|
|
14061
14067
|
else {
|
|
14062
14068
|
throw new Error("ENV variable SLACK_LOGIN_EMAIL or SLACK_LOGIN_PASSWORD or SLACK_WORKSPACE is not defined.");
|