@bigbinary/neeto-playwright-commons 4.11.3 → 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 +22 -13
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -11349,20 +11349,21 @@ class TagsPage {
|
|
|
11349
11349
|
.getByTestId(COMMON_SELECTORS.header)
|
|
11350
11350
|
.getByTestId(TAGS_SELECTORS.newTagButton)
|
|
11351
11351
|
.click();
|
|
11352
|
-
await expect(this.page.getByTestId(COMMON_SELECTORS.
|
|
11352
|
+
await expect(this.page.getByTestId(COMMON_SELECTORS.sheetHeader)).toHaveText(addTagsLabel);
|
|
11353
11353
|
await this.page.getByTestId(TAGS_SELECTORS.tagNameTextField).fill(tagName);
|
|
11354
11354
|
await this.page
|
|
11355
11355
|
.getByTestId(TAGS_SELECTORS.descriptionTextArea)
|
|
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
|
|
@@ -11428,7 +11437,7 @@ class TagsPage {
|
|
|
11428
11437
|
rowSelector: MERGE_TAGS_SELECTORS.destinationTagRow,
|
|
11429
11438
|
});
|
|
11430
11439
|
await this.page.getByTestId(MERGE_TAGS_SELECTORS.mergeButton).click();
|
|
11431
|
-
await expect(this.page.getByTestId(COMMON_SELECTORS.
|
|
11440
|
+
await expect(this.page.getByTestId(COMMON_SELECTORS.dialogHeader)).toHaveText(this.t("neetoTags.common.mergeTag_other"));
|
|
11432
11441
|
await this.page.getByTestId(MERGE_TAGS_SELECTORS.proceedButton).click();
|
|
11433
11442
|
await this.neetoPlaywrightUtilities.verifyToast();
|
|
11434
11443
|
await this.page.getByTestId(tagsBreadcrumbSelector).click();
|
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",
|