Reorder Plus access strategy setting
This commit is contained in:
@@ -20,8 +20,14 @@ test('sidepanel loads reusable form dialog and paypal manager before sidepanel b
|
||||
|
||||
test('sidepanel html contains paypal select and GoPay controls', () => {
|
||||
const html = fs.readFileSync('sidepanel/sidepanel.html', 'utf8');
|
||||
const plusAccountAccessStrategyIndex = html.indexOf('id="row-plus-account-access-strategy"');
|
||||
const plusPaymentMethodIndex = html.indexOf('id="row-plus-payment-method"');
|
||||
|
||||
assert.match(html, /id="row-plus-payment-method"/);
|
||||
assert.match(html, /id="row-plus-account-access-strategy"/);
|
||||
assert.notEqual(plusAccountAccessStrategyIndex, -1);
|
||||
assert.notEqual(plusPaymentMethodIndex, -1);
|
||||
assert.ok(plusAccountAccessStrategyIndex < plusPaymentMethodIndex);
|
||||
assert.match(html, /id="select-plus-payment-method"/);
|
||||
assert.match(html, /id="row-paypal-account"/);
|
||||
assert.match(html, /id="select-paypal-account"/);
|
||||
|
||||
Reference in New Issue
Block a user