Skip to content

Commit

Permalink
Fix UI tests
Browse files Browse the repository at this point in the history
  • Loading branch information
nesrineabdmouleh committed Oct 30, 2024
1 parent 3821b79 commit e075c0c
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -343,7 +343,7 @@ describe('BO - Catalog - Products : Combination tab', async () => {
await testContext.addContextItem(this, 'testIdentifier', 'selectCombination4', baseContext);

const availabilityLabel = await foClassicProductPage.getProductAvailabilityLabel(page);
expect(availabilityLabel).to.contains('Product available');
expect(availabilityLabel).to.contains('Out-of-Stock');
});

it('should close the page', async function () {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -280,7 +280,7 @@ describe('BO - Catalog - Products : Stocks tab', async () => {
expect(isAddToCartButtonEnabled).to.be.equal(false);

const productAvailability = await foClassicProductPage.getProductAvailabilityLabel(page);
expect(productAvailability).to.be.contains('Out-of-Stock');
expect(productAvailability).to.be.contains('OUT OF STOCK');
});

it('should go back to BO', async function () {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -256,7 +256,7 @@ describe('FO - Product page - Product page : Out of stock behaviour', async () =
expect(isAddToCartButtonEnabled).to.equal(false);

const productAvailability = await foHummingbirdProductPage.getProductAvailabilityLabel(page);
expect(productAvailability).to.contains('Out-of-Stock');
expect(productAvailability).to.contains('Out of stock');
});

it('should go back to BO', async function () {
Expand Down
2 changes: 1 addition & 1 deletion tests/UI/pages/BO/catalog/products/add/combinationsTab.ts
Original file line number Diff line number Diff line change
Expand Up @@ -335,7 +335,7 @@ class CombinationsTab extends BOBasePage {
this.denyOrderRadioButton = '#product_combinations_availability_out_of_stock_type_0 +i';
this.allowOrderRadioButton = '#product_combinations_availability_out_of_stock_type_1 +i';
this.useDefaultBehaviourRadioButton = '#product_combinations_availability_out_of_stock_type_2 +i';
this.editDefaultBehaviourLink = '#product_combinations_availability a[href*=configuration_fieldset_stock]';
this.editDefaultBehaviourLink = '#product_combinations_availability a.btn-link[href*=configuration_fieldset_stock]';
this.labelWhenInStock = '#product_combinations_availability_available_now_label_1';
this.labelWhenOutOfStock = '#product_combinations_availability_available_later_label_1';
}
Expand Down

0 comments on commit e075c0c

Please sign in to comment.