Skip to content

Commit

Permalink
Rebase conflict
Browse files Browse the repository at this point in the history
  • Loading branch information
amrita-shrestha committed Jan 17, 2023
1 parent ecd6ee1 commit b55d982
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 7 deletions.
4 changes: 1 addition & 3 deletions tests/e2e/cucumber/features/smoke/share.ocis.feature
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,9 @@ Feature: share
| name |
| folder_to_shared |
| folder_to_customShared |
| folder_to_shared |
And "Alice" logs in
And "Alice" opens the "files" app
And "Alice" creates the following resources
| resource | type |
| folder_to_shared | folder |
And "Alice" uploads the following resource
| resource | to |
| lorem.txt | folder_to_shared |
Expand Down
5 changes: 2 additions & 3 deletions tests/e2e/support/objects/app-files/share/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ import {
acceptShare,
changeShareeRole,
removeShareeArgs,
isAcceptedSharePresent,
removeSharee,
ShareArgs,
ShareStatusArgs,
Expand All @@ -14,7 +13,7 @@ import {
hasPermissionToShare,
copyQuickLink
} from './actions'
import { resourceIsNotOpenable } from './utils'
import { resourceIsNotOpenable,isAcceptedSharePresent } from './utils'
import { copyLinkArgs } from '../link/actions'

export class Share {
Expand Down Expand Up @@ -60,7 +59,7 @@ export class Share {

async isAcceptedSharePresent(resource: string, owner: string): Promise<boolean> {
await this.#page.reload()
return await isAcceptedSharePresent(this.#page, resource, owner)
return await isAcceptedSharePresent({ page: this.#page, resource, owner })
}

async hasPermissionToShare(resource: string): Promise<boolean> {
Expand Down
2 changes: 1 addition & 1 deletion tests/e2e/support/objects/app-files/share/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ export const resourceIsNotOpenable = async ({
return true
}

export const acceptedShareExists = async ({
export const isAcceptedSharePresent = async ({
page,
resource,
owner,
Expand Down

0 comments on commit b55d982

Please sign in to comment.