Skip to content

Commit

Permalink
refactor: update tests
Browse files Browse the repository at this point in the history
  • Loading branch information
pyphilia committed Dec 9, 2024
1 parent a7e642c commit 61cbdfd
Show file tree
Hide file tree
Showing 13 changed files with 141 additions and 682 deletions.
135 changes: 0 additions & 135 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 61cbdfd

Please sign in to comment.