webtest-agent v1.0.0: AI网页测试智能体(LLM决策+agent-browser执行+断言+报告)
This commit is contained in:
@@ -0,0 +1,47 @@
|
||||
* { box-sizing: border-box; margin: 0; padding: 0; }
|
||||
body { font-family: -apple-system, 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif; background: #f3f4f6; color: #111; }
|
||||
.topbar { background: #111827; color: #fff; padding: 14px 24px; display: flex; justify-content: space-between; align-items: center; }
|
||||
.brand { font-size: 17px; font-weight: 600; }
|
||||
.ver { font-size: 11px; background: #374151; padding: 2px 8px; border-radius: 999px; margin-left: 6px; font-weight: 400; }
|
||||
.health { font-size: 12px; color: #9ca3af; }
|
||||
.health.ok { color: #4ade80; }
|
||||
.wrap { max-width: 1200px; margin: 0 auto; padding: 24px; }
|
||||
.card { background: #fff; border-radius: 12px; padding: 20px; margin-bottom: 20px; border: 1px solid #e5e7eb; }
|
||||
.card h2 { font-size: 16px; margin-bottom: 14px; display: flex; justify-content: space-between; align-items: center; }
|
||||
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 16px; }
|
||||
.field { display: flex; flex-direction: column; }
|
||||
.field.span2 { grid-column: span 2; }
|
||||
.field label { font-size: 13px; color: #374151; margin-bottom: 6px; font-weight: 500; }
|
||||
.field input, .field textarea { padding: 10px 12px; border: 1px solid #d1d5db; border-radius: 8px; font-size: 14px; font-family: inherit; }
|
||||
.field input:focus, .field textarea:focus { outline: none; border-color: #2563eb; box-shadow: 0 0 0 3px rgba(37,99,235,.1); }
|
||||
.btn { padding: 10px 20px; border: none; border-radius: 8px; cursor: pointer; font-size: 14px; font-weight: 500; }
|
||||
.btn.primary { background: #2563eb; color: #fff; }
|
||||
.btn.primary:hover { background: #1d4ed8; }
|
||||
.btn.primary:disabled { background: #93c5fd; cursor: not-allowed; }
|
||||
.btn.small { padding: 5px 12px; font-size: 12px; background: #f3f4f6; color: #374151; border: 1px solid #d1d5db; }
|
||||
.btn.small:hover { background: #e5e7eb; }
|
||||
.hint { margin-top: 12px; font-size: 12px; color: #6b7280; }
|
||||
table { width: 100%; border-collapse: collapse; font-size: 13px; }
|
||||
th, td { padding: 10px 12px; border-bottom: 1px solid #f0f0f0; text-align: left; vertical-align: middle; }
|
||||
th { background: #f9fafb; font-weight: 600; color: #374151; white-space: nowrap; }
|
||||
td { word-break: break-all; }
|
||||
td .goal-cell { max-width: 260px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
|
||||
.empty { text-align: center; color: #9ca3af; padding: 24px; }
|
||||
.status { padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 500; }
|
||||
.status.queued { background: #fef3c7; color: #92400e; }
|
||||
.status.running { background: #dbeafe; color: #1e40af; }
|
||||
.status.finished { background: #dcfce7; color: #166534; }
|
||||
.status.stopped { background: #f3f4f6; color: #4b5563; }
|
||||
.result { padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 500; }
|
||||
.result.pass { background: #dcfce7; color: #166534; }
|
||||
.result.fail { background: #fee2e2; color: #991b1b; }
|
||||
.result.error { background: #ffedd5; color: #9a3412; }
|
||||
.result.stopped { background: #f3f4f6; color: #4b5563; }
|
||||
.result.pending { background: #f3f4f6; color: #9ca3af; }
|
||||
a.report-link { color: #2563eb; text-decoration: none; }
|
||||
a.report-link:hover { text-decoration: underline; }
|
||||
.modal { position: fixed; inset: 0; background: rgba(0,0,0,.5); z-index: 100; display: flex; align-items: center; justify-content: center; }
|
||||
.modal.hidden { display: none; }
|
||||
.modal-body { width: 90vw; height: 90vh; background: #fff; border-radius: 12px; display: flex; flex-direction: column; overflow: hidden; }
|
||||
.modal-head { padding: 12px 16px; border-bottom: 1px solid #e5e7eb; display: flex; justify-content: space-between; align-items: center; font-weight: 600; }
|
||||
#report-frame { flex: 1; border: none; width: 100%; }
|
||||
Reference in New Issue
Block a user