Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -39,11 +39,6 @@ describe("ChatProgresBar", () => {
expect(progressBar).toBeInTheDocument();
expect(progressBar).toHaveTextContent(givenReturnedUserFriendlyPhaseName);

// AND the progress bar label should be in the document
const progressBarLabel = screen.getByTestId(DATA_TEST_ID.PROGRESS_BAR_LABEL);
expect(progressBarLabel).toBeInTheDocument();
expect(progressBarLabel).toHaveTextContent(`${givenPercentage}%`);

// AND the width of the progress bar should be set to the percentage
// Wait for it because of the animation.

Expand Down
2 changes: 0 additions & 2 deletions frontend-new/src/chat/chatProgressbar/ChatProgressBar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ export const DATA_TEST_ID = {
CONTAINER: `chat-progress-bar-container-${uniqueId}`,
PROGRESS_BAR: `chat-progress-bar-${uniqueId}`,
PROGRESS_BAR_PHASE_TEXT: `chat-progress-bar-text-${uniqueId}`,
PROGRESS_BAR_LABEL: `chat-progress-bar-label-${uniqueId}`,
};

const ChatProgressBar: React.FC<CurrentPhase> = (currentPhase) => {
Expand Down Expand Up @@ -79,7 +78,6 @@ const ChatProgressBar: React.FC<CurrentPhase> = (currentPhase) => {
<Typography variant="progressBarText" lineHeight={1} data-testid={DATA_TEST_ID.PROGRESS_BAR_PHASE_TEXT}>
{userFriendlyConversationPhaseText}
</Typography>
<Box data-testid={DATA_TEST_ID.PROGRESS_BAR_LABEL}>{percentageInText}</Box>
</Box>
</Box>
</Box>
Expand Down

This file was deleted.

Loading