aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMathieu Suen <mathieu.suen@sonarsource.com>2024-09-26 14:23:58 +0200
committersonartech <sonartech@sonarsource.com>2024-09-26 20:03:15 +0000
commit3453380d4d07ce59d0a39e9f20b88269e751f545 (patch)
tree69bcda34d0997e5a8b34511dd82c71b764e95410
parentd1c671dde42d0f3166565e922e0dd8217224ce88 (diff)
downloadsonarqube-3453380d4d07ce59d0a39e9f20b88269e751f545.tar.gz
sonarqube-3453380d4d07ce59d0a39e9f20b88269e751f545.zip
SGB-163 Improve issue app render in test
-rw-r--r--server/sonar-web/src/main/js/apps/issues/__tests__/IssueApp-it.tsx4
1 files changed, 2 insertions, 2 deletions
diff --git a/server/sonar-web/src/main/js/apps/issues/__tests__/IssueApp-it.tsx b/server/sonar-web/src/main/js/apps/issues/__tests__/IssueApp-it.tsx
index ce519f7f83b..ca1d509bdb4 100644
--- a/server/sonar-web/src/main/js/apps/issues/__tests__/IssueApp-it.tsx
+++ b/server/sonar-web/src/main/js/apps/issues/__tests__/IssueApp-it.tsx
@@ -87,7 +87,7 @@ describe('issue app', () => {
it('should be able to trigger a fix when feature is available', async () => {
settingsHandler.set('sonar.ai.suggestions.enabled', 'true');
sourcesHandler.setSource(
- range(0, 20)
+ range(0, 1)
.map((n) => `line: ${n}`)
.join('\n'),
);
@@ -99,7 +99,7 @@ describe('issue app', () => {
[Feature.BranchSupport, Feature.FixSuggestions],
);
- expect(await ui.getFixSuggestion.find(undefined, { timeout: 7000 })).toBeInTheDocument();
+ expect(await ui.getFixSuggestion.find(undefined, { timeout: 10_000 })).toBeInTheDocument();
await user.click(ui.getFixSuggestion.get());
expect(await ui.suggestedExplanation.find()).toBeInTheDocument();