fix(tests): restore green contract suite
Drop the legacy credits_added message label per the hard-cut rule, switch
three remaining Font Awesome 4 icons to FA5 solid, and align two widget
contracts with the badge rule grouping and renderer list from fc04bf65.
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
1 parent
b32b56f8bc
commit
48e54dc115
7 files changed
+10
-15
No files matched your search
@@ -165,22 +165,19 @@ test('role broadcasts require confirmation of the current role and count on the
|
||||
assert.equal(nonce_checked.length, 8);
|
||||
});
|
||||
|
||||
test('asset and credit types use Chinese labels in filters, row badges and details', () => {
|
||||
const { asset_types, filter_form, asset_table, credits_table } = harness();
|
||||
test('asset types use Chinese labels in filters, row badges and details', () => {
|
||||
const { asset_types, filter_form, asset_table } = harness();
|
||||
assert.deepEqual(asset_types, {
|
||||
asset_balance_increase: ['余额增加', 'success'],
|
||||
asset_balance_decrease: ['余额减少', 'danger'],
|
||||
asset_points_increase: ['积分增加', 'success'],
|
||||
asset_points_decrease: ['积分减少', 'danger'],
|
||||
credits_added: ['积分增加', 'success'],
|
||||
});
|
||||
for (const [type, [label]] of Object.entries(asset_types)) {
|
||||
assert.ok(filter_form.includes(`<option value="${type}">${label}</option>`));
|
||||
}
|
||||
assert.match(asset_table, /class="aksrt-msg-badge is-success"[^>]*>余额增加<\/a>/);
|
||||
assert.match(asset_table, /<dt>消息类型<\/dt><dd>余额增加<\/dd>/);
|
||||
assert.match(credits_table, /class="aksrt-msg-badge is-success"[^>]*>积分增加<\/a>/);
|
||||
assert.match(credits_table, /<dt>消息类型<\/dt><dd>积分增加<\/dd>/);
|
||||
});
|
||||
|
||||
test('single row actions cannot accidentally operate on the checked bulk selection', () => {
|
||||
|
||||
Reference in new issue
Block a user