Added tests for buttons

This commit is contained in:
2025-11-17 23:08:37 -05:00
parent 7d9d0bdf73
commit 91c8169e97
22 changed files with 3342 additions and 1 deletions

View File

@@ -16,6 +16,7 @@ export default function Button(props: ButtonProps){
return (
<button
data-testid="mattrixwv-button"
{...buttonProps}
disabled={disabled}
className={clsx(
@@ -23,7 +24,7 @@ export default function Button(props: ButtonProps){
//Rounding
{
"rounded-sm": rounding === "sm",
"rounded": rounding === "md",
"rounded-md": rounding === "md",
"rounded-lg": rounding === "lg",
"rounded-full": rounding === "full"
},

View File

@@ -13,6 +13,7 @@ export default function DangerButton(props: ButtonProps){
return (
<Button
data-testid="mattrixwv-danger-button"
{...props}
className={clsx(
"transition duration-300",

View File

@@ -13,6 +13,7 @@ export default function DarkButton(props: ButtonProps){
return (
<Button
data-testid="mattrixwv-dark-button"
{...props}
className={clsx(
"transition duration-300",

View File

@@ -13,6 +13,7 @@ export default function InfoButton(props: ButtonProps){
return (
<Button
data-testid="mattrixwv-info-button"
{...props}
className={clsx(
"transition duration-300",

View File

@@ -13,6 +13,7 @@ export default function LightButton(props: ButtonProps){
return (
<Button
data-testid="mattrixwv-light-button"
{...props}
className={clsx(
"transition duration-300",

View File

@@ -13,6 +13,7 @@ export default function MoltenButton(props: ButtonProps){
return (
<Button
data-testid="mattrixwv-molten-button"
{...props}
className={clsx(
"transition duration-300",

View File

@@ -13,6 +13,7 @@ export default function PrimaryButton(props: ButtonProps){
return (
<Button
data-testid="mattrixwv-primary-button"
{...props}
className={clsx(
"transition duration-300",

View File

@@ -13,6 +13,7 @@ export default function SecondaryButton(props: ButtonProps){
return (
<Button
data-testid="mattrixwv-secondary-button"
{...props}
className={clsx(
"transition duration-300",

View File

@@ -13,6 +13,7 @@ export default function SuccessButton(props: ButtonProps){
return (
<Button
data-testid="mattrixwv-success-button"
{...props}
className={clsx(
"transition duration-300",

View File

@@ -13,6 +13,7 @@ export default function TertiaryButton(props: ButtonProps){
return (
<Button
data-testid="mattrixwv-tertiary-button"
{...props}
className={clsx(
"transition duration-300",

View File

@@ -13,6 +13,7 @@ export default function WarningButton(props: ButtonProps){
return (
<Button
data-testid="mattrixwv-warning-button"
{...props}
className={clsx(
"transition duration-300",