@digital-ai/devops-page-object-release 0.0.8 → 0.0.10
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 +13 -0
- package/dist/main.js +84 -6
- package/dist/main.js.map +1 -1
- package/dist/module.js +84 -6
- package/dist/module.js.map +1 -1
- package/dist/types.d.ts +10 -0
- package/dist/types.d.ts.map +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,18 @@
|
|
|
1
1
|
# @digital-ai/devops-page-object-release
|
|
2
2
|
|
|
3
|
+
## 0.0.10
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- 5108571: Fixed goto urls with valid format to run against pipeline
|
|
8
|
+
|
|
9
|
+
## 0.0.9
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- 053fa5a: [Ready] : S-106064: Add Initial Page objects for Release calendar page
|
|
14
|
+
- 3070d98: Attributes added in Task interface to get reflect on task creations with API request
|
|
15
|
+
|
|
3
16
|
## 0.0.8
|
|
4
17
|
|
|
5
18
|
### Patch Changes
|
package/dist/main.js
CHANGED
|
@@ -1773,12 +1773,14 @@ class $258749e0671c845a$export$f14c0e3f98d164c0 extends (0, $f8721861c660dd88$ex
|
|
|
1773
1773
|
* @param userName
|
|
1774
1774
|
* @param password
|
|
1775
1775
|
*/ async login(userName, password) {
|
|
1776
|
-
await this.page.goto("
|
|
1776
|
+
await this.page.goto("./#/login");
|
|
1777
1777
|
await this.page.waitForTimeout(1000);
|
|
1778
1778
|
await (0, $kKeXs$playwrighttest.expect)(this.page).toHaveTitle("Digital.ai Release");
|
|
1779
|
-
await this.page.
|
|
1780
|
-
await this.page.
|
|
1781
|
-
await this.page.
|
|
1779
|
+
await this.page.getByPlaceholder("User").fill(userName);
|
|
1780
|
+
await this.page.getByPlaceholder("Password").fill(password);
|
|
1781
|
+
await this.page.getByRole("button", {
|
|
1782
|
+
name: "Log in"
|
|
1783
|
+
}).click();
|
|
1782
1784
|
}
|
|
1783
1785
|
/**
|
|
1784
1786
|
* Logout as authenticated user
|
|
@@ -2284,7 +2286,7 @@ class $3ceab7c613cabfd6$export$107317390f5aa598 extends (0, $f8721861c660dd88$ex
|
|
|
2284
2286
|
this.modal = new (0, $bb5572a48b31014a$export$e2e2e1ffdce20c30)(page);
|
|
2285
2287
|
}
|
|
2286
2288
|
async openUsersPage() {
|
|
2287
|
-
this.page.goto("
|
|
2289
|
+
this.page.goto("./#/users", {
|
|
2288
2290
|
timeout: 1000
|
|
2289
2291
|
});
|
|
2290
2292
|
}
|
|
@@ -2348,6 +2350,81 @@ class $a642d735048996f9$export$922081b54f2ab994 extends (0, $f8721861c660dd88$ex
|
|
|
2348
2350
|
}
|
|
2349
2351
|
|
|
2350
2352
|
|
|
2353
|
+
|
|
2354
|
+
|
|
2355
|
+
class $a8855257f8bb2b12$export$43682cddead1dd78 extends (0, $f8721861c660dd88$export$2b65d1d97338f32b) {
|
|
2356
|
+
async openReleaseCalendarPage() {
|
|
2357
|
+
await this.page.goto("./#/calendar");
|
|
2358
|
+
await (0, $kKeXs$playwrighttest.expect)(this.page).toHaveTitle("Release calendar / Home - Digital.ai Release");
|
|
2359
|
+
//Define date format to verify different calendar views
|
|
2360
|
+
const today = new Date();
|
|
2361
|
+
let options = {
|
|
2362
|
+
weekday: "long",
|
|
2363
|
+
year: "numeric",
|
|
2364
|
+
month: "short",
|
|
2365
|
+
day: "numeric"
|
|
2366
|
+
};
|
|
2367
|
+
this.dayFormat = today.toLocaleDateString("en-US", options); // Saturday, September 17, 2016
|
|
2368
|
+
this.yearFormat = today.getFullYear();
|
|
2369
|
+
this.yearFormatString = this.yearFormat.toString();
|
|
2370
|
+
options = {
|
|
2371
|
+
month: "long",
|
|
2372
|
+
year: "numeric"
|
|
2373
|
+
};
|
|
2374
|
+
this.monthFormat = today.toLocaleDateString("en-US", options);
|
|
2375
|
+
return this;
|
|
2376
|
+
}
|
|
2377
|
+
async exportCalendar() {
|
|
2378
|
+
// eslint-disable-next-line @typescript-eslint/no-empty-function
|
|
2379
|
+
this.page.on("download", ()=>{});
|
|
2380
|
+
await this.page.getByRole("button", {
|
|
2381
|
+
name: "download icon Export calendar"
|
|
2382
|
+
}).click();
|
|
2383
|
+
const downloadPromise = this.page.waitForEvent("download");
|
|
2384
|
+
await this.page.getByRole("button", {
|
|
2385
|
+
name: "Export"
|
|
2386
|
+
}).click();
|
|
2387
|
+
await downloadPromise;
|
|
2388
|
+
}
|
|
2389
|
+
async cancelCalendarExport() {
|
|
2390
|
+
let downloadCount = 0;
|
|
2391
|
+
// Listen to download events
|
|
2392
|
+
this.page.on("download", (_download)=>{
|
|
2393
|
+
downloadCount++;
|
|
2394
|
+
});
|
|
2395
|
+
await this.page.getByRole("button", {
|
|
2396
|
+
name: "download icon Export calendar"
|
|
2397
|
+
}).click();
|
|
2398
|
+
await this.page.getByRole("button", {
|
|
2399
|
+
name: "Cancel"
|
|
2400
|
+
}).click();
|
|
2401
|
+
return downloadCount;
|
|
2402
|
+
}
|
|
2403
|
+
async verifyDayView() {
|
|
2404
|
+
await this.page.getByRole("combobox").click();
|
|
2405
|
+
await this.page.getByRole("option", {
|
|
2406
|
+
name: "Day"
|
|
2407
|
+
}).click();
|
|
2408
|
+
await this.page.getByRole("button", {
|
|
2409
|
+
name: "Today"
|
|
2410
|
+
}).click();
|
|
2411
|
+
//Verify Page has correct day format displayed at the page bottom
|
|
2412
|
+
await (0, $kKeXs$playwrighttest.expect)(this.page.getByText(this.dayFormat)).toBeVisible();
|
|
2413
|
+
}
|
|
2414
|
+
async verifyYearView() {
|
|
2415
|
+
await this.page.getByRole("combobox").click();
|
|
2416
|
+
await this.page.getByRole("option", {
|
|
2417
|
+
name: "Year"
|
|
2418
|
+
}).click();
|
|
2419
|
+
await this.page.getByRole("button", {
|
|
2420
|
+
name: "Today"
|
|
2421
|
+
}).click();
|
|
2422
|
+
//Verify Page has correct Year format displayed at the page bottom
|
|
2423
|
+
await (0, $kKeXs$playwrighttest.expect)(this.page.getByText(this.yearFormatString)).toBeVisible();
|
|
2424
|
+
}
|
|
2425
|
+
}
|
|
2426
|
+
|
|
2427
|
+
|
|
2351
2428
|
class $4ef41cf96a5fae4c$export$b8a61e5c71402559 {
|
|
2352
2429
|
constructor(page){
|
|
2353
2430
|
this.page = page;
|
|
@@ -2356,6 +2433,7 @@ class $4ef41cf96a5fae4c$export$b8a61e5c71402559 {
|
|
|
2356
2433
|
this.usersPage = new (0, $3ceab7c613cabfd6$export$107317390f5aa598)(page);
|
|
2357
2434
|
this.applicationPage = new (0, $dc91ece6da6cadfa$export$1533b625ec0c75e2)(page);
|
|
2358
2435
|
this.taskDetailsPage = new (0, $a642d735048996f9$export$922081b54f2ab994)(page);
|
|
2436
|
+
this.releaseCalendarPage = new (0, $a8855257f8bb2b12$export$43682cddead1dd78)(page);
|
|
2359
2437
|
}
|
|
2360
2438
|
async openTemplate(id) {
|
|
2361
2439
|
return this.openReleaseOrTemplate(id, false);
|
|
@@ -2459,7 +2537,7 @@ class $6998c6a53a9eb4fa$var$Fixtures {
|
|
|
2459
2537
|
this.request = request;
|
|
2460
2538
|
this.page = page;
|
|
2461
2539
|
}
|
|
2462
|
-
release(release) {
|
|
2540
|
+
async release(release) {
|
|
2463
2541
|
this.initDefaults(release);
|
|
2464
2542
|
this.releaseIds.push(release.id);
|
|
2465
2543
|
return this.deleteRelease(release.id).then(()=>this.deleteArchivedRelease(release.id)).then(()=>this.doPost("fixtures/release", release));
|