diff options
author | David Cho-Lerat <david.cho-lerat@sonarsource.com> | 2023-11-21 12:19:50 +0100 |
---|---|---|
committer | sonartech <sonartech@sonarsource.com> | 2023-11-24 20:02:45 +0000 |
commit | 74ddec687767e7c35ce6a479a04627909891102e (patch) | |
tree | 3f769ca42a1ff51a10a3d62e777e5ab36dd4c7bb /server | |
parent | a85121e3693f36f42fc0ca518a3e5f1cd4e5c72e (diff) | |
download | sonarqube-74ddec687767e7c35ce6a479a04627909891102e.tar.gz sonarqube-74ddec687767e7c35ce6a479a04627909891102e.zip |
SONAR-21017 Tests: looking for the presence/absence of the spinner should use 'byText'
Diffstat (limited to 'server')
-rw-r--r-- | server/sonar-web/src/main/js/apps/issues/test-utils.tsx | 4 |
1 files 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' }), |