Skip to content

Commit

Permalink
feat: change categories with tags (#1587)
Browse files Browse the repository at this point in the history
* feat: change categories with tags

* refactor: fix issues

* refactor: update tests

* refactor: fix dependency

* refactor: update query client
  • Loading branch information
pyphilia authored Dec 11, 2024
1 parent 5b865ee commit 4bbdda8
Show file tree
Hide file tree
Showing 27 changed files with 546 additions and 1,328 deletions.
145 changes: 0 additions & 145 deletions cypress/components/common/MultiSelectChipInput.cy.tsx

This file was deleted.

171 changes: 0 additions & 171 deletions cypress/e2e/item/publish/categories.cy.ts

This file was deleted.

8 changes: 4 additions & 4 deletions cypress/e2e/item/publish/coEditorSettings.cy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,16 +9,16 @@ import {
buildDataCyWrapper,
buildPublishButtonId,
} from '../../../../src/config/selectors';
import { ITEM_WITH_CATEGORIES_CONTEXT } from '../../../fixtures/categories';
import { MEMBERS, SIGNED_OUT_MEMBER } from '../../../fixtures/members';
import { ITEM_WITH_TAGS_CONTEXT } from '../../../fixtures/tags';
import { EDIT_TAG_REQUEST_TIMEOUT } from '../../../support/constants';

const openPublishItemTab = (id: string) => {
cy.get(`#${buildPublishButtonId(id)}`).click();
};
const visitItemPage = () => {
cy.setUpApi(ITEM_WITH_CATEGORIES_CONTEXT);
const item = ITEM_WITH_CATEGORIES_CONTEXT.items[0];
cy.setUpApi(ITEM_WITH_TAGS_CONTEXT);
const item = ITEM_WITH_TAGS_CONTEXT.items[0];
cy.visit(buildItemPath(item.id));
openPublishItemTab(item.id);
};
Expand All @@ -35,7 +35,7 @@ describe('Co-editor Setting', () => {

it('Change choice', () => {
visitItemPage();
const item = ITEM_WITH_CATEGORIES_CONTEXT.items[0];
const item = ITEM_WITH_TAGS_CONTEXT.items[0];
const newOptionValue = DISPLAY_CO_EDITORS_OPTIONS.NO.value;

cy.wait('@getPublicationStatus').then(() => {
Expand Down
Loading

0 comments on commit 4bbdda8

Please sign in to comment.