Skip to content

Commit

Permalink
Fixed failing cypress test (#17793)
Browse files Browse the repository at this point in the history
Closes CXSPA-4398
  • Loading branch information
Stofftiger authored Aug 25, 2023
1 parent 71972d3 commit 7221c81
Show file tree
Hide file tree
Showing 3 changed files with 95 additions and 73 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -22,13 +22,13 @@ context('Quote<->Configurator integration', () => {
});

describe('Request quote process with VC configurable product', () => {
it('should not allow to request quote if configuration has issues', () => {
quote.addProductToCartForQuotePreparation(
it('should not allow to request quote if the configuration has issues', () => {
quote.addProductToCart(
POWERTOOLS,
testProductConfigurableWithIssues,
'1'
);
quote.clickOnRequestQuoteInCart();
quote.clickOnRequestQuote();

//we are still in cart, for now just check that
//TODO check for messages once https://jira.tools.sap/browse/CXSPA-4079 is done
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,22 +32,22 @@ context('Quote', () => {
});

describe('Request quote process', () => {
it('should display a message and disable submit button if threshold is not met', () => {
it('should display a global message and disable submit button if threshold is not met', () => {
quote.requestQuote(POWERTOOLS, TEST_PRODUCT_HAMMER_DRILLING_ID, '1');
quote.checkQuoteInDraftState(false, TEST_PRODUCT_HAMMER_DRILLING_ID);
});

it('should be possible(submit) if threshold is met', () => {
quote.requestQuote(POWERTOOLS, TEST_PRODUCT_HAMMER_DRILLING_ID, '30');
quote.checkQuoteInDraftState(true, TEST_PRODUCT_HAMMER_DRILLING_ID);
quote.addCommentAndWait(
quote.addHeaderComment(
'Can you please make me a good offer for this large volume of goods?'
);
quote.checkComment(
1,
'Can you please make me a good offer for this large volume of goods?'
);
quote.addItemCommentAndWait(
quote.addItemComment(
TEST_PRODUCT_HAMMER_DRILLING_NAME,
'since there is a newer model out, is it possible to get a discount for this item?'
);
Expand All @@ -73,6 +73,7 @@ context('Quote', () => {
);
quote.checkQuoteInDraftState(true, TEST_PRODUCT_HAMMER_DRILLING_ID);
});

it('should edit quantity of items within a buyer quote draft (CXSPA-3852)', () => {
let itemIndex = 1;
quote.checkItemVisible(itemIndex, TEST_PRODUCT_HAMMER_DRILLING_ID);
Expand Down Expand Up @@ -109,7 +110,7 @@ context('Quote', () => {
quote.checkQuoteListPresent();
});

it('should be accessible from quote details', () => {
it('should be accessible from the quote details', () => {
quote.requestQuote(POWERTOOLS, TEST_PRODUCT_HAMMER_DRILLING_ID, '1');
quote.navigateToQuoteListFromQuoteDetails();
quote.checkQuoteListPresent();
Expand Down
Loading

0 comments on commit 7221c81

Please sign in to comment.