-
Notifications
You must be signed in to change notification settings - Fork 37
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'version-3-4' into backport/version-3-4/pr-2327
- Loading branch information
Showing
10 changed files
with
431 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
12 changes: 12 additions & 0 deletions
12
src/components/ReleaseNotesVersions/ReleaseNotesVersions.module.scss
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
.dropdownContainer { | ||
display: flex; | ||
justify-content: center; | ||
} | ||
|
||
.dropdownContainer > div:first-child { | ||
width: 50%; | ||
|
||
@media (max-width: 768px) { | ||
width: 100%; | ||
} | ||
} |
25 changes: 25 additions & 0 deletions
25
src/components/ReleaseNotesVersions/ReleaseNotesVersions.test.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
import React from "react"; | ||
import { render, screen, logRoles } from "@testing-library/react"; | ||
import ReleaseNotesVersions from "./ReleaseNotesVersions"; | ||
|
||
// These test are pretty much useless. | ||
// The only real purpose they show is catching simple issues, or component signature changes. | ||
|
||
jest.mock("./ReleaseNotesVersions", () => { | ||
return jest.fn(() => { | ||
return <div data-testid="mock-rl-note-admn"></div>; | ||
}); | ||
}); | ||
// Mock any other dependencies here | ||
|
||
describe("ReleaseNotesVersions", () => { | ||
it("renders without crashing", () => { | ||
render(<ReleaseNotesVersions />); | ||
expect(screen.getByTestId("mock-rl-note-admn")).toBeVisible(); | ||
expect(screen.getByTestId("mock-rl-note-admn")).toBeInTheDocument(); | ||
}); | ||
}); | ||
|
||
afterEach(() => { | ||
jest.clearAllMocks(); | ||
}); |
Oops, something went wrong.