Skip to content

Commit

Permalink
some more e2e tests
Browse files Browse the repository at this point in the history
  • Loading branch information
wkelly17 committed Nov 21, 2024
1 parent 2f1a4b4 commit a6e98dd
Show file tree
Hide file tree
Showing 5 changed files with 600 additions and 497 deletions.
7 changes: 6 additions & 1 deletion src/components/HeaderMenuMobile.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,7 @@ export function HeaderMenuMobile(props: HeaderMenuProps) {
<button
type="button"
onClick={() => setIsOpen(!isOpen())}
data-testid="headerMenuMobileOpen"
class="active:(outline-primary bg-none) hover:(!bg-transparent text-primary!) focus:(!bg-transparent outline-primary outline-1) icon text-black!"
>
<Show when={!isOpen()} fallback={<CloseCircle />}>
Expand All @@ -119,7 +120,10 @@ export function HeaderMenuMobile(props: HeaderMenuProps) {
return (
<>
<Show when={isParent(menuLink)}>
<li class="py-4 w-full flex justify-between content-center flex-shrink-0 last:(border-b border-surface-border pb-12)">
<li
data-testid="headerMenuItem"
class="py-4 w-full flex justify-between content-center flex-shrink-0 last:(border-b border-surface-border pb-12)"
>
<a
class="font-500 font-step-0"
href={shapeLink(menuLink)}
Expand Down Expand Up @@ -193,6 +197,7 @@ export function HeaderMenuMobile(props: HeaderMenuProps) {
<button
type="button"
class="p-3 flex w-full items-center justify-between active:(bg-brand-base text-surface-invert) border border-surface-border rounded-lg"
data-testid="headerOpenLocalizeMenu"
onClick={() => setActivePane("language")}
>
<span class="flex gap-2">
Expand Down
1 change: 1 addition & 0 deletions src/components/LanguagePicker.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,7 @@ export function LanguagePickerMobile(props: LangPickerProps) {
item.localizedUrl ||
`${item.code === "en" ? "/" : `/${item.code}`}`
}
data-testid={`language-picker-item-${item.language_code}`}
>
<span>{item.native_name}</span>
<span class="text-onSurface-tertiary font-size-[var(--step--2)]">
Expand Down
Loading

0 comments on commit a6e98dd

Please sign in to comment.