]> source.dussan.org Git - sonarqube.git/commitdiff
SONAR-21017 Tests: looking for the presence/absence of the spinner should use 'byText'
authorDavid Cho-Lerat <david.cho-lerat@sonarsource.com>
Tue, 21 Nov 2023 11:19:50 +0000 (12:19 +0100)
committersonartech <sonartech@sonarsource.com>
Fri, 24 Nov 2023 20:02:45 +0000 (20:02 +0000)
server/sonar-web/src/main/js/apps/issues/test-utils.tsx

index a69dccf38db171117368bc43cffb9e8f113f63ad..08288910603879aad2f16d697dcc59ca23f99b8f 100644 (file)
@@ -26,7 +26,7 @@ import IssuesServiceMock from '../../api/mocks/IssuesServiceMock';
 import { mockComponent } from '../../helpers/mocks/component';
 import { mockCurrentUser } from '../../helpers/testMocks';
 import { renderApp, renderAppWithComponentContext } from '../../helpers/testReactTestingUtils';
-import { byLabelText, byPlaceholderText, byRole, byTestId } from '../../helpers/testSelector';
+import { byPlaceholderText, byRole, byTestId, byText } from '../../helpers/testSelector';
 import {
   CleanCodeAttributeCategory,
   SoftwareImpactSeverity,
@@ -42,7 +42,7 @@ export const componentsHandler = new ComponentsServiceMock();
 export const branchHandler = new BranchesServiceMock();
 
 export const ui = {
-  loading: byLabelText('loading'),
+  loading: byText('loading'),
   issuePageHeadering: byRole('heading', { level: 1, name: 'issues.page' }),
   issueItemAction1: byRole('link', { name: 'Issue with no location message' }),
   issueItemAction2: byRole('link', { name: 'FlowIssue' }),