Reorder Plus access strategy setting
This commit is contained in:
@@ -36,7 +36,7 @@ test('flow registry exposes canonical flow and target metadata', () => {
|
||||
);
|
||||
assert.deepEqual(
|
||||
flowRegistry.getSettingsGroupDefinition('openai-plus')?.rowIds,
|
||||
['row-plus-mode', 'row-plus-payment-method', 'row-plus-account-access-strategy']
|
||||
['row-plus-mode', 'row-plus-account-access-strategy', 'row-plus-payment-method']
|
||||
);
|
||||
assert.equal(flowRegistry.getPublicationTargetDefinition('kiro', 'kiro-rs')?.label, 'kiro.rs');
|
||||
});
|
||||
|
||||
@@ -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