test: add import and export flow tests

This commit is contained in:
Jakub P
2025-03-10 22:40:28 +01:00
parent 0b7e29160e
commit 4e1fb19832
8 changed files with 475 additions and 3 deletions

View File

@@ -0,0 +1,20 @@
const { AuthenticatedPage } = require('./authenticated-page');
export class ImportFlowDialog extends AuthenticatedPage {
constructor(page) {
super(page);
this.fileName = page.getByTestId('file-name');
this.fileNameWrapper = page.getByTestId('file-name-wrapper');
this.importButton = page.getByTestId('import-flow-dialog-import-button');
this.fileInput = page.locator("input[type='file']");
this.genericImportError = page.getByTestId(
'import-flow-dialog-generic-error-alert'
);
this.importParsingError = page.getByTestId(
'import-flow-dialog-parsing-error-alert'
);
this.successAlert = page.getByTestId('import-flow-dialog-success-alert');
this.successAlertLink = this.successAlert.getByRole('link');
}
}