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

Reopen last tab doesn't focus on newly opened tab #885

Closed
wants to merge 3 commits into from

Conversation

manavbp
Copy link
Contributor

@manavbp manavbp commented Jul 2, 2019

resolves #484

QA:
To test this PR-

  1. Open SAFE browser with multiple (eg 5) tabs open.
  2. Close one tab.
  3. Select "Reopen the last tab" from OR use CTRL + SHFT + T to open previously closed tab.
  4. The focus will change to the newly reopened tab and bring it to the front of the browser window.

@manavbp manavbp requested a review from joshuef as a code owner July 2, 2019 07:32
Copy link
Collaborator

@joshuef joshuef left a comment

Choose a reason for hiding this comment

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

Seems like an e2e test would be the last part of this!

.click( `.${CLASSES.CLOSE_TAB}` )
.expect( Selector( `.${CLASSES.TAB}` ).count )
.eql( 1 );

Copy link
Collaborator

Choose a reason for hiding this comment

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

Some checks on the tab/address bar contents are worthwhile here, I think. All we're checking now is that there are 2 tabs. Not that the one we just closed was reopened...

@S-Coyle
Copy link
Contributor

S-Coyle commented Jul 27, 2020

Closing due to PR pruning - this can be picked up again at a later date if required

@S-Coyle S-Coyle closed this Jul 27, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Reopen last tab doesn't focus on newly opened tab
3 participants