From 2dd4325d718a530d27e7b9c0afe4f55e1c9d6458 Mon Sep 17 00:00:00 2001 From: George Adams Date: Thu, 12 Jan 2023 20:30:49 +0000 Subject: [PATCH] push coverage --- .../supported-platforms.test.tsx.snap | 5770 +++++++++++++++++ .../__tests__/supported-platforms.test.tsx | 28 + 2 files changed, 5798 insertions(+) create mode 100644 src/pages/__tests__/__snapshots__/supported-platforms.test.tsx.snap create mode 100644 src/pages/__tests__/supported-platforms.test.tsx diff --git a/src/pages/__tests__/__snapshots__/supported-platforms.test.tsx.snap b/src/pages/__tests__/__snapshots__/supported-platforms.test.tsx.snap new file mode 100644 index 0000000000..446a05d9ac --- /dev/null +++ b/src/pages/__tests__/__snapshots__/supported-platforms.test.tsx.snap @@ -0,0 +1,5770 @@ +// Vitest Snapshot v1 + +exports[`Supported Platforms page > renders correctly 1`] = ` +
+
+
+
+

+ Temurin™ Supported Platforms +

+

+ This section lists the operating systems that are supported with the latest release of Eclipse Temurin. +

+

+ + + + - Supported, + + + + - Docker image available, + + + + - Not supported +

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+

+ Operating System +

+
+

+ Eclipse Temurin Version +

+
+

+ 8 +

+
+

+ 11 +

+
+

+ 17 +

+
+

+ 19 +

+
+

+ Windows (x64/x86) +

+
+

+ Windows Server 2022 +

+
+

+ + + + + + + +

+
+

+ + + + + + + +

+
+

+ + + + + + + +

+
+

+ + + + + + + +

+
+

+ Windows Server 2019 +

+
+

+ + + + + + + +

+
+

+ + + + + + + +

+
+

+ + + + + + + +

+
+

+ + + + + + + +

+
+

+ Windows Server 2016 +

+
+

+ + + +

+
+

+ + + +

+
+

+ + + +

+
+

+ + + +

+
+

+ Windows Server 2012 R2 +

+
+

+ + + +

+
+

+ + + +

+
+

+ + + +

+
+

+ + + +

+
+

+ Windows 11 +

+
+

+ + + +

+
+

+ + + +

+
+

+ + + +

+
+

+ + + +

+
+

+ Windows 10 +

+
+

+ + + +

+
+

+ + + +

+
+

+ + + +

+
+

+ + + +

+
+

+ Windows 8.1 +

+
+

+ + + +

+
+

+ + + +

+
+

+ + + +

+
+

+ + + +

+
+

+ Linux (x64)[1] +

+
+

+ Alpine Linux 3.5 or later (Headless) +

+
+

+ + + + + + + +

+
+

+ + + + + + + +

+
+

+ + + + + + + +

+
+

+ + + + + + + +

+
+

+ RHEL 9.x +

+
+

+ + + +

+
+

+ + + +

+
+

+ + + +

+
+

+ + + +

+
+

+ RHEL 8.x +

+
+

+ + + +

+
+

+ + + +

+
+

+ + + +

+
+

+ + + +

+
+

+ RHEL/CentOS 7.x +

+
+

+ + + + + + + +

+
+

+ + + + + + + +

+
+

+ + + + + + + +

+
+

+ + + + + + + +

+
+

+ SUSE Linux Enterprise Server (SLES) 12 +

+
+

+ + + +

+
+

+ + + +

+
+

+ + + +

+
+

+ + + +

+
+

+ Ubuntu 22.04 +

+
+

+ + + + + + + +

+
+

+ + + + + + + +

+
+

+ + + + + + + +

+
+

+ + + + + + + +

+
+

+ Ubuntu 20.04 +

+
+

+ + + + + + + +

+
+

+ + + + + + + +

+
+

+ + + + + + + +

+
+

+ + + + + + + +

+
+

+ Ubuntu 18.04 +

+
+

+ + + +

+
+

+ + + +

+
+

+ + + +

+
+

+ + + +

+
+

+ Linux (ARM 64-bit)[2] +

+
+

+ RHEL 9.x +

+
+

+ + + +

+
+

+ + + +

+
+

+ + + +

+
+

+ + + +

+
+

+ RHEL 8.x +

+
+

+ + + +

+
+

+ + + +

+
+

+ + + +

+
+

+ + + +

+
+

+ RHEL/CentOS 7.x +

+
+

+ + + + + + + +

+
+

+ + + + + + + +

+
+

+ + + + + + + +

+
+

+ + + + + + + +

+
+

+ Ubuntu 22.04 +

+
+

+ + + + + + + +

+
+

+ + + + + + + +

+
+

+ + + + + + + +

+
+

+ + + + + + + +

+
+

+ Ubuntu 20.04 +

+
+

+ + + + + + + +

+
+

+ + + + + + + +

+
+

+ + + + + + + +

+
+

+ + + + + + + +

+
+

+ Ubuntu 18.04 +

+
+

+ + + +

+
+

+ + + +

+
+

+ + + +

+
+

+ + + +

+
+

+ Linux (ARM 32-bit Hard-Float)[2] +

+
+

+ Ubuntu 22.04 +

+
+

+ + + + + + + +

+
+

+ + + + + + + +

+
+

+ + + + + + + +

+
+

+ + + + + + + +

+
+

+ Ubuntu 20.04 +

+
+

+ + + + + + + +

+
+

+ + + + + + + +

+
+

+ + + + + + + +

+
+

+ + + + + + + +

+
+

+ Ubuntu 18.04 +

+
+

+ + + +

+
+

+ + + +

+
+

+ + + +

+
+

+ + + +

+
+

+ Linux (PowerPC 64-bit Little Endian)[2] +

+
+

+ RHEL 9.x +

+
+

+ + + +

+
+

+ + + +

+
+

+ + + +

+
+

+ + + +

+
+

+ RHEL 8.x +

+
+

+ + + +

+
+

+ + + +

+
+

+ + + +

+
+

+ + + +

+
+

+ RHEL/CentOS 7.x +

+
+

+ + + + + + + +

+
+

+ + + + + + + +

+
+

+ + + + + + + +

+
+

+ + + + + + + +

+
+

+ Ubuntu 22.04 +

+
+

+ + + + + + + +

+
+

+ + + + + + + +

+
+

+ + + + + + + +

+
+

+ + + + + + + +

+
+

+ Ubuntu 20.04 +

+
+

+ + + + + + + +

+
+

+ + + + + + + +

+
+

+ + + + + + + +

+
+

+ + + + + + + +

+
+

+ Ubuntu 18.04 +

+
+

+ + + +

+
+

+ + + +

+
+

+ + + +

+
+

+ + + +

+
+

+ Linux (s390x)[2] +

+
+

+ RHEL 9.x +

+
+

+ + + +

+
+

+ + + +

+
+

+ + + +

+
+

+ + + +

+
+

+ RHEL 8.x +

+
+

+ + + +

+
+

+ + + +

+
+

+ + + +

+
+

+ + + +

+
+

+ RHEL 7.x +

+
+

+ + + +

+
+

+ + + + + + + +

+
+

+ + + + + + + +

+
+

+ + + + + + + +

+
+

+ Ubuntu 22.04 +

+
+

+ + + +

+
+

+ + + + + + + +

+
+

+ + + + + + + +

+
+

+ + + + + + + +

+
+

+ Ubuntu 20.04 +

+
+

+ + + +

+
+

+ + + + + + + +

+
+

+ + + + + + + +

+
+

+ + + + + + + +

+
+

+ Ubuntu 18.04 +

+
+

+ + + +

+
+

+ + + +

+
+

+ + + +

+
+

+ + + +

+
+

+ macOS (x64)[4] +

+
+

+ macOS 13 +

+
+

+ + + +

+
+

+ + + +

+
+

+ + + +

+
+

+ + + +

+
+

+ macOS 12 +

+
+

+ + + +

+
+

+ + + +

+
+

+ + + +

+
+

+ + + +

+
+

+ macOS 11 +

+
+

+ + + +

+
+

+ + + +

+
+

+ + + +

+
+

+ + + +

+
+

+ macOS 10.15 +

+
+

+ + + +

+
+

+ + + +

+
+

+ + + +

+
+

+ + + +

+
+

+ macOS (Apple Silicon) +

+
+

+ macOS 13 +

+
+

+ + + +

+
+

+ + + +

+
+

+ + + +

+
+

+ + + +

+
+

+ macOS 12 +

+
+

+ + + +

+
+

+ + + +

+
+

+ + + +

+
+

+ + + +

+
+

+ macOS 11 +

+
+

+ + + +

+
+

+ + + +

+
+

+ + + +

+
+

+ + + +

+
+

+ Solaris (x64 and Sparc) +

+
+

+ Solaris 11 +

+
+

+ + + +

+
+

+ + + +

+
+

+ + + +

+
+

+ + + +

+
+

+ Solaris 10u11 +

+
+

+ + + +

+
+

+ + + +

+
+

+ + + +

+
+

+ + + +

+
+

+ AIX (PowerPC 64-bit Big Endian) +

+
+

+ AIX 7.2 +

+
+

+ + + +

+
+

+ + + +

+
+

+ + + +

+
+

+ + + +

+
+

+ AIX 7.1 TL5 SP5 +

+
+

+ + + +

+
+

+ + + +

+
+

+ + + +

+
+

+ + + +

+
+

+ AIX 7.1 TL4 +

+
+

+ + + +

+
+

+ + + +

+
+

+ + + +

+
+

+ + + +

+
+
+

+ 1. These builds should work on any distribution with glibc version 2.12 or higher. +

+

+ 2. These builds should work on any distribution with glibc version 2.17 or higher. +

+

+ 3. JDK8 on s390 has no JIT so is unsupported. +

+

+ 4. These builds should work on macOS 10.12 or higher. +

+
+
+
+
+
+`; diff --git a/src/pages/__tests__/supported-platforms.test.tsx b/src/pages/__tests__/supported-platforms.test.tsx new file mode 100644 index 0000000000..afeb551c61 --- /dev/null +++ b/src/pages/__tests__/supported-platforms.test.tsx @@ -0,0 +1,28 @@ +import React from 'react'; +import { render } from '@testing-library/react'; +import { describe, expect, it } from 'vitest' +import { axe } from 'vitest-axe'; +import SupportedPlatforms, { Head } from '../supported-platforms'; + +describe('Supported Platforms page', () => { + it('renders correctly', () => { + const { container } = render(); + // eslint-disable-next-line + const pageContent = container.querySelector('main'); + + expect(pageContent).toMatchSnapshot(); + }); + + it('head renders correctly', () => { + const { container } = render(); + // eslint-disable-next-line + const title = container.querySelector('title'); + expect(title?.textContent).toEqual('Temurin Supported Platforms | Adoptium'); + }); + + it('has no accessibility violations', async () => { + const { container } = render(); + const results = await axe(container); + expect(results).toHaveNoViolations(); + }); +});