]> source.dussan.org Git - sonarqube.git/commitdiff
SONAR-20467 Fix non-expanding execution flow on issue selection
author7PH <benjamin.raymond@sonarsource.com>
Thu, 23 Nov 2023 14:26:56 +0000 (15:26 +0100)
committersonartech <sonartech@sonarsource.com>
Thu, 23 Nov 2023 20:02:58 +0000 (20:02 +0000)
server/sonar-web/src/main/js/apps/issues/__tests__/IssueApp-it.tsx
server/sonar-web/src/main/js/apps/issues/components/IssuesApp.tsx

index c610490fa88ddee285655bb68d7f99530512415a..97499c1a44494a00b15912b30ddd72e8b6fe66ed 100644 (file)
@@ -84,7 +84,11 @@ describe('issue app', () => {
 
   it('should interact with flows and locations', async () => {
     const user = userEvent.setup();
-    renderProjectIssuesApp('project/issues?issues=issue11&open=issue11&id=myproject');
+    renderProjectIssuesApp('project/issues?id=myproject');
+
+    await act(async () => {
+      await user.click(await ui.issueItemAction2.find());
+    });
 
     expect(await screen.findByLabelText('list_of_issues')).toBeInTheDocument();
 
index 2a3f7907d4a3b0d6461a0eac979f47ec8d37ee0f..ca7c2ba0f48021731b8c16e418c16ee6781f37c9 100644 (file)
@@ -439,7 +439,7 @@ export class App extends React.PureComponent<Props, State> {
   selectIssue = (issueKey: string) => {
     this.setState({
       selected: issueKey,
-      selectedFlowIndex: undefined,
+      selectedFlowIndex: 0,
       selectedLocationIndex: undefined,
     });
   };