Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 0 additions & 9 deletions tests/e2e/cucumber/steps/ui/links.ts
Original file line number Diff line number Diff line change
Expand Up @@ -223,15 +223,6 @@ When(
}
)

When(
'{string} opens shared-with-me page from the internal link',
async function (this: World, stepUser: string): Promise<void> {
const actor = this.actorsEnvironment.getActor({ key: stepUser })
const pageObject = new objects.applicationFiles.page.shares.WithMe({ page: actor.page })
await pageObject.openShareWithMeFromInternalLink(actor)
}
)

When(
'{string} copies the link {string} of resource {string}',
async function (
Expand Down
22 changes: 0 additions & 22 deletions tests/e2e/cucumber/steps/ui/public.ts
Original file line number Diff line number Diff line change
Expand Up @@ -153,28 +153,6 @@ When(
}
)

When(
'{string} uploads the following resource(s) in internal link named {string}',
async function (
this: World,
stepUser: string,
link: string,
stepTable: DataTable
): Promise<void> {
const { page } = this.actorsEnvironment.getActor({ key: stepUser })
const pageObject = new objects.applicationFiles.page.Public({ page })
const { url } = this.linksEnvironment.getLink({ name: link })
for (const info of stepTable.hashes()) {
await pageObject.uploadInternal({
to: info.to,
resources: [this.filesEnvironment.getFile({ name: info.resource })],
option: info.option,
link: url
})
}
}
)

Then(
'{string} should not be able to open the old link {string}',
async function (this: World, stepUser: string, name: string): Promise<void> {
Expand Down
11 changes: 0 additions & 11 deletions tests/e2e/cucumber/steps/ui/session.ts
Original file line number Diff line number Diff line change
Expand Up @@ -94,17 +94,6 @@ Then('{string} fails to log in', async function (this: World, stepUser: string):
await page.locator('#oc-login-error-message').waitFor()
})

When(
'{string} logs in from the internal link',
async function (this: World, stepUser: string): Promise<void> {
const sessionObject = await createNewSession(this, stepUser)
const { page } = this.actorsEnvironment.getActor({ key: stepUser })
const user = this.usersEnvironment.getUser({ key: stepUser })
await sessionObject.login(user)
await page.locator('#web').waitFor()
}
)

When(
/^"([^"]*)" waits for token renewal via (iframe|refresh token)$/,
async function (this: World, stepUser: string, renewalType: string): Promise<void> {
Expand Down
10 changes: 0 additions & 10 deletions tests/e2e/support/objects/app-files/page/public.ts
Original file line number Diff line number Diff line change
Expand Up @@ -114,16 +114,6 @@ export class Public {
await this.#page.locator('body').click()
}

async uploadInternal(
args: Omit<po.uploadResourceArgs, 'page'> & { link: string }
): Promise<void> {
// link is the public link url
const { link } = args
delete args.link
await po.uploadResource({ ...args, page: this.#page })
await this.#page.goto(link)
}

async delete(args: Omit<po.deleteResourceArgs, 'page'>): Promise<void> {
const startUrl = this.#page.url()
await po.deleteResource({ ...args, page: this.#page, isPublicLink: true })
Expand Down
9 changes: 0 additions & 9 deletions tests/e2e/support/objects/app-files/page/shares/withMe.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,13 +21,4 @@ export class WithMe {
'files page'
)
}

async openShareWithMeFromInternalLink(actor: Actor): Promise<void> {
const [newTab] = await Promise.all([
this.#page.waitForEvent('popup'),
this.#page.locator(openShareWithMeButton).click()
])
await newTab.locator(shareWithMeNavSelector).waitFor()
actor.savePage(newTab)
}
}
Loading