diff options
author | Wouter Admiraal <wouter.admiraal@sonarsource.com> | 2023-08-07 12:14:34 +0200 |
---|---|---|
committer | sonartech <sonartech@sonarsource.com> | 2023-08-18 20:02:48 +0000 |
commit | 76650fecfb023f0b38da076b008f8f9edefa03bd (patch) | |
tree | 9fbd82bfeb9c775cf2b4f6758878adab1ec7239a | |
parent | 6fa43a47e5b97eb9a8c503752e8898b94d0994d0 (diff) | |
download | sonarqube-76650fecfb023f0b38da076b008f8f9edefa03bd.tar.gz sonarqube-76650fecfb023f0b38da076b008f8f9edefa03bd.zip |
[NO JIRA] Rename buttons-test to BareButtons-test
-rw-r--r-- | server/sonar-web/design-system/src/components/buttons/__tests__/BareButtons-test.tsx (renamed from server/sonar-web/design-system/src/components/buttons/__tests__/buttons-test.tsx) | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/server/sonar-web/design-system/src/components/buttons/__tests__/buttons-test.tsx b/server/sonar-web/design-system/src/components/buttons/__tests__/BareButtons-test.tsx index e8e0007d5b7..81dcf972a75 100644 --- a/server/sonar-web/design-system/src/components/buttons/__tests__/buttons-test.tsx +++ b/server/sonar-web/design-system/src/components/buttons/__tests__/BareButtons-test.tsx @@ -24,7 +24,7 @@ import { CodeViewerExpander } from '../BareButtons'; it('renders CodeViewerExpander correctly when direction is UP', () => { render(<CodeViewerExpander direction="UP">Hello</CodeViewerExpander>); - const content = screen.getByText('Hello'); + const content = screen.getByRole('button', { name: 'Hello' }); expect(content).toHaveStyle({ 'border-top': 'none', 'border-bottom': '1px solid rgb(221,221,221)', @@ -33,7 +33,7 @@ it('renders CodeViewerExpander correctly when direction is UP', () => { it('renders CodeViewerExpander correctly when direction is DOWN', () => { render(<CodeViewerExpander direction="DOWN">Hello</CodeViewerExpander>); - const content = screen.getByText('Hello'); + const content = screen.getByRole('button', { name: 'Hello' }); expect(content).toHaveStyle({ 'border-bottom': 'none', 'border-top': '1px solid rgb(221,221,221)', |