@bigbinary/neeto-playwright-commons 4.3.0 → 4.3.2
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.js +7 -5
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -119724,14 +119724,16 @@ class ZapierPage extends IntegrationBase {
|
|
|
119724
119724
|
const loginLink = zapierWebPage.getByRole("link", {
|
|
119725
119725
|
name: ZAPIER_WEB_TEXTS.logIn,
|
|
119726
119726
|
});
|
|
119727
|
-
await expect(loginLink).toBeVisible();
|
|
119728
|
-
await simulateClickWithDelay({ element: loginLink, page: zapierWebPage });
|
|
119729
119727
|
const emailField = zapierWebPage.getByLabel(ZAPIER_WEB_TEXTS.email);
|
|
119730
119728
|
const passwordField = zapierWebPage.getByLabel(ZAPIER_WEB_TEXTS.password);
|
|
119731
119729
|
const loginToYourAccountHeading = zapierWebPage.getByRole("heading", {
|
|
119732
119730
|
name: ZAPIER_WEB_TEXTS.loginToYourAccount,
|
|
119733
119731
|
});
|
|
119734
|
-
await
|
|
119732
|
+
await this.zapierWebPage.waitForLoadState("domcontentloaded");
|
|
119733
|
+
await expect(loginLink).toBeVisible({ timeout: 15_000 });
|
|
119734
|
+
await loginLink.click();
|
|
119735
|
+
await this.zapierWebPage.waitForLoadState("domcontentloaded");
|
|
119736
|
+
await expect(emailField).toBeVisible({ timeout: 15_000 });
|
|
119735
119737
|
await loginToYourAccountHeading.hover();
|
|
119736
119738
|
await loginToYourAccountHeading.dblclick({
|
|
119737
119739
|
delay: Math.floor(Math.random() * 1000) + 300,
|
|
@@ -119744,7 +119746,7 @@ class ZapierPage extends IntegrationBase {
|
|
|
119744
119746
|
element: this.continueButton,
|
|
119745
119747
|
page: zapierWebPage,
|
|
119746
119748
|
});
|
|
119747
|
-
await expect(zapierWebPage.getByText(ZAPIER_WEB_TEXTS.welcomeText(process.env.ZAPIER_LOGIN_EMAIL))).toBeVisible();
|
|
119749
|
+
await expect(zapierWebPage.getByText(ZAPIER_WEB_TEXTS.welcomeText(process.env.ZAPIER_LOGIN_EMAIL))).toBeVisible({ timeout: 15_000 });
|
|
119748
119750
|
await simulateTypingWithDelay({
|
|
119749
119751
|
field: passwordField,
|
|
119750
119752
|
value: process.env.ZAPIER_LOGIN_PASSWORD,
|
|
@@ -121162,7 +121164,7 @@ class ApiKeysPage {
|
|
|
121162
121164
|
fillApiKeyDetails = async ({ label, expiryDate }) => {
|
|
121163
121165
|
await this.page
|
|
121164
121166
|
.getByTestId(COMMON_SELECTORS.paneBody)
|
|
121165
|
-
.getByTestId(COMMON_SELECTORS.customInputField("
|
|
121167
|
+
.getByTestId(COMMON_SELECTORS.customInputField("name"))
|
|
121166
121168
|
.fill(label);
|
|
121167
121169
|
isPresent(expiryDate) && (await this.enableExpiryDate(expiryDate));
|
|
121168
121170
|
await this.neetoPlaywrightUtilities.saveChanges({ isPane: true });
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@bigbinary/neeto-playwright-commons",
|
|
3
|
-
"version": "4.3.
|
|
3
|
+
"version": "4.3.2",
|
|
4
4
|
"description": "A package encapsulating common playwright code across neeto projects.",
|
|
5
5
|
"repository": "git@github.com:bigbinary/neeto-playwright-commons.git",
|
|
6
6
|
"license": "apache-2.0",
|