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

[Tests-Only]Fixed failing test on public link share #3852

Merged
merged 1 commit into from
Aug 3, 2020

Conversation

Talank
Copy link
Contributor

@Talank Talank commented Jul 29, 2020

Description

The test Scenario: user edits the password of an already existing public link and tries to access with old password was failing because two shares were created fast with the same stime. So, a new function is created to wait for at least one second between the creation of shares.

Related Issue

How Has This Been Tested?

  • 🤖

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:

@Talank Talank added the QA:team label Jul 29, 2020
@Talank Talank self-assigned this Jul 29, 2020
@Talank Talank force-pushed the fix-test-sharePublicLink branch from 265bde5 to b63a8a6 Compare July 29, 2020 10:10
@Talank Talank requested a review from individual-it July 30, 2020 03:33
if (timeSinceLastShare <= 1001) {
await client.pause(1001 - timeSinceLastShare)
}
timeOfLastShareOperation = Date.now()
Copy link
Contributor

Choose a reason for hiding this comment

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

I think this should be updated after sharing as sharing might take some time

@Talank Talank requested a review from dpakach July 31, 2020 09:11
@Talank Talank force-pushed the fix-test-sharePublicLink branch from d65b4dd to 81d5d1b Compare July 31, 2020 09:13
@@ -510,6 +529,7 @@ Given(
null,
{ password: password }
)
await updateTimeOfLastShareOperation()
Copy link
Contributor

Choose a reason for hiding this comment

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

add this line in shareFilefolder() function as there are other steps too that do share.

@Talank Talank force-pushed the fix-test-sharePublicLink branch from 81d5d1b to 928b9bf Compare July 31, 2020 10:18
@Talank Talank requested a review from dpakach July 31, 2020 10:20
Copy link
Contributor

@kiranparajuli589 kiranparajuli589 left a comment

Choose a reason for hiding this comment

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

lgtm!

@Talank Talank force-pushed the fix-test-sharePublicLink branch from 928b9bf to a4042ad Compare August 2, 2020 13:36
@individual-it individual-it merged commit 4c1db8f into master Aug 3, 2020
@delete-merged-branch delete-merged-branch bot deleted the fix-test-sharePublicLink branch August 3, 2020 05:34
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.

test webUISharingPublic/shareByPublicLink.feature:392 fails
4 participants