-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
118 changed files
with
2,963 additions
and
432 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,3 +8,5 @@ CONTRIBUTING.md | |
LICENSE | ||
README.md | ||
SECURITY.md | ||
test-results | ||
playwright-report |
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 |
---|---|---|
|
@@ -35,3 +35,5 @@ yarn.lock | |
pnpm-lock.yaml | ||
|
||
*storybook.log | ||
test-results | ||
playwright-report |
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 |
---|---|---|
@@ -1,21 +1,19 @@ | ||
import type {StorybookConfig} from "@storybook/vue3-vite"; | ||
import type { StorybookConfig } from "@storybook/vue3-vite"; | ||
|
||
const config: StorybookConfig = { | ||
stories: ["../src/**/*.mdx", "../src/**/*.stories.@(js|jsx|mjs|ts|tsx)"], | ||
addons: [ | ||
"@storybook/addon-onboarding", | ||
"@storybook/addon-links", | ||
"@storybook/addon-essentials", | ||
"@chromatic-com/storybook", | ||
"@storybook/addon-interactions", | ||
], | ||
framework: { | ||
name: "@storybook/vue3-vite", | ||
options: {}, | ||
}, | ||
docs: { | ||
autodocs: "tag", | ||
}, | ||
staticDirs: ["../public"], | ||
stories: [ "../stories/**/*.stories.ts" ], | ||
addons: [ | ||
"@storybook/addon-onboarding", | ||
"@storybook/addon-links", | ||
"@storybook/addon-essentials", | ||
"@chromatic-com/storybook", | ||
"@storybook/addon-interactions", | ||
], | ||
framework: { | ||
name: "@storybook/vue3-vite", | ||
options: {}, | ||
}, | ||
docs: {}, | ||
staticDirs: [ "../public" ], | ||
}; | ||
export default config; |
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
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
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
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
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
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,45 @@ | ||
import { test, expect } from "@playwright/test"; | ||
|
||
test.describe("About Us Page Tests", () => { | ||
test("Visits the about-us page and checks content", async ({ page }) => { | ||
await page.goto("/about-us"); | ||
|
||
const mainContent = page.locator("main.container"); | ||
await expect(mainContent).toBeVisible(); | ||
|
||
const h1 = mainContent.locator("h1"); | ||
await expect(h1).toHaveText("Impulsionando o Futuro Juntos"); | ||
|
||
const h2 = mainContent.locator("h2"); | ||
await expect(h2).toHaveText("Colaborando para um amanhã mais tecnológico."); | ||
|
||
const p = mainContent.locator("p"); | ||
await expect(p).toHaveText("Por Trás dos Códigos"); | ||
|
||
const header = page.locator("header"); | ||
await expect(header).toBeVisible(); | ||
|
||
const footer = page.locator("footer"); | ||
await expect(footer).toBeVisible(); | ||
}); | ||
|
||
test("Checks visibility of Accordion and Badges components", async ({ page }) => { | ||
await page.goto("/about-us"); | ||
|
||
const accordion = page.locator("[data-testid='Accordion']"); | ||
await expect(accordion).toBeVisible(); | ||
|
||
const badges = page.locator("[data-testid='Badges']"); | ||
await expect(badges).toBeVisible(); | ||
}); | ||
|
||
// test("Checks navigation back to home", async ({ page }) => { | ||
// await page.goto("/about-us"); | ||
|
||
// const homeLink = page.locator("a[href='/']"); | ||
// await expect(homeLink).toBeVisible(); | ||
// await homeLink.click(); | ||
|
||
// await expect(page).toHaveURL("/"); | ||
// }); | ||
}); |
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,35 @@ | ||
import { test, expect } from "@playwright/test"; | ||
|
||
test.describe("Home Page Tests", () => { | ||
test("Visits the app root url and checks main content", async ({ page }) => { | ||
await page.goto("/"); | ||
|
||
const mainContainer = page.locator("main.container"); | ||
await expect(mainContainer).toBeVisible(); | ||
await expect(mainContainer).toHaveText("NEI Market Analytics"); | ||
}); | ||
|
||
test("Checks visibility of header", async ({ page }) => { | ||
await page.goto("/"); | ||
|
||
const header = page.locator("header"); | ||
await expect(header).toBeVisible(); | ||
}); | ||
|
||
test("Checks visibility of footer", async ({ page }) => { | ||
await page.goto("/"); | ||
|
||
const footer = page.locator("footer"); | ||
await expect(footer).toBeVisible(); | ||
}); | ||
|
||
test("Checks clickable text and navigation to about-us", async ({ page }) => { | ||
await page.goto("/"); | ||
|
||
const clickableText = page.locator("main.container >> text=NEI Market Analytics"); | ||
await expect(clickableText).toBeVisible(); | ||
await clickableText.click(); | ||
|
||
await expect(page).toHaveURL("/about-us"); | ||
}); | ||
}); |
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,4 @@ | ||
{ | ||
"extends": "@tsconfig/node20/tsconfig.json", | ||
"include": ["./**/*"] | ||
} |
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
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,9 @@ | ||
import type {HoverCardProps} from "@/components/HoverCard.vue"; | ||
|
||
export const HoverCardMock: HoverCardProps = { | ||
title: "John Doe", | ||
description: "Creator of Radix UI and Figma's design system", | ||
startDate: "February 2022", | ||
avatarSrc: "https://avatars.githubusercontent.com/u/11473738?v=4", | ||
avatarFallback: "JD", | ||
}; |
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,9 @@ | ||
import type {ImageProps} from "@/tags/Image.vue"; | ||
|
||
export const ImageMock: ImageProps = { | ||
alt: "image", | ||
height: "80", | ||
width: "80", | ||
src: "https://via.placeholder.com/80", | ||
class: "w-20 h-20 rounded-full", | ||
}; |
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,7 @@ | ||
import type {LinkProps} from "@/tags/Link.vue"; | ||
|
||
export const LinkMock: LinkProps = { | ||
href: "https://www.google.com", | ||
target: "_blank", | ||
class: "font-bold underline", | ||
}; |
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
Oops, something went wrong.