diff --git a/test/components/ledgerPanelTest.js b/test/components/ledgerPanelTest.js index 6642a8dee84..471acbd6d63 100644 --- a/test/components/ledgerPanelTest.js +++ b/test/components/ledgerPanelTest.js @@ -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' @@ -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) => { diff --git a/test/lib/selectors.js b/test/lib/selectors.js index 6ac91bc0f65..b984251ec00 100644 --- a/test/lib/selectors.js +++ b/test/lib/selectors.js @@ -61,6 +61,7 @@ module.exports = { advancedSettings: '.advancedSettings', fundsSelectBox: '.fundsSelectBox', paymentsStatus: '.walletStatus', + siteSettingItem: '.siteSettingItem', ledgerTable: '.ledgerTable', bitcoinDashboard: '.bitcoinDashboard', modalCloseButton: 'button.close',