@bigbinary/neeto-playwright-commons 4.11.4 → 4.11.5
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 +20 -11
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -11356,13 +11356,14 @@ class TagsPage {
|
|
|
11356
11356
|
.fill(faker.lorem.word(7));
|
|
11357
11357
|
await this.page.getByTestId(TAGS_SELECTORS.submitButton).click();
|
|
11358
11358
|
await this.neetoPlaywrightUtilities.verifyToast();
|
|
11359
|
-
await this.
|
|
11359
|
+
await this.neetoPlaywrightUtilities.waitForSheetClose();
|
|
11360
|
+
await this.neetoPlaywrightUtilities.waitForPageLoad();
|
|
11360
11361
|
};
|
|
11361
11362
|
filterTagsViaUI = async (tagName) => {
|
|
11362
|
-
|
|
11363
|
-
|
|
11364
|
-
|
|
11365
|
-
await this.page
|
|
11363
|
+
const nameBlock = this.page.getByTestId(NEETO_FILTERS_SELECTORS.neetoFilterNameBlock);
|
|
11364
|
+
const rows = this.page.getByRole("row");
|
|
11365
|
+
const tagRow = this.page.getByRole("row", { name: tagName });
|
|
11366
|
+
await filterUtils.openFilterPaneV2(this.page);
|
|
11366
11367
|
await this.page
|
|
11367
11368
|
.getByTestId(NEETO_FILTERS_SELECTORS.neetoFiltersNameFilterField)
|
|
11368
11369
|
.fill(tagName);
|
|
@@ -11370,12 +11371,20 @@ class TagsPage {
|
|
|
11370
11371
|
await this.page
|
|
11371
11372
|
.getByTestId(NEETO_FILTERS_SELECTORS.filterDoneButton)
|
|
11372
11373
|
.click();
|
|
11373
|
-
await
|
|
11374
|
-
await
|
|
11375
|
-
|
|
11376
|
-
.getByTestId(NEETO_FILTERS_SELECTORS.neetoFiltersBarClearButton)
|
|
11377
|
-
.
|
|
11378
|
-
|
|
11374
|
+
await this.neetoPlaywrightUtilities.waitForPageLoad();
|
|
11375
|
+
await Promise.all([
|
|
11376
|
+
expect(this.page.getByTestId(NEETO_FILTERS_SELECTORS.filterPaneHeading)).toBeHidden(),
|
|
11377
|
+
expect(this.page.getByTestId(NEETO_FILTERS_SELECTORS.neetoFiltersBarClearButton)).toBeVisible(),
|
|
11378
|
+
expect(nameBlock).toContainText(tagName),
|
|
11379
|
+
expect(tagRow).toBeVisible(),
|
|
11380
|
+
expect(rows).toHaveCount(2),
|
|
11381
|
+
]);
|
|
11382
|
+
await filterUtils.clearFiltersFromActionBlock(this.page);
|
|
11383
|
+
await Promise.all([
|
|
11384
|
+
expect(nameBlock).toBeHidden(),
|
|
11385
|
+
expect(tagRow).toBeVisible(),
|
|
11386
|
+
expect(rows).not.toHaveCount(2),
|
|
11387
|
+
]);
|
|
11379
11388
|
};
|
|
11380
11389
|
editTagViaUI = async ({ tagName, newTagName, }) => {
|
|
11381
11390
|
await this.page
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@bigbinary/neeto-playwright-commons",
|
|
3
|
-
"version": "4.11.
|
|
3
|
+
"version": "4.11.5",
|
|
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",
|