test: Migrate Cypress test for the log view (#19108)

Co-authored-by: Claude <noreply@anthropic.com>
This commit is contained in:
Suguru Inoue
2025-09-03 14:21:28 +02:00
committed by GitHub
parent 6bd4edf1ec
commit f7479bb2e5
17 changed files with 428 additions and 247 deletions

View File

@@ -513,12 +513,8 @@ export class NodeDetailsViewPage extends BasePage {
return this.getInputPanel().locator('table th').nth(index);
}
getInputTableCell(row: number, col: number) {
return this.getInputPanel().locator('table tbody tr').nth(row).locator('td').nth(col);
}
getInputTbodyCell(row: number, col: number) {
return this.getInputTableCell(row, col);
return this.getInputPanel().locator('table tbody tr').nth(row).locator('td').nth(col);
}
getAssignmentName(paramName: string, index = 0) {
@@ -581,7 +577,7 @@ export class NodeDetailsViewPage extends BasePage {
}
getInputTableCellSpan(row: number, col: number, dataName: string) {
return this.getInputTableCell(row, col).locator(`span[data-name="${dataName}"]`).first();
return this.getInputTbodyCell(row, col).locator(`span[data-name="${dataName}"]`).first();
}
getAddFieldToSortByButton() {
@@ -630,4 +626,16 @@ export class NodeDetailsViewPage extends BasePage {
await input.clear();
await input.fill(value);
}
getInputSelect() {
return this.page.getByTestId('ndv-input-select').locator('input');
}
getInputTableRows() {
return this.getInputTable().locator('tr');
}
getOutputRunSelectorInput() {
return this.getOutputPanel().locator('[data-test-id="run-selector"] input');
}
}