Skip to content

Commit ac46dd9

Browse files
committed
update base-page and remove useless file
1 parent 451297b commit ac46dd9

File tree

2 files changed

+0
-31
lines changed

2 files changed

+0
-31
lines changed

package-lock.json

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

zeppelin-web-angular/e2e/models/base-page.ts

Lines changed: 0 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -18,25 +18,21 @@ export const BASE_URL = 'http://localhost:4200';
1818
export class BasePage {
1919
readonly page: Page;
2020

21-
// Common Zeppelin component locators
2221
readonly zeppelinNodeList: Locator;
2322
readonly zeppelinWorkspace: Locator;
24-
readonly zeppelinHeader: Locator;
2523
readonly zeppelinPageHeader: Locator;
2624

2725
constructor(page: Page) {
2826
this.page = page;
2927
this.zeppelinNodeList = page.locator('zeppelin-node-list');
3028
this.zeppelinWorkspace = page.locator('zeppelin-workspace');
31-
this.zeppelinHeader = page.locator('zeppelin-header');
3229
this.zeppelinPageHeader = page.locator('zeppelin-page-header');
3330
}
3431

3532
async waitForPageLoad(): Promise<void> {
3633
await this.page.waitForLoadState('domcontentloaded', { timeout: 15000 });
3734
}
3835

39-
// Common navigation patterns
4036
async navigateToRoute(
4137
route: string,
4238
options?: { timeout?: number; waitUntil?: 'load' | 'domcontentloaded' | 'networkidle' }
@@ -62,27 +58,6 @@ export class BasePage {
6258
await this.page.waitForURL(url => !url.toString().includes(fragment));
6359
}
6460

65-
// Common form interaction patterns
66-
async fillInput(locator: Locator, value: string, options?: { timeout?: number; force?: boolean }): Promise<void> {
67-
await locator.fill(value, { timeout: 15000, ...options });
68-
}
69-
70-
async clickElement(locator: Locator, options?: { timeout?: number; force?: boolean }): Promise<void> {
71-
await locator.click({ timeout: 15000, ...options });
72-
}
73-
74-
async getInputValue(locator: Locator): Promise<string> {
75-
return await locator.inputValue();
76-
}
77-
78-
async isElementVisible(locator: Locator): Promise<boolean> {
79-
return await locator.isVisible();
80-
}
81-
82-
async isElementEnabled(locator: Locator): Promise<boolean> {
83-
return await locator.isEnabled();
84-
}
85-
8661
async getElementText(locator: Locator): Promise<string> {
8762
return (await locator.textContent()) || '';
8863
}

0 commit comments

Comments
 (0)