test(e2e): complete and verify 11 E2E test suites with strict mutation testing and CI integration
This commit is contained in:
1 parent
6ef293ea59
commit
e6018f3a37
21 files changed
+771
-58
No files matched your search
@@ -169,6 +169,7 @@ export default function B2BManager() {
|
||||
{/* Tab Toggle */}
|
||||
<div className="flex items-center gap-2 bg-white p-1.5 rounded-2xl border border-gray-200 shadow-sm">
|
||||
<button
|
||||
data-testid="b2b-inquiries-tab"
|
||||
onClick={() => setActiveTab('inquiries')}
|
||||
className={`px-4 py-2 rounded-xl text-xs font-bold transition-all ${
|
||||
activeTab === 'inquiries' ? 'bg-purple-600 text-white shadow-sm' : 'text-gray-600 hover:bg-gray-50'
|
||||
@@ -177,6 +178,7 @@ export default function B2BManager() {
|
||||
درخواستهای دریافت نمایندگی ({inquiries.length})
|
||||
</button>
|
||||
<button
|
||||
data-testid="b2b-partners-tab"
|
||||
onClick={() => setActiveTab('partners')}
|
||||
className={`px-4 py-2 rounded-xl text-xs font-bold transition-all ${
|
||||
activeTab === 'partners' ? 'bg-purple-600 text-white shadow-sm' : 'text-gray-600 hover:bg-gray-50'
|
||||
|
||||
@@ -750,7 +750,7 @@ export default function Blogs() {
|
||||
<Button variant="secondary" size="sm" type="button" onClick={closeModal}>
|
||||
انصراف
|
||||
</Button>
|
||||
<Button variant="primary" size="sm" type="submit" form="blogMainForm">
|
||||
<Button data-testid="blog-save-btn" variant="primary" size="sm" type="submit" form="blogMainForm">
|
||||
ذخیره مقاله
|
||||
</Button>
|
||||
</div>
|
||||
@@ -794,6 +794,7 @@ export default function Blogs() {
|
||||
<div className="space-y-1.5">
|
||||
<label className="text-xs font-black text-gray-700">عنوان اصلی مقاله *</label>
|
||||
<input
|
||||
data-testid="blog-title-input"
|
||||
required
|
||||
type="text"
|
||||
value={formData.title}
|
||||
|
||||
@@ -774,6 +774,7 @@ export default function Orders() {
|
||||
</td>
|
||||
<td className="py-4 px-6">
|
||||
<select
|
||||
data-testid="order-status-select"
|
||||
disabled={isProcessing}
|
||||
value={order.status}
|
||||
onChange={(e) => handleUpdateStatus(order.id, e.target.value)}
|
||||
|
||||
Reference in new issue
Block a user