From 74ddec687767e7c35ce6a479a04627909891102e Mon Sep 17 00:00:00 2001 From: David Cho-Lerat Date: Tue, 21 Nov 2023 12:19:50 +0100 Subject: [PATCH] SONAR-21017 Tests: looking for the presence/absence of the spinner should use 'byText' --- server/sonar-web/src/main/js/apps/issues/test-utils.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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' }), -- 2.39.5