Skip to content

Commit 711ae50

Browse files
sluFicodesSHENGXING LU
andauthored
Slu/qa tags (#166)
* QA tags * catalogUpdate tag missed * form fixes --------- Co-authored-by: SHENGXING LU <slu@SHENGXINGs-MacBook-Air.local>
1 parent 8bac663 commit 711ae50

8 files changed

Lines changed: 33 additions & 21 deletions

File tree

src/app/pages/seller-offerings/offerings/seller-catalogs/create-catalog/create-catalog.component.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -157,12 +157,12 @@ <h3 class="block md:hidden mt-2 text-center text-2xl text-primary-100 dark:text-
157157
</svg>
158158
</button>
159159
@if(currentStep === 1){
160-
<button data-cy=catalogFinish (click)="createCatalog()"
160+
<button data-cy="catalogFinish" (click)="createCatalog()"
161161
[disabled]="!generalForm.valid || loading"
162162
[ngClass]="loading || !generalForm.valid ? 'opacity-50' : 'hover:bg-primary-50'"
163163

164164
class="px-4 py-2 text-base font-medium text-white rounded-lg bg-primary-100">
165-
Create Catalog
165+
{{ 'CREATE_CATALOG._create' | translate }}
166166
</button>
167167
}
168168
</div>

src/app/pages/seller-offerings/offerings/seller-catalogs/update-catalog/update-catalog.component.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -239,7 +239,7 @@ <h3 class="block md:hidden mt-2 text-center text-2xl text-primary-100 dark:text-
239239
[ngClass]="loading || !generalForm.valid ? 'opacity-50' : 'hover:bg-primary-50'"
240240

241241
class="px-4 py-2 text-base font-medium text-white rounded-lg bg-primary-100">
242-
Update Catalogue
242+
{{ 'UPDATE_CATALOG._update' | translate }}
243243
</button>
244244
</div>
245245
</div>

src/app/pages/seller-offerings/offerings/seller-product-spec/create-product-spec/create-product-spec.component.html

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1562,7 +1562,8 @@ <h4 class="text-lg font-bold ml-4 dark:text-white">{{ 'CREATE_PROD_SPEC._add_att
15621562
{{ 'CREATE_OFFER._previous' | translate }}
15631563
</button>
15641564

1565-
<button (click)="goToStep(currentStep + 1)"
1565+
<button data-cy="btnNext"
1566+
(click)="goToStep(currentStep + 1)"
15661567
[disabled]="currentStep === steps.length - 1 || !validateCurrentStep() || !canNavigate(currentStep) || isStepDisabled()"
15671568
[ngClass]="{
15681569
'hover:bg-gray-100 hover:text-gray-700 dark:hover:bg-gray-700 dark:hover:text-white': currentStep !== steps.length - 1 && (validateCurrentStep() || canNavigate(currentStep)),
@@ -1577,12 +1578,13 @@ <h4 class="text-lg font-bold ml-4 dark:text-white">{{ 'CREATE_PROD_SPEC._add_att
15771578
</svg>
15781579
</button>
15791580
@if ((currentStep === 7 && !BUNDLE_ENABLED) || (currentStep === 8 && BUNDLE_ENABLED)) {
1580-
<button (click)="createProduct()"
1581+
<button data-cy="btnCreateProduct"
1582+
(click)="createProduct()"
15811583
[disabled]="isStepDisabled() || loading"
15821584
[ngClass]="loading || isStepDisabled() ? 'opacity-50' : 'hover:bg-primary-50'"
15831585

15841586
class="px-4 py-2 text-base font-medium text-white rounded-lg bg-primary-100">
1585-
Create Product
1587+
{{ 'CREATE_PROD_SPEC._create_prod' | translate }}
15861588
</button>
15871589
}
15881590
</div>

src/app/pages/seller-offerings/offerings/seller-product-spec/update-product-spec/update-product-spec.component.html

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1633,7 +1633,8 @@ <h4 class="text-lg font-bold ml-4 dark:text-white">{{ 'UPDATE_PROD_SPEC._add_att
16331633
{{ 'CREATE_OFFER._previous' | translate }}
16341634
</button>
16351635

1636-
<button (click)="goToStep(currentStep + 1)"
1636+
<button data-cy="btnNext"
1637+
(click)="goToStep(currentStep + 1)"
16371638
[disabled]="currentStep === steps.length - 1 || !canNavigate(currentStep) || isStepDisabled()"
16381639
[ngClass]="{
16391640
'hover:bg-gray-100 hover:text-gray-700 dark:hover:bg-gray-700 dark:hover:text-white': currentStep !== steps.length - 1 && (validateCurrentStep() || canNavigate(currentStep)),
@@ -1647,12 +1648,12 @@ <h4 class="text-lg font-bold ml-4 dark:text-white">{{ 'UPDATE_PROD_SPEC._add_att
16471648
256 73.4 86.6c-12.5-12.5-12.5-32.8 0-45.3s32.8-12.5 45.3 0l192 192z"/>
16481649
</svg>
16491650
</button>
1650-
<button (click)="updateProduct()"
1651+
<button data-cy="productSpecUpdate" (click)="updateProduct()"
16511652
[disabled]="isStepDisabled() || loading"
16521653
[ngClass]="loading || isStepDisabled() ? 'opacity-50' : 'hover:bg-primary-50'"
16531654

16541655
class="px-4 py-2 text-base font-medium text-white rounded-lg bg-primary-100">
1655-
Update Product
1656+
{{ 'UPDATE_PROD_SPEC._update_prod' | translate }}
16561657
</button>
16571658
</div>
16581659
</div>

src/app/pages/seller-offerings/offerings/seller-resource-spec/create-resource-spec/create-resource-spec.component.html

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -444,7 +444,8 @@ <h2 class="text-3xl font-bold text-primary-100 ml-4 dark:text-white pb-4">{{ 'CR
444444
{{ 'CREATE_OFFER._previous' | translate }}
445445
</button>
446446

447-
<button (click)="goToStep(currentStep + 1)"
447+
<button data-cy="resSpecNext"
448+
(click)="goToStep(currentStep + 1)"
448449
[disabled]="currentStep === steps.length - 1 || !validateCurrentStep() || !canNavigate(currentStep)"
449450
[ngClass]="{
450451
'hover:bg-gray-100 hover:text-gray-700 dark:hover:bg-gray-700 dark:hover:text-white': currentStep !== steps.length - 1 && (validateCurrentStep() || canNavigate(currentStep)),
@@ -459,12 +460,13 @@ <h2 class="text-3xl font-bold text-primary-100 ml-4 dark:text-white pb-4">{{ 'CR
459460
</svg>
460461
</button>
461462
@if (currentStep === 2) {
462-
<button (click)="createResource()"
463+
<button data-cy="resSpecFinish"
464+
(click)="createResource()"
463465
[disabled]="!generalForm.valid || loading"
464466
[ngClass]="loading || !generalForm.valid ? 'opacity-50' : 'hover:bg-primary-50'"
465467

466468
class="px-4 py-2 text-base font-medium text-white rounded-lg bg-primary-100">
467-
Create Resource
469+
{{ 'CREATE_RES_SPEC._create_res' | translate }}
468470
</button>
469471
}
470472
</div>

src/app/pages/seller-offerings/offerings/seller-resource-spec/update-resource-spec/update-resource-spec.component.html

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -522,7 +522,8 @@ <h2 class="text-3xl font-bold text-primary-100 ml-4 dark:text-white pb-4">{{ 'UP
522522
{{ 'CREATE_OFFER._previous' | translate }}
523523
</button>
524524

525-
<button (click)="goToStep(currentStep + 1)"
525+
<button data-cy="resSpecUpdateNext"
526+
(click)="goToStep(currentStep + 1)"
526527
[disabled]="currentStep === steps.length - 1 || !canNavigate(currentStep) || !generalForm.valid"
527528
[ngClass]="{
528529
'hover:bg-gray-100 hover:text-gray-700 dark:hover:bg-gray-700 dark:hover:text-white': currentStep !== steps.length - 1 && (validateCurrentStep() || canNavigate(currentStep)),
@@ -536,12 +537,13 @@ <h2 class="text-3xl font-bold text-primary-100 ml-4 dark:text-white pb-4">{{ 'UP
536537
256 73.4 86.6c-12.5-12.5-12.5-32.8 0-45.3s32.8-12.5 45.3 0l192 192z"/>
537538
</svg>
538539
</button>
539-
<button (click)="updateResource()"
540+
<button data-cy="resourceSpecUpdate"
541+
(click)="updateResource()"
540542
[disabled]="!generalForm.valid || loading"
541543
[ngClass]="loading || !generalForm.valid ? 'opacity-50' : 'hover:bg-primary-50'"
542544

543545
class="px-4 py-2 text-base font-medium text-white rounded-lg bg-primary-100">
544-
Update Resource
546+
{{ 'UPDATE_RES_SPEC._update_res' | translate }}
545547
</button>
546548
</div>
547549
</div>

src/app/pages/seller-offerings/offerings/seller-service-spec/create-service-spec/create-service-spec.component.html

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -445,7 +445,8 @@ <h2 class="text-3xl font-bold text-primary-100 ml-4 dark:text-white pb-4">{{ 'CR
445445
{{ 'CREATE_OFFER._previous' | translate }}
446446
</button>
447447

448-
<button (click)="goToStep(currentStep + 1)"
448+
<button data-cy="servSpecNext"
449+
(click)="goToStep(currentStep + 1)"
449450
[disabled]="currentStep === steps.length - 1 || !validateCurrentStep() || !canNavigate(currentStep)"
450451
[ngClass]="{
451452
'hover:bg-gray-100 hover:text-gray-700 dark:hover:bg-gray-700 dark:hover:text-white': currentStep !== steps.length - 1 && (validateCurrentStep() || canNavigate(currentStep)),
@@ -460,12 +461,14 @@ <h2 class="text-3xl font-bold text-primary-100 ml-4 dark:text-white pb-4">{{ 'CR
460461
</svg>
461462
</button>
462463
@if (currentStep === 2) {
463-
<button (click)="createService()"
464+
<button
465+
data-cy="servSpecFinish"
466+
(click)="createService()"
464467
[disabled]="!generalForm.valid || loading"
465468
[ngClass]="loading || !generalForm.valid ? 'opacity-50' : 'hover:bg-primary-50'"
466469

467470
class="px-4 py-2 text-base font-medium text-white rounded-lg bg-primary-100">
468-
Create Service
471+
{{ 'CREATE_SERV_SPEC._create_serv' | translate }}
469472
</button>
470473
}
471474
</div>

src/app/pages/seller-offerings/offerings/seller-service-spec/update-service-spec/update-service-spec.component.html

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -522,7 +522,8 @@ <h2 class="text-3xl font-bold text-primary-100 ml-4 dark:text-white pb-4">{{ 'UP
522522
{{ 'CREATE_OFFER._previous' | translate }}
523523
</button>
524524

525-
<button (click)="goToStep(currentStep + 1)"
525+
<button data-cy="servSpecUpdateNext"
526+
(click)="goToStep(currentStep + 1)"
526527
[disabled]="currentStep === steps.length - 1 || !canNavigate(currentStep) || !generalForm.valid"
527528
[ngClass]="{
528529
'hover:bg-gray-100 hover:text-gray-700 dark:hover:bg-gray-700 dark:hover:text-white': currentStep !== steps.length - 1 && (validateCurrentStep() || canNavigate(currentStep)),
@@ -536,12 +537,13 @@ <h2 class="text-3xl font-bold text-primary-100 ml-4 dark:text-white pb-4">{{ 'UP
536537
256 73.4 86.6c-12.5-12.5-12.5-32.8 0-45.3s32.8-12.5 45.3 0l192 192z"/>
537538
</svg>
538539
</button>
539-
<button (click)="updateService()"
540+
<button data-cy="serviceSpecUpdate"
541+
(click)="updateService()"
540542
[disabled]="!generalForm.valid || loading"
541543
[ngClass]="loading || !generalForm.valid ? 'opacity-50' : 'hover:bg-primary-50'"
542544

543545
class="px-4 py-2 text-base font-medium text-white rounded-lg bg-primary-100">
544-
Update Service
546+
{{ 'UPDATE_SERV_SPEC._update_serv' | translate }}
545547
</button>
546548
</div>
547549
</div>

0 commit comments

Comments
 (0)