
* [Feature Flags] Abstraction over flags provider (#2928) * Remove useFlag hook * [Feature Flags] GraphQL build multiple schemas (#2937) * Build script * Refactor build types script * Remove old codegen.yml * Clean feature flags in script * Refactor schema path * Restore useAuthProvider * Update configuration file * encapsulate details for feature flags provider * Add proper env to flagsmith provider * Remove flagsmith mocks * Vite config define global variables * Render flagmisth provider only when is used * Keep name service agnostic * Test with mocked flagsmith * Use global FLAGS varaible for env flags * Fix type issue with FLAGS * Fix build issue * Remove duplicate translations * Fix typo * Prepare for QA tests * Remove test feature flag
41 lines
1.1 KiB
JavaScript
41 lines
1.1 KiB
JavaScript
/// <reference types="cypress"/>
|
|
/// <reference types="../../support"/>
|
|
|
|
import { BUTTON_SELECTORS } from "../../elements/shared/button-selectors";
|
|
import { urlList } from "../../fixtures/urlList";
|
|
import {
|
|
getShopInfo,
|
|
updateShopAddress,
|
|
} from "../../support/api/requests/ShopSettings";
|
|
|
|
describe("Tests for site settings", () => {
|
|
let address;
|
|
|
|
before(() => {
|
|
cy.clearSessionData().loginUserViaRequest();
|
|
|
|
cy.fixture("addresses").then(({ usAddress, plAddress }) => {
|
|
address = usAddress;
|
|
updateShopAddress(plAddress);
|
|
cy.checkIfDataAreNotNull(address);
|
|
});
|
|
});
|
|
|
|
it(
|
|
"should change store address",
|
|
{ tags: ["@siteSettings", "@allEnv", "@stable"] },
|
|
() => {
|
|
cy.clearSessionData()
|
|
.loginUserViaRequest()
|
|
.visit(urlList.siteSettings)
|
|
.fillUpBasicAddress(address)
|
|
.get(BUTTON_SELECTORS.confirm)
|
|
.click()
|
|
.confirmationMessageShouldDisappear();
|
|
getShopInfo().then(({ companyAddress }) => {
|
|
expect(companyAddress.companyName).to.eq(address.companyName);
|
|
cy.expectCorrectBasicAddress(companyAddress, address);
|
|
});
|
|
},
|
|
);
|
|
});
|