Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[full-ci][tests-only]Add internal link related e2e tests #8260

Merged
merged 4 commits into from
Feb 2, 2023

Conversation

amrita-shrestha
Copy link
Contributor

@amrita-shrestha amrita-shrestha commented Jan 18, 2023

Description

This PR adds an internal link related e2e tests scenario for personal space

  • Remaining for project space @saw-jan bro please continue because i will be on long vacation

Followup:

Related Issue

Motivation and Context

How Has This Been Tested?

  • Locally

Screenshots (if appropriate):

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)
  • Technical debt
  • Tests

Checklist:

  • Code changes
  • Unit tests added
  • Acceptance tests added
  • Documentation ticket raised:

@amrita-shrestha amrita-shrestha self-assigned this Jan 18, 2023
@saw-jan saw-jan self-assigned this Jan 18, 2023
Comment on lines +31 to +37
public async newPage(newPage: Page): Promise<Page> {
// close the old page
await this.page.close()
// set the new page
this.page = newPage
return this.page
}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Here, actor's page will be replaced with new tab and the old tab is closed
Please, suggest if it feels odd and if you have other great ideas.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

if we can store browser context for multiple pages then it will be helpful in the future when we need to open a new page do some tasks and come back to the old page and do some task and close the old page.
Or it is not needed for now?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

IMHO may be needed in the future, but not in this PR

@saw-jan saw-jan mentioned this pull request Jan 24, 2023
18 tasks
Copy link
Member

@SagarGi SagarGi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

other looks good to me 👍

@saw-jan saw-jan force-pushed the addInternalLinkTests branch from 6377f2d to 4cbff31 Compare January 26, 2023 04:18
@saw-jan saw-jan changed the base branch from master to stable-6.0 January 30, 2023 03:40
@saw-jan saw-jan force-pushed the addInternalLinkTests branch 2 times, most recently from 1cbee7a to 4958bbf Compare January 30, 2023 03:58
tests/e2e/cucumber/steps/ui/session.ts Show resolved Hide resolved
Comment on lines +31 to +37
public async newPage(newPage: Page): Promise<Page> {
// close the old page
await this.page.close()
// set the new page
this.page = newPage
return this.page
}
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

if we can store browser context for multiple pages then it will be helpful in the future when we need to open a new page do some tasks and come back to the old page and do some task and close the old page.
Or it is not needed for now?

@saw-jan saw-jan force-pushed the addInternalLinkTests branch from 4958bbf to 5f05ff2 Compare February 1, 2023 10:26
@ownclouders
Copy link
Contributor

@saw-jan saw-jan force-pushed the addInternalLinkTests branch from 5f05ff2 to dc4283e Compare February 1, 2023 10:50
@sonarqubecloud
Copy link

sonarqubecloud bot commented Feb 1, 2023

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
No Duplication information No Duplication information

@SagarGi SagarGi requested a review from phil-davis February 2, 2023 03:31
@saw-jan saw-jan requested a review from SwikritiT February 2, 2023 06:38
@saw-jan saw-jan merged commit dfd5961 into stable-6.0 Feb 2, 2023
@delete-merged-branch delete-merged-branch bot deleted the addInternalLinkTests branch February 2, 2023 10:29
ownclouders pushed a commit that referenced this pull request Feb 2, 2023
Author: Amrita <[email protected]>
Date:   Thu Feb 2 16:14:13 2023 +0545

    [full-ci][tests-only]Add internal link related e2e tests (#8260)

    * Add e2e tests related to internal link in personal space

    * refactor

    re-use the steps

    * refactor share via api for link share

    address reviews

    * check if can edit the share

    ---------

    Co-authored-by: Saw-jan <[email protected]>
ownclouders pushed a commit that referenced this pull request Feb 3, 2023
Author: Amrita <[email protected]>
Date:   Thu Feb 2 16:14:13 2023 +0545

    [full-ci][tests-only]Add internal link related e2e tests (#8260)

    * Add e2e tests related to internal link in personal space

    * refactor

    re-use the steps

    * refactor share via api for link share

    address reviews

    * check if can edit the share

    ---------

    Co-authored-by: Saw-jan <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants