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

Acceptance test: check for the tabs displayed in details of public share page #2580

Merged
merged 1 commit into from
Dec 2, 2019

Conversation

haribhandari07
Copy link
Contributor

Description

When public link share is accessed, collaborators, links and versions tabs are visible. This PR adds an acceptance test to verify this scenario, which is a bug as addressed in this issue: #2090

Related Issue

#2090

Motivation and Context

How Has This Been Tested?

CI

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:

@haribhandari07 haribhandari07 force-pushed the publiclink-not-display-collaborators branch from 9892d34 to dbdcbb5 Compare November 27, 2019 07:04
@haribhandari07 haribhandari07 marked this pull request as ready for review November 27, 2019 07:04
@haribhandari07 haribhandari07 self-assigned this Nov 27, 2019
@haribhandari07 haribhandari07 added Status:Needs-Review Needs review from a maintainer QA:team labels Nov 27, 2019
@haribhandari07 haribhandari07 force-pushed the publiclink-not-display-collaborators branch 2 times, most recently from 07d4b41 to d67bc1b Compare November 28, 2019 03:32
@haribhandari07 haribhandari07 force-pushed the publiclink-not-display-collaborators branch 2 times, most recently from 1f21cd9 to f1bc7dc Compare November 29, 2019 05:16
@skshetry skshetry added Status:Needs-release and removed Status:Needs-Review Needs review from a maintainer labels Nov 29, 2019
Copy link
Contributor

@dpakach dpakach left a comment

Choose a reason for hiding this comment

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

LGTM 👍

const visibleTabsCollection = this.elements.tabsInSideBar.selector
const tabs = []
let elements
await this.api.elements('xpath', visibleTabsCollection, function (result) {
Copy link
Member

Choose a reason for hiding this comment

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

use the location strategy of this.elements.tabsInSideBar here

getVisibleTabs: async function () {
const tabs = []
let elements
await this.api.elements('xpath', this.elements.tabsInSideBar, function (result) {
Copy link
Member

Choose a reason for hiding this comment

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

don't use hard-coded locator strategy here

@haribhandari07 haribhandari07 force-pushed the publiclink-not-display-collaborators branch from 849dcfe to ba3efc6 Compare December 2, 2019 06:42
getVisibleTabs: async function () {
const tabs = []
let elements
await this.api.elements(this.elements.tabsInSideBar, function (result) {
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
await this.api.elements(this.elements.tabsInSideBar, function (result) {
await this.api.elements('@tabsInSideBar', function (result) {

@haribhandari07 haribhandari07 force-pushed the publiclink-not-display-collaborators branch from ba3efc6 to 95c57f7 Compare December 2, 2019 07:55
@skshetry skshetry merged commit a4365df into master Dec 2, 2019
@delete-merged-branch delete-merged-branch bot deleted the publiclink-not-display-collaborators branch December 2, 2019 08:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants