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

Commit

Permalink
fixed selector for webdriver test
Browse files Browse the repository at this point in the history
  • Loading branch information
jkup committed Jan 11, 2017
1 parent 886cf71 commit ac78127
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
6 changes: 3 additions & 3 deletions test/components/ledgerPanelTest.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/* global describe, it, beforeEach, before */

const Brave = require('../lib/brave')
const {urlInput, advancedSettings, addFundsButton, paymentsStatus, paymentsWelcomePage, paymentsTab, walletSwitch, ledgerTable} = require('../lib/selectors')
const {urlInput, advancedSettings, addFundsButton, paymentsStatus, paymentsWelcomePage, paymentsTab, walletSwitch, siteSettingItem, ledgerTable} = require('../lib/selectors')
const assert = require('assert')

const prefsUrl = 'about:preferences'
Expand Down Expand Up @@ -206,8 +206,8 @@ describe('synopsis', function () {
.click(paymentsTab)
.waitForVisible('[data-l10n-id="publisher"]')
.click('[data-l10n-id="publisher"]')
.waitForVisible(ledgerTable + ' .switchBackground')
.click(ledgerTable + ' .switchBackground')
.waitForVisible(siteSettingItem + ' .switchBackground')
.click(siteSettingItem + ' .switchBackground')
.windowByUrl(Brave.browserWindowUrl)
.waitUntil(function () {
return this.getAppState().then((val) => {
Expand Down
1 change: 1 addition & 0 deletions test/lib/selectors.js
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@ module.exports = {
advancedSettings: '.advancedSettings',
fundsSelectBox: '.fundsSelectBox',
paymentsStatus: '.walletStatus',
siteSettingItem: '.siteSettingItem',
ledgerTable: '.ledgerTable',
bitcoinDashboard: '.bitcoinDashboard',
modalCloseButton: 'button.close',
Expand Down

0 comments on commit ac78127

Please sign in to comment.