Skip to content

Commit

Permalink
fixed e2e tests
Browse files Browse the repository at this point in the history
  • Loading branch information
grimmoc authored and JammingBen committed Aug 3, 2023
1 parent c843c80 commit 4ab3716
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions tests/e2e/support/objects/app-files/resource/actions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -73,9 +73,8 @@ const tagTableCell =
const tagInFilesTable = '//*[contains(@class, "oc-tag")]//span[text()="%s"]//ancestor::a'
const tagInDetailsPanel = '//*[@data-testid="tags"]/td//span[text()="%s"]'
const tagInInputForm =
'//span[contains(@class, "vs__selected")]//span[text()="%s"]//ancestor::span//button[contains(@class, "vs__deselect")]'
'//span[contains(@class, "tags-control-tag")]//span[text()="%s"]//ancestor::span//button[contains(@class, "vs__deselect")]'
const tagFormInput = '#tags-form input'
const compareDialogConfirmBtn = '.compare-save-dialog-confirm-btn'
const resourcesAsTiles = '#files-view .oc-tiles'
const fileVersionSidebar = '#oc-file-versions-sidebar'
const noLinkMessage = '#web .oc-link-resolve-error-message'
Expand Down Expand Up @@ -1091,7 +1090,6 @@ export const addTagsToResource = async (args: resourceTagsArgs): Promise<void> =
await page.locator('.vs__dropdown-option').first().click()
}

await page.locator(compareDialogConfirmBtn).click()
await sidebar.close({ page })
}

Expand All @@ -1112,8 +1110,6 @@ export const removeTagsFromResource = async (args: resourceTagsArgs): Promise<vo
for (const tag of tags) {
await page.locator(util.format(tagInInputForm, tag)).click()
}

await page.locator(compareDialogConfirmBtn).click()
await sidebar.close({ page })
}

Expand Down

0 comments on commit 4ab3716

Please sign in to comment.