@digital-ai/devops-page-object-release 0.0.109 → 0.0.110
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/CHANGELOG.md +6 -0
- package/dist/main.js +12 -1
- package/dist/main.js.map +1 -1
- package/dist/module.js +12 -1
- package/dist/module.js.map +1 -1
- package/dist/types.d.ts +4 -0
- package/dist/types.d.ts.map +1 -1
- package/package.json +1 -1
package/dist/module.js
CHANGED
|
@@ -7118,6 +7118,9 @@ class $c37c93912f458e81$export$60c3bfa6385e2a10 extends (0, $59c1d01bded91449$ex
|
|
|
7118
7118
|
getStatusInputSelector() {
|
|
7119
7119
|
return `${this.getBaseDrawerSelector()} input#task-status-filter-autocomplete`;
|
|
7120
7120
|
}
|
|
7121
|
+
getTaskAssignedToMeSnackbarUndoButtonSelector() {
|
|
7122
|
+
return ".dot-snackbar button:has-text('Undo')";
|
|
7123
|
+
}
|
|
7121
7124
|
async openTask(taskName) {
|
|
7122
7125
|
await this.filterTaskByTitle(taskName);
|
|
7123
7126
|
await this.page.getByText(taskName).first().click();
|
|
@@ -7288,15 +7291,23 @@ class $c37c93912f458e81$export$60c3bfa6385e2a10 extends (0, $59c1d01bded91449$ex
|
|
|
7288
7291
|
await this.page.locator(this.getStatusInputSelector()).click();
|
|
7289
7292
|
await this.page.locator(this.getSelectAllStatusesButtonSelector()).click();
|
|
7290
7293
|
}
|
|
7294
|
+
async clickOnTaskAssignedToMeSnackbarUndoButton() {
|
|
7295
|
+
await this.page.locator(this.getTaskAssignedToMeSnackbarUndoButtonSelector()).click();
|
|
7296
|
+
}
|
|
7291
7297
|
async assignTaskToMe(title) {
|
|
7292
7298
|
await this.page.locator(`.task-line`).filter({
|
|
7293
7299
|
hasText: title
|
|
7294
7300
|
}).locator(`.assign-to-me`).click();
|
|
7295
|
-
await this.page.locator('.modal:visible >> text="Assign to me"').click();
|
|
7296
7301
|
}
|
|
7297
7302
|
async expectTaskAssignedToMe(title) {
|
|
7298
7303
|
await this.expectTaskAssignedTo(title, 'me');
|
|
7299
7304
|
}
|
|
7305
|
+
async expectTaskAssignedToMeSnackbar(text) {
|
|
7306
|
+
await (0, $hOLA6$expect)(this.page.locator(`.dot-snackbar .snackbar-html-message >> text=${text}`)).toBeVisible();
|
|
7307
|
+
}
|
|
7308
|
+
async expectTaskAssignedToMeSnackbarUndoButton() {
|
|
7309
|
+
await (0, $hOLA6$expect)(this.page.locator(this.getTaskAssignedToMeSnackbarUndoButtonSelector())).toBeVisible();
|
|
7310
|
+
}
|
|
7300
7311
|
async expectTaskAssignedTo(title, user) {
|
|
7301
7312
|
await (0, $hOLA6$expect)(this.page.locator(`.task-line:has-text("${title}") >> text="${user}"`).first()).toHaveCount(1);
|
|
7302
7313
|
}
|