Skip to content

Commit

Permalink
fix: tests
Browse files Browse the repository at this point in the history
  • Loading branch information
spaenleh committed Jan 15, 2025
1 parent 823381d commit ed484a4
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 7 deletions.
6 changes: 0 additions & 6 deletions cypress/e2e/account/homePage.cy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ import { ACCOUNT_HOME_PATH } from '../../../src/config/paths';
import {
AVATAR_UPLOAD_ICON_ID,
AVATAR_UPLOAD_INPUT_ID,
CARD_TIP_ID,
CROP_MODAL_CONFIRM_BUTTON_ID,
MEMBER_AVATAR_IMAGE_ID,
MEMBER_CREATED_AT_ID,
Expand Down Expand Up @@ -81,8 +80,6 @@ describe('Upload Avatar', () => {
});

it('Upload a new thumbnail', () => {
// at first card element should exist
cy.get(`#${CARD_TIP_ID}`).should('exist');
// select the avatar image
cy.get(`#${AVATAR_UPLOAD_INPUT_ID}`).selectFile(
THUMBNAIL_MEDIUM_PATH,
Expand All @@ -95,8 +92,6 @@ describe('Upload Avatar', () => {
cy.get(`#${MEMBER_AVATAR_IMAGE_ID}`).should('be.visible');
});
cy.wait('@uploadAvatar');
// card element should not exist
cy.get(`#${CARD_TIP_ID}`).should('not.exist');
});
});

Expand All @@ -108,7 +103,6 @@ describe('Image is not set', () => {

it('Image is not set', () => {
cy.wait('@getCurrentMember');
cy.get(`#${CARD_TIP_ID}`).should('exist');
// uploader icon should be visible
cy.get(`#${AVATAR_UPLOAD_ICON_ID}`).should('be.visible');
// image display element should not exist
Expand Down
1 change: 0 additions & 1 deletion src/config/selectors.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@ export const MEMBER_STORAGE_PARENT_FOLDER_ID = 'storage-parent-folder';
export const getCellId = (cellName: string, fileId: string): string =>
`${cellName}-${fileId}`;

export const CARD_TIP_ID = 'tip-card';
export const MEMBER_AVATAR_WRAPPER_ID = 'member-avatar';
export const MEMBER_AVATAR_IMAGE_ID = 'member-avatar-image';
export const MEMBER_CREATED_AT_ID = 'member-created-at';
Expand Down

0 comments on commit ed484a4

Please sign in to comment.