Skip to content

Commit

Permalink
refactor: rework quoting feature (#367)
Browse files Browse the repository at this point in the history
BREAKING CHANGE: the quoting feature is replaced with a state-of-the-art implementation
  • Loading branch information
dhhyi authored Sep 28, 2020
1 parent 43377f6 commit 3ce106b
Show file tree
Hide file tree
Showing 126 changed files with 3,675 additions and 7,150 deletions.
222 changes: 0 additions & 222 deletions e2e/cypress/integration/framework/quote-mock.ts

This file was deleted.

6 changes: 1 addition & 5 deletions e2e/cypress/integration/pages/account/quote-detail.page.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { HeaderModule } from '../header.module';

export class QuoteDetailPage {
readonly tag = 'ish-quote-edit';
readonly tag = 'ish-quote-page';

readonly header = new HeaderModule();

Expand Down Expand Up @@ -31,10 +31,6 @@ export class QuoteDetailPage {
cy.get(`a[title="Remove"]`).click();
}

saveQuoteRequest() {
cy.get('[data-testing-id="save-quote-request"]').click();
}

submitQuoteRequest() {
cy.get('[data-testing-id="submit-quote-request"]').click();
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ export class ProductListModule {
cy.get(this.contextSelector)
.find(`ish-product-item div[data-testing-sku="${sku}"] [data-testing-id="addToQuoteButton"]`)
.click();
waitLoadingEnd();
}

get numberOfItems() {
Expand Down
14 changes: 8 additions & 6 deletions e2e/cypress/integration/pages/shopping/quote-request.dialog.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,21 +3,23 @@ import { waitLoadingEnd } from '../../framework';
export class QuoteRequestDialog {
readonly tag = 'ish-product-add-to-quote-dialog';

private saveQuoteRequestButton = () => cy.get('[data-testing-id="saveQuoteRequest"]');
private submitQuoteRequestButton = () => cy.get('[data-testing-id="submitQuoteRequest"]');
private submitQuoteRequestButton = () => cy.get('[data-testing-id="submit-quote-request"]');
private copyQuoteRequestButton = () => cy.get('[data-testing-id="copy-quote-request"]');

private hideButton = () => cy.get('.close');
private quantityInput = () => cy.get('[data-testing-id="quantity"]');

saveQuoteRequest() {
this.saveQuoteRequestButton().click();
}

submitQuoteRequest() {
this.submitQuoteRequestButton().click();
waitLoadingEnd(1000);
return this.quoteId;
}

copyQuoteRequest() {
this.copyQuoteRequestButton().click();
waitLoadingEnd();
}

setQuantity(quantity: number) {
this.quantityInput().type(quantity.toString());
}
Expand Down

This file was deleted.

Loading

0 comments on commit 3ce106b

Please sign in to comment.