Skip to content

Commit

Permalink
test ci
Browse files Browse the repository at this point in the history
  • Loading branch information
kpawelczak committed Aug 23, 2024
1 parent 5db22c3 commit 86022de
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ context('Multi Dimensional - checkout as guest', () => {

viewportContext(['desktop'], () => {
describe('multi-d all-tests', () => {
// checkoutMultiDVariants.testCheckoutMultiDAsGuestAndVerifyCart();
checkoutMultiDVariants.testCheckoutMultiDAsGuestAndVerifyCart();
});
});
});
Original file line number Diff line number Diff line change
Expand Up @@ -217,11 +217,14 @@ function selectVariantAndAddToCart(color: string = 'Blue') {
.find(`img[title*="${color}"]`)
.click();

cy.get('cx-added-to-cart-dialog.d-block.fade.modal.show').should('be.visible');
cy.get('cx-product-multi-dimensional-selector')
.find(`button[aria-label*="Selected, ${color} Color"]`)
.should('be.visible');

addProductToCart();

cy.get('cx-added-to-cart-dialog.d-block.fade.modal.show')
.should('be.visible')
.find('button.close[aria-label="Close Modal"]')
.click();

Expand All @@ -233,7 +236,9 @@ export function selectVariant(color: string = 'Blue') {
.find(`img[title*="${color}"]`)
.click();

cy.get('cx-product-multi-dimensional-selector').should('be.visible');
cy.get('cx-product-multi-dimensional-selector')
.find(`button[aria-label*="Selected, ${color} Color"]`)
.should('be.visible');
}

export function goToMultiDProductFromPLP() {
Expand Down

0 comments on commit 86022de

Please sign in to comment.