Skip to content

Commit

Permalink
Fixing test
Browse files Browse the repository at this point in the history
  • Loading branch information
porgabi committed Nov 15, 2023
1 parent d53c56d commit 117167c
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -102,15 +102,15 @@ await VerifyCheckoutAvailabilityAsync(
await context.ClickReliablyOnAsync(By.XPath("//label[contains(., 'Ignore Inventory')]"));
await context.ClickPublishAsync();

await VerifyCheckoutAvailabilityAsync(context, cartMessageShouldExist: false, checkoutMessageShouldExist: true);
await VerifyCheckoutAvailabilityAsync(context, cartMessageShouldExist: false, checkoutMessageShouldExist: false);

// Set Allows Back Order to true and verify checkout is available.
await context.GoToContentItemEditorByIdAsync(TestProduct);
await context.ClickReliablyOnAsync(By.XPath("//label[contains(., 'Ignore Inventory')]"));
await context.ClickReliablyOnAsync(By.XPath("//label[contains(., 'Allows Back Order')]"));
await context.ClickPublishAsync();

await VerifyCheckoutAvailabilityAsync(context, cartMessageShouldExist: false, checkoutMessageShouldExist: true);
await VerifyCheckoutAvailabilityAsync(context, cartMessageShouldExist: false, checkoutMessageShouldExist: false);
},
browser);

Expand Down

0 comments on commit 117167c

Please sign in to comment.