Skip to content
This repository has been archived by the owner on Dec 11, 2019. It is now read-only.

Add webdriver test to noScript exceptions on compact bravery panel and apply .changeSetting #9075

Merged
merged 2 commits into from
Jun 2, 2017
Merged

Add webdriver test to noScript exceptions on compact bravery panel and apply .changeSetting #9075

merged 2 commits into from
Jun 2, 2017

Conversation

luixxiul
Copy link
Contributor

@luixxiul luixxiul commented May 26, 2017

Follow-up to #8837

Because does not apply exceptions from private tabs to regular tabs is already complex somewhat, I'm adding another test to cover #8837 on compact bravery panel.

Also I applied this.app.client.changeSetting to the other tests with 17c2f04

Test Plan:

npm run test -- --grep='does not apply exceptions from private tabs to regular tabs on compact panel'
npm run test -- --grep='Bravery Panel'

Submitter Checklist:

  • Submitted a ticket for my issue if one did not already exist.
  • Used Github auto-closing keywords in the commit message.
  • Added/updated tests for this change (for new code or code which already has tests).
  • Ran git rebase -i to squash commits (if needed).

Reviewer Checklist:

Tests

  • Adequate test coverage exists to prevent regressions
  • Tests should be independent and work correctly when run individually or as a suite ref
  • New files have MPL2 license header

Follow-up to #8837

Test Plan:
npm run test -- --grep='does not apply exceptions from private tabs to regular tabs on compact panel'
.waitForVisible(compactBraveryPanelSwitch)
.click(compactBraveryPanelSwitch)
.windowByUrl(Brave.browserWindowUrl)
.keys(Brave.keys.ESCAPE)
Copy link
Member

Choose a reason for hiding this comment

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

i think you can avoid the above by just using this.app.client.changeSetting

Copy link
Member

Choose a reason for hiding this comment

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

otherwise lgtm

Copy link
Contributor Author

Choose a reason for hiding this comment

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

this.app.client.changeSetting

ya that's the solution I have been looking for. thanks for the tip.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Test Plan:
1. npm run test -- --grep='Bravery Panel'
@luixxiul luixxiul changed the title Add webdriver test to noScript exceptions on compact bravery panel Add webdriver test to noScript exceptions on compact bravery panel and apply .changeSetting May 29, 2017
@luixxiul luixxiul requested a review from diracdeltas June 1, 2017 18:13
Copy link
Contributor

@cezaraugusto cezaraugusto left a comment

Choose a reason for hiding this comment

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

nice, thanks ++

@cezaraugusto cezaraugusto merged commit 8e1607e into brave:master Jun 2, 2017
@luixxiul luixxiul deleted the noscriptExceptions-test-compact-panel branch June 2, 2017 04:25
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