Skip to content

Commit

Permalink
fixed acceptance tests + renamed drop
Browse files Browse the repository at this point in the history
  • Loading branch information
grimmoc committed Aug 24, 2023
1 parent 581d344 commit 7928459
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,8 @@
>
<oc-icon name="more-2" />
<oc-drop
:drop-id="'show-more-share-options-btn'"
ref="showMoreShareOptionsDropRef"
:drop-id="'show-more-share-options-drop'"
:toggle="'#show-more-share-options-btn'"
mode="click"
padding-size="small"
Expand Down Expand Up @@ -181,7 +182,7 @@ export default defineComponent({
const contextMenuButtonRef = ref(undefined)
const showContextMenuOnBtnClick = (data, user) => {
const showContextMenuOnBtnClick = (data) => {
const { dropdown, event } = data
if (dropdown?.tippy === undefined) {
return
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,9 +51,8 @@ module.exports = {
},
expandExpirationDatePicker: function (collaborator) {
if (!collaborator) {
this.waitForElementVisible('@expirationDatePickerTrigger').click(
'@expirationDatePickerTrigger'
)
this.waitForElementVisible('@threeDotsTrigger').click('@threeDotsTrigger')
this.waitForElementVisible('@setExpirationDateButton').click('@setExpirationDateButton')
return client.page.FilesPageElement.expirationDatePicker()
}
const informationSelector = util.format(
Expand Down Expand Up @@ -311,6 +310,12 @@ module.exports = {
'//p[contains(@class, "files-collaborators-collaborator-name") and text()="%s"]/../..//span[contains(@class, "files-collaborators-collaborator-expires")]',
locateStrategy: 'xpath'
},
threeDotsTrigger: {
selector: 'button#show-more-share-options-btn'
},
setExpirationDateButton: {
selector: '.files-recipient-expiration-datepicker'
},
expirationDatePickerTrigger: {
selector: '//button[contains(@class, "files-collaborators-expiration-button")]',
locateStrategy: 'xpath'
Expand Down

0 comments on commit 7928459

Please sign in to comment.