Skip to content

Commit 880376a

Browse files
committed
#1650 - fix tests?
1 parent 4dc865e commit 880376a

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

src/frontend/src/tests/pages/ChangeRequestDetailPage/ProposedSolutionsList.test.tsx

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ describe('Proposed Solutions List Test Suite', () => {
5656

5757
it('Renders correctly when not empty and CR is not reviewed', () => {
5858
renderComponent(exampleProposedSolutions);
59-
expect(screen.getByText('+ Add Proposed Solution')).toBeInTheDocument();
59+
expect(screen.getByText('+ Add Solution')).toBeInTheDocument();
6060
expect(screen.getAllByText(/Description/).length).toBe(2);
6161
expect(screen.getAllByText(/Budget Impact/).length).toBe(2);
6262
expect(screen.getAllByText(/Timeline Impact/).length).toBe(2);
@@ -72,7 +72,7 @@ describe('Proposed Solutions List Test Suite', () => {
7272

7373
it('Renders correctly when empty and CR is not reviewed', () => {
7474
renderComponent();
75-
expect(screen.getByText('+ Add Proposed Solution')).toBeInTheDocument();
75+
expect(screen.getByText('+ Add Solution')).toBeInTheDocument();
7676
expect(screen.queryAllByText('Description').length).toBe(0);
7777
expect(screen.queryAllByText('Scope Impact').length).toBe(0);
7878
expect(screen.queryAllByText('Budget Impact').length).toBe(0);
@@ -94,7 +94,7 @@ describe('Proposed Solutions List Test Suite', () => {
9494
expect(screen.queryByText('Budget Impact')).not.toBeInTheDocument();
9595
expect(screen.queryByText('Timeline Impact')).not.toBeInTheDocument();
9696
expect(screen.queryByText('Add')).not.toBeInTheDocument();
97-
screen.getByText('+ Add Proposed Solution').click();
97+
screen.getByText('+ Add Solution').click();
9898
expect(screen.getByText('Description')).toBeInTheDocument();
9999
expect(screen.getByText('Scope Impact')).toBeInTheDocument();
100100
expect(screen.getByText('Budget Impact')).toBeInTheDocument();
@@ -104,11 +104,11 @@ describe('Proposed Solutions List Test Suite', () => {
104104

105105
it('Renders correctly when not empty and CR is reviewed', () => {
106106
renderComponent(exampleProposedSolutions, true);
107-
expect(screen.queryByText('+ Add Proposed Solution')).not.toBeInTheDocument();
107+
expect(screen.queryByText('+ Add Solution')).not.toBeInTheDocument();
108108
});
109109

110110
it('Renders correctly when empty and CR is reviewed', () => {
111111
renderComponent([], false);
112-
expect(screen.queryByText('+ Add Proposed Solution')).not.toBeInTheDocument();
112+
expect(screen.queryByText('+ Add Solution')).not.toBeInTheDocument();
113113
});
114114
});

0 commit comments

Comments
 (0)