mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-17 10:02:05 +00:00
test: Migrate if node test from cypress -> playwright (#19448)
This commit is contained in:
@@ -885,6 +885,47 @@ export class NodeDetailsViewPage extends BasePage {
|
||||
getCredentialLabel(credentialType: string) {
|
||||
return this.page.getByText(credentialType);
|
||||
}
|
||||
|
||||
getFilterComponent(paramName: string) {
|
||||
return this.page.getByTestId(`filter-${paramName}`);
|
||||
}
|
||||
|
||||
getFilterConditions(paramName: string) {
|
||||
return this.getFilterComponent(paramName).getByTestId('filter-condition');
|
||||
}
|
||||
|
||||
getFilterCondition(paramName: string, index: number = 0) {
|
||||
return this.getFilterComponent(paramName).getByTestId('filter-condition').nth(index);
|
||||
}
|
||||
|
||||
getFilterConditionLeft(paramName: string, index: number = 0) {
|
||||
return this.getFilterComponent(paramName).getByTestId('filter-condition-left').nth(index);
|
||||
}
|
||||
|
||||
getFilterConditionRight(paramName: string, index: number = 0) {
|
||||
return this.getFilterComponent(paramName).getByTestId('filter-condition-right').nth(index);
|
||||
}
|
||||
|
||||
getFilterConditionOperator(paramName: string, index: number = 0) {
|
||||
return this.getFilterComponent(paramName).getByTestId('filter-operator-select').nth(index);
|
||||
}
|
||||
|
||||
getFilterConditionRemove(paramName: string, index: number = 0) {
|
||||
return this.getFilterComponent(paramName).getByTestId('filter-remove-condition').nth(index);
|
||||
}
|
||||
|
||||
getFilterConditionAdd(paramName: string) {
|
||||
return this.getFilterComponent(paramName).getByTestId('filter-add-condition');
|
||||
}
|
||||
|
||||
async addFilterCondition(paramName: string) {
|
||||
await this.getFilterConditionAdd(paramName).click();
|
||||
}
|
||||
|
||||
async removeFilterCondition(paramName: string, index: number) {
|
||||
await this.getFilterConditionRemove(paramName, index).click();
|
||||
}
|
||||
|
||||
getWebhookTestEvent() {
|
||||
return this.page.getByText('Listening for test event');
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user