Reorder Plus access strategy setting

This commit is contained in:
QLHazyCoder
2026-05-19 11:34:06 +08:00
parent d235b82ccf
commit 98e776348e
4 changed files with 18 additions and 12 deletions
+6
View File
@@ -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"/);