@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/CHANGELOG.md
CHANGED
package/dist/main.js
CHANGED
|
@@ -6836,11 +6836,21 @@ class $010122e1d9b28b80$export$3cf9c90f870f31bd extends (0, $f8721861c660dd88$ex
|
|
|
6836
6836
|
return this;
|
|
6837
6837
|
}
|
|
6838
6838
|
async save() {
|
|
6839
|
-
const
|
|
6840
|
-
await
|
|
6839
|
+
const saveButton = this.page.getByTestId('save-button');
|
|
6840
|
+
await saveButton.waitFor({
|
|
6841
|
+
state: 'visible',
|
|
6842
|
+
timeout: 5000
|
|
6843
|
+
});
|
|
6844
|
+
await (0, $kKeXs$playwrighttest.expect)(saveButton).toBeEnabled();
|
|
6845
|
+
await saveButton.click();
|
|
6846
|
+
// Wait for the toast or saved text to appear
|
|
6847
|
+
const toast = this.page.getByText('Changes saved successfully').first();
|
|
6848
|
+
await toast.waitFor({
|
|
6849
|
+
state: 'visible',
|
|
6841
6850
|
timeout: 5000
|
|
6851
|
+
}).catch(()=>{
|
|
6852
|
+
undefined;
|
|
6842
6853
|
});
|
|
6843
|
-
await saveBtn.click();
|
|
6844
6854
|
return this;
|
|
6845
6855
|
}
|
|
6846
6856
|
async clearEmailInput() {
|
|
@@ -6924,7 +6934,7 @@ class $010122e1d9b28b80$export$3cf9c90f870f31bd extends (0, $f8721861c660dd88$ex
|
|
|
6924
6934
|
await (0, $kKeXs$playwrighttest.expect)(dropdown).toHaveText(option);
|
|
6925
6935
|
await (0, $kKeXs$playwrighttest.expect)(saveButton).toBeEnabled();
|
|
6926
6936
|
await saveButton.click();
|
|
6927
|
-
await (0, $kKeXs$playwrighttest.expect)(this.page.getByText('Changes saved successfully')).toBeVisible();
|
|
6937
|
+
await (0, $kKeXs$playwrighttest.expect)(this.page.getByText('Changes saved successfully').first()).toBeVisible();
|
|
6928
6938
|
}
|
|
6929
6939
|
async setDefaultFolderPage(option) {
|
|
6930
6940
|
const dropdown = this.page.getByRole('combobox', {
|
|
@@ -6944,7 +6954,7 @@ class $010122e1d9b28b80$export$3cf9c90f870f31bd extends (0, $f8721861c660dd88$ex
|
|
|
6944
6954
|
await (0, $kKeXs$playwrighttest.expect)(dropdown).toHaveText(option);
|
|
6945
6955
|
await (0, $kKeXs$playwrighttest.expect)(saveButton).toBeEnabled();
|
|
6946
6956
|
await saveButton.click();
|
|
6947
|
-
await (0, $kKeXs$playwrighttest.expect)(this.page.getByText('Changes saved successfully')).toBeVisible();
|
|
6957
|
+
await (0, $kKeXs$playwrighttest.expect)(this.page.getByText('Changes saved successfully').first()).toBeVisible();
|
|
6948
6958
|
}
|
|
6949
6959
|
}
|
|
6950
6960
|
|