@digital-ai/devops-page-object-release 1.0.0 → 1.0.2
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 +12 -0
- package/dist/main.js +21 -9
- package/dist/main.js.map +1 -1
- package/dist/module.js +21 -9
- package/dist/module.js.map +1 -1
- package/dist/types.d.ts.map +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,17 @@
|
|
|
1
1
|
# @digital-ai/devops-page-object-release
|
|
2
2
|
|
|
3
|
+
## 1.0.2
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- 05e39e6: S-131806 : fix selectors for ci option for new grouped selection UI
|
|
8
|
+
|
|
9
|
+
## 1.0.1
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- 7a87015: S-129713: Fixed the flakiness in User profile page
|
|
14
|
+
|
|
3
15
|
## 1.0.0
|
|
4
16
|
|
|
5
17
|
### Major Changes
|
package/dist/main.js
CHANGED
|
@@ -2190,12 +2190,13 @@ class $8be2ce0eccbe6d27$export$64c93bc7fb9ca44e extends (0, $f8721861c660dd88$ex
|
|
|
2190
2190
|
}
|
|
2191
2191
|
async getAllOptionsFromCi(propertyName) {
|
|
2192
2192
|
await this.railLocator.locator(`input[id="${propertyName}"]`).click();
|
|
2193
|
-
|
|
2193
|
+
const texts = await this.railLocator.locator(`.dot-popper ul li[role="option"]`).allInnerTexts();
|
|
2194
|
+
return texts.map((text)=>text.split('\n')[0].trim());
|
|
2194
2195
|
}
|
|
2195
2196
|
async setValueFromCi(propertyName, value) {
|
|
2196
2197
|
await this.railLocator.locator(`input[id="${propertyName}"]`).clear();
|
|
2197
2198
|
await this.railLocator.locator(`input[id="${propertyName}"]`).click();
|
|
2198
|
-
await this.railLocator.locator(`.dot-popper ul li`, {
|
|
2199
|
+
await this.railLocator.locator(`.dot-popper ul li[role="option"]`, {
|
|
2199
2200
|
hasText: value
|
|
2200
2201
|
}).click();
|
|
2201
2202
|
}
|
|
@@ -2252,12 +2253,13 @@ class $eb81c1b930e440ff$export$519356f6c50361f7 extends (0, $f8721861c660dd88$ex
|
|
|
2252
2253
|
}
|
|
2253
2254
|
async getAllOptionsFromCi(propertyName) {
|
|
2254
2255
|
await this.railLocator.locator(`input[id="${propertyName}"]`).click();
|
|
2255
|
-
|
|
2256
|
+
const texts = await this.railLocator.locator(`.dot-popper ul li[role="option"]`).allInnerTexts();
|
|
2257
|
+
return texts.map((text)=>text.split('\n')[0].trim());
|
|
2256
2258
|
}
|
|
2257
2259
|
async setValueFromCi(propertyName, value) {
|
|
2258
2260
|
await this.railLocator.locator(`input[id="${propertyName}"]`).clear();
|
|
2259
2261
|
await this.railLocator.locator(`input[id="${propertyName}"]`).click();
|
|
2260
|
-
await this.railLocator.locator(`.dot-popper ul li`, {
|
|
2262
|
+
await this.railLocator.locator(`.dot-popper ul li[role="option"]`, {
|
|
2261
2263
|
hasText: value
|
|
2262
2264
|
}).click();
|
|
2263
2265
|
}
|
|
@@ -6836,11 +6838,21 @@ class $010122e1d9b28b80$export$3cf9c90f870f31bd extends (0, $f8721861c660dd88$ex
|
|
|
6836
6838
|
return this;
|
|
6837
6839
|
}
|
|
6838
6840
|
async save() {
|
|
6839
|
-
const
|
|
6840
|
-
await
|
|
6841
|
+
const saveButton = this.page.getByTestId('save-button');
|
|
6842
|
+
await saveButton.waitFor({
|
|
6843
|
+
state: 'visible',
|
|
6844
|
+
timeout: 5000
|
|
6845
|
+
});
|
|
6846
|
+
await (0, $kKeXs$playwrighttest.expect)(saveButton).toBeEnabled();
|
|
6847
|
+
await saveButton.click();
|
|
6848
|
+
// Wait for the toast or saved text to appear
|
|
6849
|
+
const toast = this.page.getByText('Changes saved successfully').first();
|
|
6850
|
+
await toast.waitFor({
|
|
6851
|
+
state: 'visible',
|
|
6841
6852
|
timeout: 5000
|
|
6853
|
+
}).catch(()=>{
|
|
6854
|
+
undefined;
|
|
6842
6855
|
});
|
|
6843
|
-
await saveBtn.click();
|
|
6844
6856
|
return this;
|
|
6845
6857
|
}
|
|
6846
6858
|
async clearEmailInput() {
|
|
@@ -6924,7 +6936,7 @@ class $010122e1d9b28b80$export$3cf9c90f870f31bd extends (0, $f8721861c660dd88$ex
|
|
|
6924
6936
|
await (0, $kKeXs$playwrighttest.expect)(dropdown).toHaveText(option);
|
|
6925
6937
|
await (0, $kKeXs$playwrighttest.expect)(saveButton).toBeEnabled();
|
|
6926
6938
|
await saveButton.click();
|
|
6927
|
-
await (0, $kKeXs$playwrighttest.expect)(this.page.getByText('Changes saved successfully')).toBeVisible();
|
|
6939
|
+
await (0, $kKeXs$playwrighttest.expect)(this.page.getByText('Changes saved successfully').first()).toBeVisible();
|
|
6928
6940
|
}
|
|
6929
6941
|
async setDefaultFolderPage(option) {
|
|
6930
6942
|
const dropdown = this.page.getByRole('combobox', {
|
|
@@ -6944,7 +6956,7 @@ class $010122e1d9b28b80$export$3cf9c90f870f31bd extends (0, $f8721861c660dd88$ex
|
|
|
6944
6956
|
await (0, $kKeXs$playwrighttest.expect)(dropdown).toHaveText(option);
|
|
6945
6957
|
await (0, $kKeXs$playwrighttest.expect)(saveButton).toBeEnabled();
|
|
6946
6958
|
await saveButton.click();
|
|
6947
|
-
await (0, $kKeXs$playwrighttest.expect)(this.page.getByText('Changes saved successfully')).toBeVisible();
|
|
6959
|
+
await (0, $kKeXs$playwrighttest.expect)(this.page.getByText('Changes saved successfully').first()).toBeVisible();
|
|
6948
6960
|
}
|
|
6949
6961
|
}
|
|
6950
6962
|
|