@digital-ai/devops-page-object-release 1.0.0 → 1.0.1
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 +15 -5
- package/dist/main.js.map +1 -1
- package/dist/module.js +15 -5
- package/dist/module.js.map +1 -1
- package/dist/types.d.ts.map +1 -1
- package/package.json +1 -1
package/dist/module.js
CHANGED
|
@@ -5902,11 +5902,21 @@ class $a5932af323ac015a$export$3cf9c90f870f31bd extends (0, $9626bc9256ce31f7$ex
|
|
|
5902
5902
|
return this;
|
|
5903
5903
|
}
|
|
5904
5904
|
async save() {
|
|
5905
|
-
const
|
|
5906
|
-
await
|
|
5905
|
+
const saveButton = this.page.getByTestId('save-button');
|
|
5906
|
+
await saveButton.waitFor({
|
|
5907
|
+
state: 'visible',
|
|
5908
|
+
timeout: 5000
|
|
5909
|
+
});
|
|
5910
|
+
await (0, $hOLA6$expect)(saveButton).toBeEnabled();
|
|
5911
|
+
await saveButton.click();
|
|
5912
|
+
// Wait for the toast or saved text to appear
|
|
5913
|
+
const toast = this.page.getByText('Changes saved successfully').first();
|
|
5914
|
+
await toast.waitFor({
|
|
5915
|
+
state: 'visible',
|
|
5907
5916
|
timeout: 5000
|
|
5917
|
+
}).catch(()=>{
|
|
5918
|
+
undefined;
|
|
5908
5919
|
});
|
|
5909
|
-
await saveBtn.click();
|
|
5910
5920
|
return this;
|
|
5911
5921
|
}
|
|
5912
5922
|
async clearEmailInput() {
|
|
@@ -5990,7 +6000,7 @@ class $a5932af323ac015a$export$3cf9c90f870f31bd extends (0, $9626bc9256ce31f7$ex
|
|
|
5990
6000
|
await (0, $hOLA6$expect)(dropdown).toHaveText(option);
|
|
5991
6001
|
await (0, $hOLA6$expect)(saveButton).toBeEnabled();
|
|
5992
6002
|
await saveButton.click();
|
|
5993
|
-
await (0, $hOLA6$expect)(this.page.getByText('Changes saved successfully')).toBeVisible();
|
|
6003
|
+
await (0, $hOLA6$expect)(this.page.getByText('Changes saved successfully').first()).toBeVisible();
|
|
5994
6004
|
}
|
|
5995
6005
|
async setDefaultFolderPage(option) {
|
|
5996
6006
|
const dropdown = this.page.getByRole('combobox', {
|
|
@@ -6010,7 +6020,7 @@ class $a5932af323ac015a$export$3cf9c90f870f31bd extends (0, $9626bc9256ce31f7$ex
|
|
|
6010
6020
|
await (0, $hOLA6$expect)(dropdown).toHaveText(option);
|
|
6011
6021
|
await (0, $hOLA6$expect)(saveButton).toBeEnabled();
|
|
6012
6022
|
await saveButton.click();
|
|
6013
|
-
await (0, $hOLA6$expect)(this.page.getByText('Changes saved successfully')).toBeVisible();
|
|
6023
|
+
await (0, $hOLA6$expect)(this.page.getByText('Changes saved successfully').first()).toBeVisible();
|
|
6014
6024
|
}
|
|
6015
6025
|
}
|
|
6016
6026
|
|