Skip to content

Commit 59c04e9

Browse files
committed
fix PW test for hosting module
1 parent faf2906 commit 59c04e9

14 files changed

+27
-214
lines changed

tests/playwright/e2e/admin/account-block.spec.ts

Lines changed: 0 additions & 40 deletions
This file was deleted.

tests/playwright/e2e/admin/account-change-password.spec.ts

Lines changed: 0 additions & 21 deletions
This file was deleted.

tests/playwright/e2e/admin/account-create.spec.ts

Lines changed: 0 additions & 24 deletions
This file was deleted.

tests/playwright/e2e/admin/account-delete.spec.ts

Lines changed: 0 additions & 23 deletions
This file was deleted.

tests/playwright/e2e/admin/account-set-allowed-ips.spec.ts

Lines changed: 0 additions & 21 deletions
This file was deleted.

tests/playwright/e2e/admin/account-set-gvhost-options.spec.ts

Lines changed: 0 additions & 20 deletions
This file was deleted.

tests/playwright/e2e/admin/account-set-mail-settings.spec.ts

Lines changed: 0 additions & 20 deletions
This file was deleted.

tests/playwright/e2e/admin/account-set-system-settings.spec.ts

Lines changed: 0 additions & 24 deletions
This file was deleted.

tests/playwright/e2e/admin/account/account-block.spec.ts

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -19,15 +19,6 @@ test.describe("Test account block @hipanel-module-hosting @admin", () => {
1919
await index.chooseNumberRowOnTable(rowNumber);
2020
});
2121

22-
test("Enable account block @hipanel-module-hosting @admin", async ({ adminPage }) => {
23-
24-
await index.clickDropdownBulkButton('Basic actions', 'Enable block');
25-
await accountHelper.confirmEnableBlock();
26-
27-
await accountHelper.seeSuccessAlert('Account was blocked successfully');
28-
await accountHelper.seeAccountStatus(account, 'Blocked');
29-
});
30-
3122
test("Disable account block @hipanel-module-hosting @admin", async ({ adminPage }) => {
3223

3324
await index.clickDropdownBulkButton('Basic actions', 'Disable block');
@@ -36,5 +27,14 @@ test.describe("Test account block @hipanel-module-hosting @admin", () => {
3627
await accountHelper.seeSuccessAlert('Account was unblocked successfully');
3728
await accountHelper.seeAccountStatus(account, 'Ok');
3829
});
30+
31+
test("Enable account block @hipanel-module-hosting @admin", async ({ adminPage }) => {
32+
33+
await index.clickDropdownBulkButton('Basic actions', 'Enable block');
34+
await accountHelper.confirmEnableBlock();
35+
36+
await accountHelper.seeSuccessAlert('Account was blocked successfully');
37+
await accountHelper.seeAccountStatus(account, 'Blocked');
38+
});
3939
});
4040

tests/playwright/e2e/admin/backup/backup-correct-view.spec.ts

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,10 @@ import Index from "@hipanel-core/page/Index";
44
import BackupHelper from "@hipanel-module-hosting/helper/BackupHelper";
55
import Input from "@hipanel-core/input/Input";
66

7-
const backup: object = {
8-
objectId: '40112902',
7+
let backup: object = {
8+
id: '',
99
client: 'hipanel_test_reseller',
10+
server: 'DS1380',
1011
}
1112

1213
test("Correct view backup @hipanel-module-hosting @admin", async ({ adminPage }) => {
@@ -15,7 +16,7 @@ test("Correct view backup @hipanel-module-hosting @admin", async ({ adminPage })
1516
const index = new Index(adminPage);
1617

1718
await backupHelper.gotoIndexBackup();
18-
await Input.filterBy(adminPage, 'Object ID').setValue(backup['objectId']);
19+
backup['id'] = await index.getValueInColumnByNumberRow('ID', 1);
1920
await backupHelper.gotoBackupPage(1);
2021

2122
await backupHelper.checkDetailViewData(backup);

0 commit comments

Comments
 (0)