Skip to content

Commit

Permalink
Fix failing e2e test
Browse files Browse the repository at this point in the history
  • Loading branch information
dersmon committed Aug 30, 2023
1 parent 108ff57 commit f5d7b52
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ <h5 class="modal-title" i18n="@@imageUpload.imageMetadataModal.header">
</div>

<div class="modal-footer">
<button type="button" class="btn btn-primary"
<button id="confirmUploadButton" type="button" class="btn btn-primary"
(click)="activeModal.close(metadata)">
<span i18n="@@buttons.ok">OK</span>
</button>
Expand Down
1 change: 1 addition & 0 deletions desktop/test/e2e/images/image-overview-upload.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ test.describe('images/upload --', () => {

await ImageOverviewPage.uploadImage(path.resolve(__dirname, '../../test-data/' + imageFileName));
await ImageOverviewPage.chooseImageSubcategory(0);
await ImageOverviewPage.clickUploadConfirm();
};


Expand Down
4 changes: 4 additions & 0 deletions desktop/test/e2e/images/image-overview.page.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,10 @@ export module ImageOverviewPage {
return click('#choose-image-subcategory-option-' + index)
}

export function clickUploadConfirm() {
return click('#confirmUploadButton')
}


export function clickDeselectButton() {

Expand Down

0 comments on commit f5d7b52

Please sign in to comment.