@camunda/e2e-test-suite 0.0.519 → 0.0.520
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.
|
@@ -25,6 +25,7 @@ declare class OCTenantPage {
|
|
|
25
25
|
readonly assignRoleSubButton: Locator;
|
|
26
26
|
readonly cancelButton: Locator;
|
|
27
27
|
readonly gotItButton: Locator;
|
|
28
|
+
readonly filterTableSearchbox: Locator;
|
|
28
29
|
readonly row: (name: string) => Locator;
|
|
29
30
|
constructor(page: Page);
|
|
30
31
|
clickCreateTenantMainButton(): Promise<void>;
|
|
@@ -46,6 +47,7 @@ declare class OCTenantPage {
|
|
|
46
47
|
assertTenantCreated(): Promise<void>;
|
|
47
48
|
clickCancelButton(): Promise<void>;
|
|
48
49
|
clickGotItButton(): Promise<void>;
|
|
50
|
+
filterTable(tenantName: string): Promise<void>;
|
|
49
51
|
clickTenant(tenantName: string): Promise<void>;
|
|
50
52
|
assignUserToTenant(user: string): Promise<void>;
|
|
51
53
|
removeUserFromTenant(tenantName: string): Promise<void>;
|
|
@@ -2,7 +2,6 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.OCTenantPage = void 0;
|
|
4
4
|
const test_1 = require("@playwright/test");
|
|
5
|
-
const findLocatorInPaginatedList_1 = require("../../utils/findLocatorInPaginatedList");
|
|
6
5
|
const expectTextWithPagination_1 = require("../../utils/assertionHelpers/expectTextWithPagination");
|
|
7
6
|
class OCTenantPage {
|
|
8
7
|
page;
|
|
@@ -30,6 +29,7 @@ class OCTenantPage {
|
|
|
30
29
|
assignRoleSubButton;
|
|
31
30
|
cancelButton;
|
|
32
31
|
gotItButton;
|
|
32
|
+
filterTableSearchbox;
|
|
33
33
|
row;
|
|
34
34
|
constructor(page) {
|
|
35
35
|
this.page = page;
|
|
@@ -79,6 +79,9 @@ class OCTenantPage {
|
|
|
79
79
|
.getByRole('dialog')
|
|
80
80
|
.getByRole('button', { name: 'Cancel' });
|
|
81
81
|
this.gotItButton = page.getByRole('button', { name: 'Got it' });
|
|
82
|
+
this.filterTableSearchbox = page.getByRole('searchbox', {
|
|
83
|
+
name: 'Filter table',
|
|
84
|
+
});
|
|
82
85
|
this.row = (name) => this.page.getByRole('row').filter({ hasText: name }).first();
|
|
83
86
|
}
|
|
84
87
|
async clickCreateTenantMainButton() {
|
|
@@ -171,17 +174,21 @@ class OCTenantPage {
|
|
|
171
174
|
async clickGotItButton() {
|
|
172
175
|
await this.gotItButton.click({ timeout: 30000 });
|
|
173
176
|
}
|
|
177
|
+
async filterTable(tenantName) {
|
|
178
|
+
await this.filterTableSearchbox.click({ timeout: 60000 });
|
|
179
|
+
await this.filterTableSearchbox.fill(tenantName);
|
|
180
|
+
await this.filterTableSearchbox.press('Enter');
|
|
181
|
+
}
|
|
174
182
|
async clickTenant(tenantName) {
|
|
175
183
|
const maxRetries = 10;
|
|
176
184
|
for (let attempt = 1; attempt <= maxRetries; attempt++) {
|
|
177
185
|
try {
|
|
178
186
|
await this.page.reload();
|
|
179
187
|
await this.page.waitForLoadState('networkidle');
|
|
188
|
+
await this.filterTable(tenantName);
|
|
180
189
|
const tenant = this.page.getByText(tenantName).first();
|
|
181
|
-
await (0,
|
|
182
|
-
await tenant.click({
|
|
183
|
-
timeout: 30000,
|
|
184
|
-
});
|
|
190
|
+
await (0, test_1.expect)(tenant).toBeVisible({ timeout: 30000 });
|
|
191
|
+
await tenant.click({ timeout: 30000 });
|
|
185
192
|
return;
|
|
186
193
|
}
|
|
187
194
|
catch (error) {
|