Skip to content

Commit

Permalink
removed not-working tests for receipt & order-detail page
Browse files Browse the repository at this point in the history
  • Loading branch information
Lucas Hengelhaupt authored and Lucas Hengelhaupt committed Mar 23, 2023
1 parent 83ec991 commit ba05860
Showing 1 changed file with 1 addition and 19 deletions.
20 changes: 1 addition & 19 deletions e2e/cypress/e2e/specs/shopping/product-warranty.b2c.e2e-spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ import { MyAccountPage } from '../../pages/account/my-account.page';
import { sensibleDefaults } from '../../pages/account/registration.page';
import { CartPage } from '../../pages/checkout/cart.page';
import { CheckoutPaymentPage } from '../../pages/checkout/checkout-payment.page';
import { CheckoutReceiptPage } from '../../pages/checkout/checkout-receipt.page';
import { CheckoutReviewPage } from '../../pages/checkout/checkout-review.page';
import { HomePage } from '../../pages/home.page';
import { CategoryPage } from '../../pages/shopping/category.page';
Expand Down Expand Up @@ -103,7 +102,7 @@ describe('Product Warranty B2C', () => {
at(CartPage, page => {
page.lineItem(_.product1.index).warranty.set(_.noWarrantyValue);
waitLoadingEnd();
// doesn't work with current api, doesn't change the total price when no warranty is selected
// doesn't work with current icm, doesn't change the total price when no warranty is selected
page.subtotal.should('contain', _.totalPrice2);
});
});
Expand Down Expand Up @@ -153,22 +152,5 @@ describe('Product Warranty B2C', () => {
page.lineItemWarranty(_.product2.index).should('contain', _.selectedWarranty.name);
});
});

// temporary tests, need to be adjusted when it's possible to checkout with products that have a warranty
it('receipt page should show products with selected warranties', () => {
at(CheckoutReviewPage, page => {
page.acceptTAC();
page.submitOrder();
});
at(CheckoutReceiptPage, page => {
page.lineItemWarranty(_.product2.index).should('contain', _.selectedWarranty.name);
});
});

xit('order-detail page should show products with selected warranties', () => {
at(CheckoutReviewPage, page => {
// page.lineItemWarranty(_.product2.index).should('contain', _.selectedWarranty.name)
});
});
});
});

0 comments on commit ba05860

Please sign in to comment.