Skip to content

Commit

Permalink
Fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
dominikriemer committed Jan 31, 2025
1 parent a417b14 commit bb73438
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,8 @@ public void writeItem(OutputStream outputStream,
columnIndex++;
}
startRow++;
excelRow = ws.createRow(startRow);
columnIndex = 0;
}
for (Object column : row) {
var cell = excelRow.createCell(columnIndex);
Expand Down
2 changes: 1 addition & 1 deletion ui/cypress/support/utils/DataDownloadDialogUtils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ export class DataDownloadDialogUtils {

// Format
cy.dataCy(
`download-configuration-${exportConfig.formatExportConfig.exportFormat}`,
`download-configuration-${exportConfig.formatExportConfig.format}`,
).within(() => {
cy.get('.mdc-radio').click();
});
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,9 @@ describe('Test data explorer data download dialog', () => {

it('Test csv export with semicolon', () => {
formatTestsExportConfig.formatExportConfig = {
exportFormat: 'csv',
format: 'csv',
delimiter: 'semicolon',
headerColumnName: 'key',
};
const resultFile = 'testCsvSemicolon.csv';

Expand All @@ -65,8 +66,9 @@ describe('Test data explorer data download dialog', () => {

it('Test csv export with comma', () => {
formatTestsExportConfig.formatExportConfig = {
exportFormat: 'csv',
format: 'csv',
delimiter: 'comma',
headerColumnName: 'key',
};
const resultFile = 'testCsvComma.csv';

Expand All @@ -79,7 +81,7 @@ describe('Test data explorer data download dialog', () => {

it('Test json export', () => {
formatTestsExportConfig.formatExportConfig = {
exportFormat: 'json',
format: 'json',
};

const resultFile = 'testJson.json';
Expand All @@ -92,8 +94,9 @@ describe('Test data explorer data download dialog', () => {

it('Test csv export with semicolon and remove missing values', () => {
formatTestsExportConfig.formatExportConfig = {
exportFormat: 'csv',
format: 'csv',
delimiter: 'semicolon',
headerColumnName: 'key',
};
formatTestsExportConfig.dataExportConfig.missingValueBehaviour =
'ignore';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ export class DateInputComponent {
dateChanged = new EventEmitter<void>();

get formattedDate(): string {
return this.date ? format(this.date, "yyyy-MM-dd'T'HH:mm") : '';
return this.date ? format(this.date, "yyyy-MM-dd'T'HH:mm:ss") : '';
}

onDateChange(value: string): void {
Expand Down

0 comments on commit bb73438

Please sign in to comment.