Rename "Relevant" version of a schema to "Actual" (#2597)

Co-authored-by: winniechiu <winniechiu@cht.com.tw>
Co-authored-by: Roman Zabaluev <rzabaluev@provectus.com>
This commit is contained in:
Winnie Chiu 2022-09-18 01:42:36 +08:00 committed by GitHub
parent 69c6e9aeeb
commit 6d448c0322
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 3 deletions

View file

@ -14,7 +14,7 @@ const LatestVersionItem: React.FC<LatestVersionProps> = ({
}) => ( }) => (
<S.Wrapper> <S.Wrapper>
<div> <div>
<Heading level={3}>Relevant version</Heading> <Heading level={3}>Actual version</Heading>
<EditorViewer data={schema} schemaType={schemaType} maxLines={28} /> <EditorViewer data={schema} schemaType={schemaType} maxLines={28} />
</div> </div>
<div> <div>

View file

@ -8,7 +8,7 @@ import { jsonSchema, protoSchema } from './fixtures';
describe('LatestVersionItem', () => { describe('LatestVersionItem', () => {
it('renders latest version of json schema', () => { it('renders latest version of json schema', () => {
render(<LatestVersionItem schema={jsonSchema} />); render(<LatestVersionItem schema={jsonSchema} />);
expect(screen.getByText('Relevant version')).toBeInTheDocument(); expect(screen.getByText('Actual version')).toBeInTheDocument();
expect(screen.getByText('Latest version')).toBeInTheDocument(); expect(screen.getByText('Latest version')).toBeInTheDocument();
expect(screen.getByText('ID')).toBeInTheDocument(); expect(screen.getByText('ID')).toBeInTheDocument();
expect(screen.getByText('Subject')).toBeInTheDocument(); expect(screen.getByText('Subject')).toBeInTheDocument();
@ -18,7 +18,7 @@ describe('LatestVersionItem', () => {
it('renders latest version of compatibility', () => { it('renders latest version of compatibility', () => {
render(<LatestVersionItem schema={protoSchema} />); render(<LatestVersionItem schema={protoSchema} />);
expect(screen.getByText('Relevant version')).toBeInTheDocument(); expect(screen.getByText('Actual version')).toBeInTheDocument();
expect(screen.getByText('Latest version')).toBeInTheDocument(); expect(screen.getByText('Latest version')).toBeInTheDocument();
expect(screen.getByText('ID')).toBeInTheDocument(); expect(screen.getByText('ID')).toBeInTheDocument();
expect(screen.getByText('Subject')).toBeInTheDocument(); expect(screen.getByText('Subject')).toBeInTheDocument();