Skip to content

Commit 1fb8517

Browse files
committed
fix tests
1 parent 0dcd661 commit 1fb8517

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

  • x-pack/platform/test/functional/services/cases

x-pack/platform/test/functional/services/cases/files.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,9 @@ export function CasesFilesTableServiceProvider({ getService, getPageObject }: Ft
2121

2222
return {
2323
async addFile(fileInputPath: string) {
24-
// click the AddFile button
25-
await testSubjects.click('cases-files-add');
24+
// open the Attach popover and choose the file option
25+
await testSubjects.click('case-view-attach-button');
26+
await testSubjects.click('case-view-attach-menu-file');
2627
await find.byCssSelector('[aria-label="Upload a file"]');
2728

2829
// upload a file

0 commit comments

Comments
 (0)