进行了一些小优化
This commit is contained in:
@@ -220,6 +220,7 @@ test('asset purchases share the order center and refresh every wallet surface',
|
||||
CLOSED: [],
|
||||
})
|
||||
assert.match(userOrders, /return isset\(DomainModel::order_status_labels\(\)\[\$status\]\) \? \$status : ''/)
|
||||
assert.doesNotMatch(userOrders, /can_open|entitlement_label|resolve_entitlement_url|post_permalink_cache/)
|
||||
assert.match(repository, /SUM\(CASE WHEN status = %s THEN 1 ELSE 0 END\) AS paid/)
|
||||
assert.doesNotMatch(repository, /\$completed_statuses|\$completed_placeholders/)
|
||||
assert.match(adminRepository, /\$valid_statuses = array_keys\(\\AKSRT\\Core\\DomainModel::order_status_labels\(\)\)/)
|
||||
|
||||
@@ -371,6 +371,9 @@ test('profile routes load versioned leaf styles and keep dialogs hidden initiall
|
||||
assert.match(ordersCss, /\.aksrt-orders-page__status-filters, \.aksrt-orders-page__type-filters/);
|
||||
assert.doesNotMatch(ordersCss, /\.aksrt-orders-page__tabs|\.aksrt-orders-page__tab(?:\s|\.|:|\{)/);
|
||||
assert.match(orderCenterJs, /if \(panel\) panel\.hidden = expanded;/);
|
||||
assert.doesNotMatch(profileOrders, /can_open|entitlement_label|is-entitlement/);
|
||||
assert.doesNotMatch(orderCenterJs, /can_open|entitlement_label|is-entitlement/);
|
||||
assert.doesNotMatch(ordersCss, /is-entitlement/);
|
||||
assert.match(userCenterJs, /name === 'follow' \|\| name === 'orders'/);
|
||||
assert.match(userCenterJs, /\['order_status', 'order_type', 'order_number', 'order_page'\]/);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user