test: Migrate expression editor modal tests from cypress -> playwright (#19535)

This commit is contained in:
Elias Meire
2025-09-15 11:43:09 +02:00
committed by GitHub
parent b5adcc8f9f
commit a5c18c3c2d
3 changed files with 142 additions and 146 deletions

View File

@@ -513,6 +513,31 @@ export class NodeDetailsViewPage extends BasePage {
await this.getInlineExpressionEditorItemPrevButton().click();
}
async openExpressionEditorModal(parameterName: string) {
await this.activateParameterExpressionEditor(parameterName);
const parameter = this.getParameterInput(parameterName);
await parameter.click();
const expander = parameter.getByTestId('expander');
await expander.click();
await this.page.getByTestId('expression-modal-input').waitFor({ state: 'visible' });
}
getExpressionEditorModalInput() {
return this.page.getByTestId('expression-modal-input').getByRole('textbox');
}
async fillExpressionEditorModalInput(text: string) {
const input = this.getExpressionEditorModalInput();
await input.clear();
await input.click();
await input.fill(text);
}
getExpressionEditorModalOutput() {
return this.page.getByTestId('expression-modal-output');
}
async typeIntoParameterInput(parameterName: string, content: string): Promise<void> {
const input = this.getParameterInput(parameterName);
await input.type(content);