[verified] refactor: establish service and frontend boundaries
This commit is contained in:
@@ -24,7 +24,8 @@ test('home screen is a simadmin card wall and device detail owns interactions',
|
||||
assert.match(app, /function openDeviceDetail/)
|
||||
assert.match(app, /function renderDeviceDetails/)
|
||||
assert.match(app, /data-open-detail/)
|
||||
assert.match(app, /\['home', 'detail', 'rawpage', 'api'\]/)
|
||||
const router = await text('public/router/view-router.js')
|
||||
assert.match(router, /\['home', 'detail', 'rawpage', 'api'\]/)
|
||||
assert.match(app, /温度/)
|
||||
assert.match(app, /流量|速率/)
|
||||
assert.match(app, /内存|磁盘/)
|
||||
@@ -37,7 +38,13 @@ test('home screen is a simadmin card wall and device detail owns interactions',
|
||||
})
|
||||
|
||||
test('home device cards show complete content without ellipsis truncation', async () => {
|
||||
const css = await text('public/styles.css')
|
||||
const entry = await text('public/styles.css')
|
||||
const css = await text('public/styles/components.css')
|
||||
|
||||
assert.match(entry, /styles\/tokens\.css/)
|
||||
assert.match(entry, /styles\/base\.css/)
|
||||
assert.match(entry, /styles\/components\.css/)
|
||||
assert.match(entry, /styles\/responsive\.css/)
|
||||
|
||||
assert.match(css, /\.sim-device-card/)
|
||||
assert.match(css, /\.home-device-grid/)
|
||||
|
||||
Reference in New Issue
Block a user