diff --git a/playwright/e2e/header.spec.ts b/playwright/e2e/header.spec.ts index 5f398e78..4b4c666c 100644 --- a/playwright/e2e/header.spec.ts +++ b/playwright/e2e/header.spec.ts @@ -1,30 +1,34 @@ -const { test, expect } = require('@playwright/test'); -import config from "../playwright.config"; -import { site } from "../../test/__fixtures__"; +const { test, expect } = require("@playwright/test") +import config from "../playwright.config" +import { site } from "../../test/__fixtures__" -const baseUrl = config.use?.baseURL; +const baseUrl = config.use?.baseURL -test.describe('Header', () => { - let page; +test.describe("Header", () => { + let page - test.beforeAll(async ({ browser }) => { - page = await browser.newPage(); - await page.goto(baseUrl); - }); + test.beforeAll(async ({ browser }) => { + page = await browser.newPage() + await page.goto(baseUrl) + }) - test('renders correctly', async () => { - await expect(page.locator('header')).toHaveText(site.siteMetadata.headerType); + test("renders correctly", async () => { + // TODO re-enable this header test once temporary release banner is removed + // await expect(page.locator('header')).toHaveText(site.siteMetadata.headerType); - const nasaLogo = page.locator('[data-cy=nasa-logo]'); - await expect(nasaLogo).toHaveAttribute('alt', "NASA's red, white and blue insignia, nicknamed the 'meatball'"); + const nasaLogo = page.locator("[data-cy=nasa-logo]") + await expect(nasaLogo).toHaveAttribute( + "alt", + "NASA's red, white and blue insignia, nicknamed the 'meatball'" + ) - const navItems = await page.locator('nav').locator('li'); - await expect(navItems).toHaveCount(5); + const navItems = await page.locator("nav").locator("li") + await expect(navItems).toHaveCount(5) - await expect(navItems.nth(0)).toHaveText('Explore'); - await expect(navItems.nth(1)).toHaveText('Glossary'); - await expect(navItems.nth(2)).toHaveText('About'); - await expect(navItems.nth(3)).toHaveText('FAQS'); - await expect(navItems.nth(4)).toHaveText('Contact'); - }); -}); + await expect(navItems.nth(0)).toHaveText("Explore") + await expect(navItems.nth(1)).toHaveText("Glossary") + await expect(navItems.nth(2)).toHaveText("About") + await expect(navItems.nth(3)).toHaveText("FAQS") + await expect(navItems.nth(4)).toHaveText("Contact") + }) +}) diff --git a/src/components/__tests__/__snapshots__/header.test.js.snap b/src/components/__tests__/__snapshots__/header.test.js.snap index a979c353..38deafb2 100644 --- a/src/components/__tests__/__snapshots__/header.test.js.snap +++ b/src/components/__tests__/__snapshots__/header.test.js.snap @@ -8,6 +8,72 @@ exports[`Header renders correctly 1`] = ` className="header___StyledHeader-sc-4sefiz-0 eymLSC" id="main-header" > +
+ July 2023 Update! While CASEI has been publicly available in beta mode since 2021, there is now a majority (65%) of known NASA airborne and field campaigns represented across the database and a unique range of search/browse functionality built into CASEI and its API. +
++ As you explore CASEI in this full-release version, keep in mind that additional campaigns, platforms, instruments, and data products are still being curated. We welcome + + ! +
++ July 2023 Update! While CASEI has been publicly available in beta mode + since 2021, there is now a majority (65%) of known NASA airborne and + field campaigns represented across the database and a unique range of + search/browse functionality built into CASEI and its API. +
++ As you explore CASEI in this full-release version, keep in mind that + additional campaigns, platforms, instruments, and data products are + still being curated. We welcome + + ! +
+