Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions packages/testing/playwright/pages/CommunityNodesPage.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,10 @@ import type { Locator } from '@playwright/test';
import { BasePage } from './BasePage';

export class CommunityNodesPage extends BasePage {
async goto(): Promise<void> {
await this.page.goto('/settings/community-nodes');
}

// Element getters
getCommunityCards(): Locator {
return this.page.getByTestId('community-package-card');
Expand Down
4 changes: 4 additions & 0 deletions packages/testing/playwright/pages/SettingsEnvironmentPage.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,10 @@ import { expect, type Locator } from '@playwright/test';
import { BasePage } from './BasePage';

export class SettingsEnvironmentPage extends BasePage {
async goto(): Promise<void> {
await this.page.goto('/settings/environments');
}

getConnectButton(): Locator {
return this.page.getByTestId('source-control-connect-button');
}
Expand Down
4 changes: 4 additions & 0 deletions packages/testing/playwright/pages/SettingsLogStreamingPage.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,10 @@ import type { Locator } from '@playwright/test';
import { BasePage } from './BasePage';

export class SettingsLogStreamingPage extends BasePage {
async goto(): Promise<void> {
await this.page.goto('/settings/log-streaming');
}

getActionBoxUnlicensed(): Locator {
return this.page.getByTestId('action-box-unlicensed');
}
Expand Down
4 changes: 4 additions & 0 deletions packages/testing/playwright/pages/SettingsUsersPage.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,10 @@ import type { Locator } from '@playwright/test';
import { BasePage } from './BasePage';

export class SettingsUsersPage extends BasePage {
async goto(): Promise<void> {
await this.page.goto('/settings/users');
}

getSearchInput(): Locator {
return this.page.getByTestId('users-list-search');
}
Expand Down
4 changes: 4 additions & 0 deletions packages/testing/playwright/pages/TemplatesPage.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,10 @@ import type { Locator } from '@playwright/test';
import { BasePage } from './BasePage';

export class TemplatesPage extends BasePage {
async goto(): Promise<void> {
await this.page.goto('/templates');
}

getPageHeading(): Locator {
return this.page.getByRole('heading', { name: /workflow.*templates/i });
}
Expand Down
4 changes: 4 additions & 0 deletions packages/testing/playwright/pages/VariablesPage.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@ import { BasePage } from './BasePage';
import { VariableModal } from './components/VariableModal';

export class VariablesPage extends BasePage {
async goto(): Promise<void> {
await this.page.goto('/variables');
}

readonly variableModal = new VariableModal(this.page.getByTestId('variableModal-modal'));

getUnavailableResourcesList() {
Expand Down
6 changes: 5 additions & 1 deletion packages/testing/playwright/pages/WorkflowActivationModal.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,14 @@ import type { Locator } from '@playwright/test';
import { BasePage } from './BasePage';

export class WorkflowActivationModal extends BasePage {
getModal(): Locator {
get container(): Locator {
return this.page.getByTestId('activation-modal');
}

getModal(): Locator {
return this.container;
}

getDontShowAgainCheckbox(): Locator {
return this.getModal().getByText("Don't show again");
}
Expand Down
Loading