From: David Cho-Lerat Date: Tue, 21 Nov 2023 11:19:50 +0000 (+0100) Subject: SONAR-21017 Tests: looking for the presence/absence of the spinner should use 'byText' X-Git-Tag: 10.4.0.87286~410 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=74ddec687767e7c35ce6a479a04627909891102e;p=sonarqube.git SONAR-21017 Tests: looking for the presence/absence of the spinner should use 'byText' --- diff --git a/server/sonar-web/src/main/js/apps/issues/test-utils.tsx b/server/sonar-web/src/main/js/apps/issues/test-utils.tsx index a69dccf38db..08288910603 100644 --- a/server/sonar-web/src/main/js/apps/issues/test-utils.tsx +++ b/server/sonar-web/src/main/js/apps/issues/test-utils.tsx @@ -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' }),