Remove unused imports and variables (#2420)
This commit is contained in:
parent
6f10c32176
commit
cb93dbea2a
7 changed files with 3 additions and 17 deletions
|
@ -19,7 +19,6 @@ import {
|
||||||
} from "../../support/api/requests/PermissionGroup.js";
|
} from "../../support/api/requests/PermissionGroup.js";
|
||||||
import { getStaffMembersStartsWith } from "../../support/api/requests/StaffMembers";
|
import { getStaffMembersStartsWith } from "../../support/api/requests/StaffMembers";
|
||||||
import { deletePermissionGroupsStartsWith } from "../../support/api/utils/permissionGroupUtils.js";
|
import { deletePermissionGroupsStartsWith } from "../../support/api/utils/permissionGroupUtils.js";
|
||||||
import filterTests from "../../support/filterTests.js";
|
|
||||||
|
|
||||||
describe("Permissions groups", () => {
|
describe("Permissions groups", () => {
|
||||||
const startsWith = "CyPermissions-";
|
const startsWith = "CyPermissions-";
|
||||||
|
|
|
@ -7,27 +7,21 @@ import { PRODUCT_TYPE_DETAILS } from "../../../elements/productTypes/productType
|
||||||
import { BUTTON_SELECTORS } from "../../../elements/shared/button-selectors";
|
import { BUTTON_SELECTORS } from "../../../elements/shared/button-selectors";
|
||||||
import { productTypeDetailsUrl } from "../../../fixtures/urlList";
|
import { productTypeDetailsUrl } from "../../../fixtures/urlList";
|
||||||
import { createAttribute } from "../../../support/api/requests/Attribute";
|
import { createAttribute } from "../../../support/api/requests/Attribute";
|
||||||
import { createCategory } from "../../../support/api/requests/Category";
|
|
||||||
import {
|
import {
|
||||||
assignAttribute,
|
assignAttribute,
|
||||||
createTypeProduct,
|
createTypeProduct,
|
||||||
getProductType,
|
getProductType,
|
||||||
} from "../../../support/api/requests/ProductType";
|
} from "../../../support/api/requests/ProductType";
|
||||||
import { getDefaultChannel } from "../../../support/api/utils/channelsUtils";
|
|
||||||
import { deleteProductsStartsWith } from "../../../support/api/utils/products/productsUtils";
|
import { deleteProductsStartsWith } from "../../../support/api/utils/products/productsUtils";
|
||||||
|
|
||||||
describe("As an admin I want to manage attributes in product types", () => {
|
describe("As an admin I want to manage attributes in product types", () => {
|
||||||
const startsWith = "attrProdType";
|
const startsWith = "attrProdType";
|
||||||
let category;
|
|
||||||
let channel;
|
|
||||||
let attribute;
|
let attribute;
|
||||||
|
|
||||||
before(() => {
|
before(() => {
|
||||||
cy.clearSessionData().loginUserViaRequest();
|
cy.clearSessionData().loginUserViaRequest();
|
||||||
deleteProductsStartsWith(startsWith);
|
deleteProductsStartsWith(startsWith);
|
||||||
createAttribute({ name: startsWith }).then(resp => (attribute = resp));
|
createAttribute({ name: startsWith }).then(resp => (attribute = resp));
|
||||||
createCategory({ name: startsWith }).then(resp => (category = resp));
|
|
||||||
getDefaultChannel().then(resp => (channel = resp));
|
|
||||||
});
|
});
|
||||||
|
|
||||||
beforeEach(() => {
|
beforeEach(() => {
|
||||||
|
|
|
@ -13,7 +13,6 @@ import {
|
||||||
} from "../support/api/requests/Customer";
|
} from "../support/api/requests/Customer";
|
||||||
import { getDefaultChannel } from "../support/api/utils/channelsUtils";
|
import { getDefaultChannel } from "../support/api/utils/channelsUtils";
|
||||||
import { getMailActivationLinkForUser } from "../support/api/utils/users";
|
import { getMailActivationLinkForUser } from "../support/api/utils/users";
|
||||||
import filterTests from "../support/filterTests";
|
|
||||||
|
|
||||||
describe("Tests for customer registration", () => {
|
describe("Tests for customer registration", () => {
|
||||||
const startsWith = "Registration";
|
const startsWith = "Registration";
|
||||||
|
|
|
@ -7,10 +7,7 @@ import { SALES_SELECTORS } from "../../../elements/discounts/sales";
|
||||||
import { BUTTON_SELECTORS } from "../../../elements/shared/button-selectors";
|
import { BUTTON_SELECTORS } from "../../../elements/shared/button-selectors";
|
||||||
import { SHARED_ELEMENTS } from "../../../elements/shared/sharedElements";
|
import { SHARED_ELEMENTS } from "../../../elements/shared/sharedElements";
|
||||||
import { saleDetailsUrl } from "../../../fixtures/urlList";
|
import { saleDetailsUrl } from "../../../fixtures/urlList";
|
||||||
import {
|
import { updateSale } from "../../../support/api/requests/Discounts/Sales";
|
||||||
getSales,
|
|
||||||
updateSale,
|
|
||||||
} from "../../../support/api/requests/Discounts/Sales";
|
|
||||||
import { getVariant } from "../../../support/api/requests/Product";
|
import { getVariant } from "../../../support/api/requests/Product";
|
||||||
import { getDefaultChannel } from "../../../support/api/utils/channelsUtils";
|
import { getDefaultChannel } from "../../../support/api/utils/channelsUtils";
|
||||||
import {
|
import {
|
||||||
|
|
|
@ -22,10 +22,7 @@ import { createWaitingForCaptureOrder } from "../../../support/api/utils/ordersU
|
||||||
import * as productUtils from "../../../support/api/utils/products/productsUtils";
|
import * as productUtils from "../../../support/api/utils/products/productsUtils";
|
||||||
import * as shippingUtils from "../../../support/api/utils/shippingUtils";
|
import * as shippingUtils from "../../../support/api/utils/shippingUtils";
|
||||||
import { getProductVariants } from "../../../support/api/utils/storeFront/storeFrontProductUtils";
|
import { getProductVariants } from "../../../support/api/utils/storeFront/storeFrontProductUtils";
|
||||||
import {
|
import { createVariant } from "../../../support/pages/catalog/products/VariantsPage";
|
||||||
createFirstVariant,
|
|
||||||
createVariant,
|
|
||||||
} from "../../../support/pages/catalog/products/VariantsPage";
|
|
||||||
import { selectChannelInDetailsPages } from "../../../support/pages/channelsPage";
|
import { selectChannelInDetailsPages } from "../../../support/pages/channelsPage";
|
||||||
|
|
||||||
describe("Creating variants", () => {
|
describe("Creating variants", () => {
|
||||||
|
|
|
@ -3,7 +3,6 @@ import { AVAILABLE_CHANNELS_FORM } from "../../../elements/channels/available-ch
|
||||||
import { SELECT_CHANNELS_TO_ASSIGN } from "../../../elements/channels/select-channels-to-assign";
|
import { SELECT_CHANNELS_TO_ASSIGN } from "../../../elements/channels/select-channels-to-assign";
|
||||||
import { ASSIGN_ELEMENTS_SELECTORS } from "../../../elements/shared/assign-elements-selectors";
|
import { ASSIGN_ELEMENTS_SELECTORS } from "../../../elements/shared/assign-elements-selectors";
|
||||||
import { BUTTON_SELECTORS } from "../../../elements/shared/button-selectors";
|
import { BUTTON_SELECTORS } from "../../../elements/shared/button-selectors";
|
||||||
import { SHARED_ELEMENTS } from "../../../elements/shared/sharedElements";
|
|
||||||
|
|
||||||
export function createCollection(collectionName, isPublished, channel) {
|
export function createCollection(collectionName, isPublished, channel) {
|
||||||
const publishedSelector = isPublished
|
const publishedSelector = isPublished
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
import { SEO_FORM } from "../../../elements/shared/seo/seo-form-selectors";
|
import { SEO_FORM } from "../../../elements/shared/seo/seo-form-selectors";
|
||||||
|
|
||||||
export function editSeoSettings({ slug, title, description }) {
|
export function editSeoSettings({ slug, title, description }) {
|
||||||
cy.get(SEO_FORM.editSeoSettings)
|
cy.get(SEO_FORM.editSeoSettings)
|
||||||
.click()
|
.click()
|
||||||
|
|
Loading…
Reference in a new issue