Skip to content

Commit

Permalink
test(snapshots): update snap
Browse files Browse the repository at this point in the history
  • Loading branch information
philibea committed May 24, 2024
1 parent 352f338 commit 92d2608
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1572,7 +1572,7 @@ exports[`SelectInputV2 > renders correctly grouped 1`] = `
<div
class="emotion-130 emotion-9"
>
Neptune
Neptune
<span
class="emotion-132 emotion-133 emotion-9"
>
Expand Down Expand Up @@ -4979,7 +4979,7 @@ exports[`SelectInputV2 > renders correctly multiselect 1`] = `
<div
class="emotion-280 emotion-15"
>
Neptune
Neptune
<span
class="emotion-282 emotion-283 emotion-15"
>
Expand Down Expand Up @@ -6709,7 +6709,7 @@ exports[`SelectInputV2 > renders correctly required 2`] = `
<div
class="emotion-104 emotion-9"
>
Neptune
Neptune
<span
class="emotion-106 emotion-107 emotion-9"
>
Expand Down Expand Up @@ -8317,7 +8317,7 @@ exports[`SelectInputV2 > renders correctly ungrouped 1`] = `
<div
class="emotion-104 emotion-9"
>
Neptune
Neptune
<span
class="emotion-106 emotion-107 emotion-9"
>
Expand Down Expand Up @@ -9462,7 +9462,7 @@ exports[`SelectInputV2 > renders correctly with default value 1`] = `
<div
class="emotion-8 emotion-9"
>
Neptune
Neptune
<span
class="emotion-136 emotion-137 emotion-9"
>
Expand Down Expand Up @@ -11003,7 +11003,7 @@ exports[`SelectInputV2 > renders correctly with error 1`] = `
<div
class="emotion-106 emotion-9"
>
Neptune
Neptune
<span
class="emotion-108 emotion-109 emotion-9"
>
Expand Down Expand Up @@ -12159,7 +12159,7 @@ exports[`SelectInputV2 > renders correctly with footer 1`] = `
<div
class="emotion-8 emotion-9"
>
Neptune
Neptune
<span
class="emotion-136 emotion-137 emotion-9"
>
Expand Down Expand Up @@ -17416,7 +17416,7 @@ exports[`SelectInputV2 > renders correctly with not searchable 1`] = `
<div
class="emotion-93 emotion-9"
>
Neptune
Neptune
<span
class="emotion-95 emotion-96 emotion-9"
>
Expand Down Expand Up @@ -18399,7 +18399,7 @@ exports[`SelectInputV2 > renders correctly with success 1`] = `
<div
class="emotion-106 emotion-9"
>
Neptune
Neptune
<span
class="emotion-108 emotion-109 emotion-9"
>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import userEvent from '@testing-library/user-event'
import { renderWithTheme } from '@utils/test'
import type { ReactNode } from 'react'
import { act } from 'react'
import { beforeAll, describe, expect, test, vi } from 'vitest'
import { afterEach, beforeEach, describe, expect, test, vi } from 'vitest'
import { SelectInputV2 } from '..'
import { OptionalInfo, cities, dataGrouped, dataUnGrouped } from './resources'

Expand All @@ -16,13 +16,17 @@ export type OptionType = {
}

describe('SelectInputV2', () => {
beforeAll(() => {
beforeEach(() => {
Object.defineProperty(HTMLElement.prototype, 'offsetWidth', {
configurable: true,
value: 500,
})
})

afterEach(() => {
Object.defineProperty(HTMLElement.prototype, 'offsetWidth', {})
})

test('renders correctly', () => {
const { asFragment } = renderWithTheme(
<SelectInputV2 name="test" options={dataUnGrouped} label="label" />,
Expand Down

0 comments on commit 92d2608

Please sign in to comment.