Skip to content

Conversation

phil-davis
Copy link
Contributor

Description

When a test step logs out, notify FilesContext so that it can reset anything that it has been remembering about where it is or what has been done on the files page.

Related Issue

Motivation and Context

If I write UI test steps that navigate into foldera as user1, check some stuff, then logout and login as user1 and navigate into folderb and check some stuff, then FilesContext keeps appending the folders that I have navigated into.

That makes FilesContext think that the test is now in foldera/folderb - which causes issues for any test steps that try to download a file from the "current folder".

How Has This Been Tested?

UI tests run locally, including with future test steps for sharing with groups (that is how I discovered this bug)

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)

Bug fix to UI test infrastructure only - no bug in end-user code.

Checklist:

  • My code follows the code style of this project.
  • My change requires a change to the documentation.
  • I have updated the documentation accordingly.
  • I have read the CONTRIBUTING document.
  • I have added tests to cover my changes.
  • All new and existing tests passed.

@phil-davis
Copy link
Contributor Author

Backport stable10 #29614

@phil-davis phil-davis merged commit 82cc158 into master Nov 17, 2017
@phil-davis phil-davis deleted the ui-tests-reset-FilesContext-on-logout branch November 17, 2017 15:58
@codecov
Copy link

codecov bot commented Nov 17, 2017

Codecov Report

Merging #29611 into master will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff            @@
##             master   #29611   +/-   ##
=========================================
  Coverage     61.82%   61.82%           
  Complexity    17501    17501           
=========================================
  Files          1045     1045           
  Lines         57712    57712           
=========================================
  Hits          35683    35683           
  Misses        22029    22029

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update de655fa...c525773. Read the comment docs.

@lock
Copy link

lock bot commented Aug 1, 2019

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@lock lock bot locked as resolved and limited conversation to collaborators Aug 1, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants