Skip to content

Commit 0085312

Browse files
committed
add test
1 parent 932acf8 commit 0085312

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

  • x-pack/platform/test/functional_with_es_ssl/apps/cases/group1

x-pack/platform/test/functional_with_es_ssl/apps/cases/group1/view_case.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -915,6 +915,10 @@ export default ({ getPageObject, getService }: FtrProviderContext) => {
915915
it('adds a file to the case', async () => {
916916
await cases.casesFilesTable.addFile(require.resolve('./elastic_logo.png'));
917917

918+
// The files accordion only renders when the case has at least one
919+
// file, so confirm it appears after the upload.
920+
await testSubjects.existOrFail('case-view-attachment-accordion-file');
921+
918922
// make sure the uploaded file is displayed on the table
919923
await find.byButtonText('elastic_logo.png');
920924
});

0 commit comments

Comments
 (0)