@digital-ai/devops-page-object-release 0.0.119 → 1.0.0
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 +183 -35
- package/dist/main.js.map +1 -1
- package/dist/module.js +183 -35
- package/dist/module.js.map +1 -1
- package/dist/types.d.ts +27 -0
- package/dist/types.d.ts.map +1 -1
- package/package.json +1 -1
package/dist/types.d.ts
CHANGED
|
@@ -1418,6 +1418,8 @@ declare class FolderPage extends WithPage {
|
|
|
1418
1418
|
openVariables(): Promise<VariablePage>;
|
|
1419
1419
|
openCustomDashboard(): Promise<void>;
|
|
1420
1420
|
openReleaseByName(releaseName: string): Promise<void>;
|
|
1421
|
+
expectBreadcrumbToContain(option: string): Promise<void>;
|
|
1422
|
+
expectFolderOptionInUrl(option: string): Promise<void>;
|
|
1421
1423
|
}
|
|
1422
1424
|
declare class GlobalVariable extends WithPage {
|
|
1423
1425
|
addListValue: Locator;
|
|
@@ -1442,6 +1444,7 @@ declare class GlobalVariable extends WithPage {
|
|
|
1442
1444
|
deleteGlobalVariable(variableName: string): Promise<void>;
|
|
1443
1445
|
editVariable(variableName: string, editedvariabletext: string): Promise<void>;
|
|
1444
1446
|
}
|
|
1447
|
+
type DefaultPage = 'Folders' | 'Tasks' | 'Releases' | 'Templates' | 'Home';
|
|
1445
1448
|
declare class HomePage extends WithPage {
|
|
1446
1449
|
configureButton: Locator;
|
|
1447
1450
|
viewModeButton: Locator;
|
|
@@ -1461,6 +1464,7 @@ declare class HomePage extends WithPage {
|
|
|
1461
1464
|
*/
|
|
1462
1465
|
removeTiles(tileName: string): Promise<void>;
|
|
1463
1466
|
verifyWhatsNewButton(): Promise<void>;
|
|
1467
|
+
expectGlobalPageToBe(option: DefaultPage): Promise<void>;
|
|
1464
1468
|
}
|
|
1465
1469
|
declare class HeaderPage extends WithPage {
|
|
1466
1470
|
announcementIcon: Locator;
|
|
@@ -1496,6 +1500,7 @@ declare class PersonalAccessTokenPage extends WithPage {
|
|
|
1496
1500
|
openPersonalAccessTokenPage(): Promise<this>;
|
|
1497
1501
|
addNewToken(tokenName: string): Promise<this>;
|
|
1498
1502
|
}
|
|
1503
|
+
type _DefaultPage1 = 'Folders' | 'Tasks' | 'Releases' | 'Templates' | 'Home';
|
|
1499
1504
|
declare class PersonalSettingsPage extends WithPage {
|
|
1500
1505
|
util: Util;
|
|
1501
1506
|
constructor(page: Page);
|
|
@@ -1523,6 +1528,8 @@ declare class PersonalSettingsPage extends WithPage {
|
|
|
1523
1528
|
editUserProfile(email: string): Promise<void>;
|
|
1524
1529
|
generateNewAccessToken(tokenName: string, expiryOptions: string): Promise<void>;
|
|
1525
1530
|
deleteAccessToken(tokenName: string): Promise<void>;
|
|
1531
|
+
setDefaultGlobalPage(option: _DefaultPage1): Promise<void>;
|
|
1532
|
+
setDefaultFolderPage(option: string): Promise<void>;
|
|
1526
1533
|
}
|
|
1527
1534
|
declare class UserModal extends WithPage {
|
|
1528
1535
|
userName: Locator;
|
|
@@ -2215,6 +2222,18 @@ declare class TaskAccessPage extends WithPage {
|
|
|
2215
2222
|
constructor(page: Page);
|
|
2216
2223
|
setTaskAvailableToAllUsers(taskName: string, enable?: boolean): Promise<void>;
|
|
2217
2224
|
}
|
|
2225
|
+
declare class AskReleasePage extends WithPage {
|
|
2226
|
+
AskReleaseButton: Locator;
|
|
2227
|
+
constructor(page: Page);
|
|
2228
|
+
clickAskReleaseButton(): Promise<void>;
|
|
2229
|
+
clickNewChatButton(): Promise<void>;
|
|
2230
|
+
clickHistory(): Promise<void>;
|
|
2231
|
+
expectAskReleaseChatWindowToBeOpen(): Promise<void>;
|
|
2232
|
+
expectAskReleaseChatWindowToBeClosed(): Promise<void>;
|
|
2233
|
+
expectCorrectResponse(response: string, timeout?: number): Promise<void>;
|
|
2234
|
+
expectChatInputDrawerToBeEnabled(): Promise<void>;
|
|
2235
|
+
feedYourQuestion(question: string): Promise<void>;
|
|
2236
|
+
}
|
|
2218
2237
|
declare class Navigation {
|
|
2219
2238
|
connections: ConnectionsPage;
|
|
2220
2239
|
dataRandomGenerator: DataRandomGenerator;
|
|
@@ -2245,6 +2264,7 @@ declare class Navigation {
|
|
|
2245
2264
|
util: Util;
|
|
2246
2265
|
workflowCatalogPage: WorkflowCatalogPage;
|
|
2247
2266
|
taskAccessPage: TaskAccessPage;
|
|
2267
|
+
askReleasePage: AskReleasePage;
|
|
2248
2268
|
constructor(page: Page);
|
|
2249
2269
|
openTemplate(id: string): Promise<ReleasePage>;
|
|
2250
2270
|
openFolder(id: string): Promise<FolderPage>;
|
|
@@ -2257,6 +2277,7 @@ declare class Navigation {
|
|
|
2257
2277
|
openPersonalAccessTokenPage(): Promise<PersonalAccessTokenPage>;
|
|
2258
2278
|
gotoHomePage(): Promise<void>;
|
|
2259
2279
|
gotoHomePageFromRelease(): Promise<void>;
|
|
2280
|
+
gotoHomePageByBreadcrumb(): Promise<void>;
|
|
2260
2281
|
gotoFolderPage(): Promise<void>;
|
|
2261
2282
|
gotoTaskPage(): Promise<void>;
|
|
2262
2283
|
gotoReleasePage(): Promise<void>;
|
|
@@ -2288,6 +2309,12 @@ declare class LoginPage extends WithPage {
|
|
|
2288
2309
|
* @param password
|
|
2289
2310
|
*/
|
|
2290
2311
|
login(userName: string, password: string): Promise<void>;
|
|
2312
|
+
/**
|
|
2313
|
+
* Login via SaaS (Keycloak SSO) with username and password
|
|
2314
|
+
* @param userName
|
|
2315
|
+
* @param password
|
|
2316
|
+
*/
|
|
2317
|
+
loginSaas(userName: string, password: string): Promise<void>;
|
|
2291
2318
|
loginWithoutReload(userName: string, password: string): Promise<void>;
|
|
2292
2319
|
/**
|
|
2293
2320
|
* Logout as authenticated user
|