diff --git a/tests/e2e/cucumber/steps/ui/links.ts b/tests/e2e/cucumber/steps/ui/links.ts index af344efe7ad..90f6f3ad1f6 100644 --- a/tests/e2e/cucumber/steps/ui/links.ts +++ b/tests/e2e/cucumber/steps/ui/links.ts @@ -223,15 +223,6 @@ When( } ) -When( - '{string} opens shared-with-me page from the internal link', - async function (this: World, stepUser: string): Promise { - 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 ( diff --git a/tests/e2e/cucumber/steps/ui/public.ts b/tests/e2e/cucumber/steps/ui/public.ts index 34b1d6c1912..4416e48b16b 100644 --- a/tests/e2e/cucumber/steps/ui/public.ts +++ b/tests/e2e/cucumber/steps/ui/public.ts @@ -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 { - 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 { diff --git a/tests/e2e/cucumber/steps/ui/session.ts b/tests/e2e/cucumber/steps/ui/session.ts index dc2db5c5cb5..6e04be753d0 100644 --- a/tests/e2e/cucumber/steps/ui/session.ts +++ b/tests/e2e/cucumber/steps/ui/session.ts @@ -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 { - 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 { diff --git a/tests/e2e/support/objects/app-files/page/public.ts b/tests/e2e/support/objects/app-files/page/public.ts index 9169f826aad..7e80d178844 100644 --- a/tests/e2e/support/objects/app-files/page/public.ts +++ b/tests/e2e/support/objects/app-files/page/public.ts @@ -114,16 +114,6 @@ export class Public { await this.#page.locator('body').click() } - async uploadInternal( - args: Omit & { link: string } - ): Promise { - // 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): Promise { const startUrl = this.#page.url() await po.deleteResource({ ...args, page: this.#page, isPublicLink: true }) diff --git a/tests/e2e/support/objects/app-files/page/shares/withMe.ts b/tests/e2e/support/objects/app-files/page/shares/withMe.ts index aac649fa02d..35f2fe052f7 100644 --- a/tests/e2e/support/objects/app-files/page/shares/withMe.ts +++ b/tests/e2e/support/objects/app-files/page/shares/withMe.ts @@ -21,13 +21,4 @@ export class WithMe { 'files page' ) } - - async openShareWithMeFromInternalLink(actor: Actor): Promise { - const [newTab] = await Promise.all([ - this.#page.waitForEvent('popup'), - this.#page.locator(openShareWithMeButton).click() - ]) - await newTab.locator(shareWithMeNavSelector).waitFor() - actor.savePage(newTab) - } }