import noop from "lodash/noop"; import { expect, it } from "vitest"; import { renderWithProvider } from "../../testHelpers"; import { Modal } from "../../widgets/Modal"; it("renders correctly", () => { const { asFragment } = renderWithProvider( body ); expect(asFragment()).toMatchInlineSnapshot(` .c10 { align-self: center; fill: var(--colors-primary); color: var(--colors-primary); flex-shrink: 0; } .c6 { color: var(--colors-text); font-weight: 600; line-height: 1.5; font-size: 16px; } .c8 { position: relative; align-items: center; border: 0; border-radius: 16px; box-shadow: 0px -1px 0px 0px rgba(14, 14, 44, 0.4) inset; cursor: pointer; display: inline-flex; font-family: inherit; font-size: 16px; font-weight: 600; justify-content: center; letter-spacing: 0.03em; line-height: 1; opacity: 1; outline: 0; transition: background-color 0.2s,opacity 0.2s; height: 48px; padding: 0 24px; background-color: transparent; color: var(--colors-primary); box-shadow: none; } .c8:focus-visible { outline: none; box-shadow: var(--shadows-focus); } .c8:active:not(:disabled):not(.plexswap-button--disabled):not(.plexswap-button--disabled) { opacity: 0.85; transform: translateY(1px); box-shadow: none; } .c8:disabled, .c8.plexswap-button--disabled { background-color: var(--colors-backgroundDisabled); border-color: var(--colors-backgroundDisabled); box-shadow: none; color: var(--colors-textDisabled); cursor: not-allowed; } .c9 { padding: 2px; width: 48px; } .c1 { border-radius: var(--radii-32px); overflow: hidden; min-width: 320px; } .c2 { background: transparent; padding: 12px 24px; } .c11 { position: relative; top: 0px; padding: 24px; } .c3 { display: flex; } .c7 { font-size: 20px; font-weight: 600; line-height: 1.1; } .c4 { align-items: center; background: transparent; border-bottom: 1px solid var(--colors-cardBorder); display: flex; padding: 12px 24px; } .c5 { align-items: center; flex: 1; } .c12 { flex-direction: column; overflow-y: auto; overflow-x: hidden; max-height: calc(90vh - 73px); } .c0 { overflow: hidden; background: var(--colors-backgroundAlt); box-shadow: 0px 20px 36px -8px rgba(14, 14, 44, 0.1),0px 1px 1px rgba(0, 0, 0, 0.05); border: 1px solid var(--colors-cardBorder); border-radius: 32px 32px 0px 0px; width: 100%; max-height: calc(var(--vh, 1vh) * 100); z-index: 100; position: absolute; bottom: 0; max-width: none!important; min-height: 300px; } @supports (-webkit-text-size-adjust: none) and (not (-ms-accelerator: true)) and (not (-moz-appearance: none)) { .c10 { filter: none!important; } } @media (hover: hover) { .c8:hover:not(:disabled):not(.plexswap-button--disabled):not(.plexswap-button--disabled):not(:active) { opacity: 0.65; } } @media screen and (min-width: 968px) { .c7 { font-size: 20px; } } @media screen and (min-width: 852px) { .c4 { background: transparent; } } @media screen and (min-width: 852px) { .c12 { display: flex; max-height: 90vh; } } @media screen and (min-width: 852px) { .c0 { width: auto; position: auto; bottom: auto; border-radius: 32px; max-height: 100vh; } }

Title

body
`); });