Remove unused imports and variables (#2420)

This commit is contained in:
Ewa Czerniak 2022-10-20 07:36:49 +02:00 committed by GitHub
parent 6f10c32176
commit cb93dbea2a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
7 changed files with 3 additions and 17 deletions

View file

@ -19,7 +19,6 @@ import {
} from "../../support/api/requests/PermissionGroup.js";
import { getStaffMembersStartsWith } from "../../support/api/requests/StaffMembers";
import { deletePermissionGroupsStartsWith } from "../../support/api/utils/permissionGroupUtils.js";
import filterTests from "../../support/filterTests.js";
describe("Permissions groups", () => {
const startsWith = "CyPermissions-";

View file

@ -7,27 +7,21 @@ import { PRODUCT_TYPE_DETAILS } from "../../../elements/productTypes/productType
import { BUTTON_SELECTORS } from "../../../elements/shared/button-selectors";
import { productTypeDetailsUrl } from "../../../fixtures/urlList";
import { createAttribute } from "../../../support/api/requests/Attribute";
import { createCategory } from "../../../support/api/requests/Category";
import {
assignAttribute,
createTypeProduct,
getProductType,
} from "../../../support/api/requests/ProductType";
import { getDefaultChannel } from "../../../support/api/utils/channelsUtils";
import { deleteProductsStartsWith } from "../../../support/api/utils/products/productsUtils";
describe("As an admin I want to manage attributes in product types", () => {
const startsWith = "attrProdType";
let category;
let channel;
let attribute;
before(() => {
cy.clearSessionData().loginUserViaRequest();
deleteProductsStartsWith(startsWith);
createAttribute({ name: startsWith }).then(resp => (attribute = resp));
createCategory({ name: startsWith }).then(resp => (category = resp));
getDefaultChannel().then(resp => (channel = resp));
});
beforeEach(() => {

View file

@ -13,7 +13,6 @@ import {
} from "../support/api/requests/Customer";
import { getDefaultChannel } from "../support/api/utils/channelsUtils";
import { getMailActivationLinkForUser } from "../support/api/utils/users";
import filterTests from "../support/filterTests";
describe("Tests for customer registration", () => {
const startsWith = "Registration";

View file

@ -7,10 +7,7 @@ import { SALES_SELECTORS } from "../../../elements/discounts/sales";
import { BUTTON_SELECTORS } from "../../../elements/shared/button-selectors";
import { SHARED_ELEMENTS } from "../../../elements/shared/sharedElements";
import { saleDetailsUrl } from "../../../fixtures/urlList";
import {
getSales,
updateSale,
} from "../../../support/api/requests/Discounts/Sales";
import { updateSale } from "../../../support/api/requests/Discounts/Sales";
import { getVariant } from "../../../support/api/requests/Product";
import { getDefaultChannel } from "../../../support/api/utils/channelsUtils";
import {

View file

@ -22,10 +22,7 @@ import { createWaitingForCaptureOrder } from "../../../support/api/utils/ordersU
import * as productUtils from "../../../support/api/utils/products/productsUtils";
import * as shippingUtils from "../../../support/api/utils/shippingUtils";
import { getProductVariants } from "../../../support/api/utils/storeFront/storeFrontProductUtils";
import {
createFirstVariant,
createVariant,
} from "../../../support/pages/catalog/products/VariantsPage";
import { createVariant } from "../../../support/pages/catalog/products/VariantsPage";
import { selectChannelInDetailsPages } from "../../../support/pages/channelsPage";
describe("Creating variants", () => {

View file

@ -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 { ASSIGN_ELEMENTS_SELECTORS } from "../../../elements/shared/assign-elements-selectors";
import { BUTTON_SELECTORS } from "../../../elements/shared/button-selectors";
import { SHARED_ELEMENTS } from "../../../elements/shared/sharedElements";
export function createCollection(collectionName, isPublished, channel) {
const publishedSelector = isPublished

View file

@ -1,4 +1,5 @@
import { SEO_FORM } from "../../../elements/shared/seo/seo-form-selectors";
export function editSeoSettings({ slug, title, description }) {
cy.get(SEO_FORM.editSeoSettings)
.click()