aboutsummaryrefslogtreecommitdiffstats
path: root/server/sonar-web/src/main/js/apps/issues/__tests__
diff options
context:
space:
mode:
authorViktor Vorona <viktor.vorona@sonarsource.com>2023-08-10 12:25:28 +0200
committersonartech <sonartech@sonarsource.com>2023-08-15 20:02:41 +0000
commitd72f2c84df6986c8a097be153269eae7f5ba0ea5 (patch)
treee23528873565d9228f481c9a50491fcdc927e906 /server/sonar-web/src/main/js/apps/issues/__tests__
parent4f7c8b3b77dd11e655b20fdf40654881d98176f3 (diff)
downloadsonarqube-d72f2c84df6986c8a097be153269eae7f5ba0ea5.tar.gz
sonarqube-d72f2c84df6986c8a097be153269eae7f5ba0ea5.zip
SONAR-19465 Remove deferred state from spinner
Diffstat (limited to 'server/sonar-web/src/main/js/apps/issues/__tests__')
-rw-r--r--server/sonar-web/src/main/js/apps/issues/__tests__/IssuesApp-it.tsx11
1 files changed, 6 insertions, 5 deletions
diff --git a/server/sonar-web/src/main/js/apps/issues/__tests__/IssuesApp-it.tsx b/server/sonar-web/src/main/js/apps/issues/__tests__/IssuesApp-it.tsx
index e191ebc3d8b..b9c4fb78f98 100644
--- a/server/sonar-web/src/main/js/apps/issues/__tests__/IssuesApp-it.tsx
+++ b/server/sonar-web/src/main/js/apps/issues/__tests__/IssuesApp-it.tsx
@@ -258,11 +258,10 @@ describe('issues app', () => {
expect(screen.getByRole('button', { name: 'issues.bulk_change_X_issues.10' })).toHaveFocus();
await user.click(screen.getByRole('checkbox', { name: 'issues.select_all_issues' }));
- // Check that we bulk change the selected issue
- const issueBoxFixThat = within(screen.getByRole('region', { name: 'Fix that' }));
-
expect(
- issueBoxFixThat.getByLabelText('issue.type.type_x_click_to_change.issue.type.CODE_SMELL')
+ within(screen.getByRole('region', { name: 'Fix that' })).getByLabelText(
+ 'issue.type.type_x_click_to_change.issue.type.CODE_SMELL'
+ )
).toBeInTheDocument();
await user.click(
@@ -280,7 +279,9 @@ describe('issues app', () => {
await user.click(screen.getByRole('button', { name: 'apply' }));
expect(
- issueBoxFixThat.getByLabelText('issue.type.type_x_click_to_change.issue.type.BUG')
+ await within(screen.getByRole('region', { name: 'Fix that' })).findByLabelText(
+ 'issue.type.type_x_click_to_change.issue.type.BUG'
+ )
).toBeInTheDocument();
});
});