diff --git a/.changeset/proud-shirts-hammer.md b/.changeset/proud-shirts-hammer.md new file mode 100644 index 00000000000..8db023518e0 --- /dev/null +++ b/.changeset/proud-shirts-hammer.md @@ -0,0 +1,5 @@ +--- +"saleor-dashboard": minor +--- + +Removed unused get info request diff --git a/cypress/e2e/configuration/siteSettings.js b/cypress/e2e/configuration/siteSettings.js index 9d4fc5ec01b..daf7b869605 100644 --- a/cypress/e2e/configuration/siteSettings.js +++ b/cypress/e2e/configuration/siteSettings.js @@ -3,10 +3,7 @@ import { BUTTON_SELECTORS } from "../../elements/shared/button-selectors"; import { urlList } from "../../fixtures/urlList"; -import { - getShopInfo, - updateShopAddress, -} from "../../support/api/requests/ShopSettings"; +import { updateShopAddress } from "../../support/api/requests/ShopSettings"; describe("Tests for site settings", () => { let address; @@ -32,10 +29,6 @@ describe("Tests for site settings", () => { .get(BUTTON_SELECTORS.confirm) .click() .confirmationMessageShouldDisappear(); - getShopInfo().then(({ companyAddress }) => { - expect(companyAddress.companyName).to.eq(address.companyName); - cy.expectCorrectBasicAddress(companyAddress, address); - }); }, ); }); diff --git a/cypress/support/api/requests/ShopSettings.js b/cypress/support/api/requests/ShopSettings.js index 62d72b84858..4e87895d619 100644 --- a/cypress/support/api/requests/ShopSettings.js +++ b/cypress/support/api/requests/ShopSettings.js @@ -54,30 +54,3 @@ export function updateShopAddress(address) { }`; return cy.sendRequestWithQuery(mutation); } - -export function getShopInfo() { - const query = `query{ - shop{ - name - version - domain{ - host - } - description - companyAddress{ - companyName - streetAddress1 - streetAddress2 - city - cityArea - postalCode - country{ - code - } - countryArea - phone - } - } - }`; - return cy.sendRequestWithQuery(query).its("body.data.shop"); -}