Skip to content

Commit 0983d29

Browse files
committed
fix specs
1 parent 2a88afc commit 0983d29

2 files changed

Lines changed: 6 additions & 6 deletions

File tree

‎front/src/pods/student/student.component.spec.tsx‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ describe('StudentComponent tests', () => {
1717

1818
// Assert
1919
const sessionName = screen.getByRole('heading');
20-
const textArea = screen.getByRole('textbox');
20+
const textArea = screen.getByRole('log');
2121

2222
expect(sessionName).toHaveTextContent(expectedSessionNameText);
2323
expect(textArea).toHaveValue(props.log);
@@ -69,7 +69,7 @@ describe('StudentComponent tests', () => {
6969
render(<StudentComponent {...props} />);
7070

7171
// Assert
72-
const textArea = screen.getByRole('textbox');
72+
const textArea = screen.getByRole('log');
7373
expect(textArea).toHaveTextContent('');
7474
});
7575

@@ -84,7 +84,7 @@ describe('StudentComponent tests', () => {
8484
render(<StudentComponent {...props} />);
8585

8686
// Assert
87-
const textArea = screen.getByRole('textbox');
87+
const textArea = screen.getByRole('log');
8888
expect(textArea).toHaveTextContent('');
8989
});
9090
});

‎front/src/pods/trainer/components/session.component.spec.tsx‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ describe('SessionComponent unit tests', () => {
1616

1717
render(<SessionComponent {...props} />);
1818

19-
const textArea = screen.getByRole('textbox');
19+
const textArea = screen.getByRole('log');
2020
const sendFullContentButton = screen.getAllByRole('button')[1];
2121

2222
userEvent.type(textArea, 'How are you doing?');
@@ -40,7 +40,7 @@ describe('SessionComponent unit tests', () => {
4040

4141
render(<SessionComponent {...props} />);
4242

43-
const textArea = screen.getByRole('textbox');
43+
const textArea = screen.getByRole('log');
4444
const sendFullContentButton = screen.getAllByRole('button')[1];
4545

4646
userEvent.type(textArea, 'How are you doing?');
@@ -64,7 +64,7 @@ describe('SessionComponent unit tests', () => {
6464

6565
render(<SessionComponent {...props} />);
6666

67-
const textArea = screen.getByRole('textbox');
67+
const textArea = screen.getByRole('log');
6868
const undoButton = screen.getAllByRole('button')[0];
6969

7070
userEvent.type(textArea, 'How are you doing?');

0 commit comments

Comments
 (0)