@digital-ai/devops-page-object-release 1.0.5 → 1.0.6

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/dist/module.js CHANGED
@@ -9262,15 +9262,15 @@ class $6c0f5b52769b32c3$export$9823ddf5e80770e7 extends (0, $9626bc9256ce31f7$ex
9262
9262
  return this;
9263
9263
  }
9264
9264
  async expectDeleteDialog(dialogName) {
9265
- const dialog = this.page.getByRole('dialog', {
9266
- name: dialogName
9265
+ const dialog = this.page.getByRole('dialog').filter({
9266
+ hasText: dialogName
9267
9267
  });
9268
9268
  await (0, $hOLA6$expect)(dialog).toBeVisible();
9269
9269
  return this;
9270
9270
  }
9271
9271
  async deleteInstanceViaDialog(dialogName) {
9272
- const dialog = this.page.getByRole('dialog', {
9273
- name: dialogName
9272
+ const dialog = this.page.getByRole('dialog').filter({
9273
+ hasText: dialogName
9274
9274
  });
9275
9275
  const deleteButton = dialog.getByRole('button', {
9276
9276
  name: 'Delete'