Skip to content

Commit

Permalink
Finalize PR to implement the new structure
Browse files Browse the repository at this point in the history
  • Loading branch information
lupusA committed Nov 12, 2023
1 parent e3e5d7d commit cdd6f87
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 542 deletions.
15 changes: 0 additions & 15 deletions src/tests/Preferences.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,21 +37,6 @@ describe('Select the light theme', () => {
})
})

/**
*
*/
describe('Select the dark theme', () => {
test('Should select dark theme', () => {
userEvent.selectOptions(
screen.getByRole('combobox', { name: "Theme" }),
screen.getByRole('option', { name: 'dark' }));

expect(screen.getByRole('option', { name: 'dark' }).selected).toBe(true)

expect(wrapper).toMatchSnapshot();
})
})

/**
*
*/
Expand Down
22 changes: 0 additions & 22 deletions src/tests/RepositoryUI.test.jsx

This file was deleted.

273 changes: 0 additions & 273 deletions src/tests/__snapshots__/Preferences.test.js.snap
Original file line number Diff line number Diff line change
Expand Up @@ -273,279 +273,6 @@ Object {
}
`;

exports[`Select the dark theme Should select dark theme 1`] = `
Object {
"asFragment": [Function],
"baseElement": <body>
<div>
<form>
<div
class="form-group"
>
<label
class="label-description"
for="themeSelector"
id="themeLabel"
>
Theme
</label>
<select
class="form-select form-select-sm"
id="themeSelector"
title="Select theme"
>
<option
value="light"
>
light
</option>
<option
value="dark"
>
dark
</option>
<option
value="pastel"
>
pastel
</option>
<option
value="ocean"
>
ocean
</option>
</select>
<small
class="form-text text-muted"
hmtlfor="themeLabel"
id="themeHelp"
>
The current active theme
</small>
</div>
<br />
<div
class="form-group"
>
<label
class="label-description"
for="bytesBaseInput"
>
Byte representation
</label>
<select
class="form-select form-select-sm"
id="bytesBaseInput"
title="Select byte representation"
>
<option
value="true"
>
Base-2 (KiB, MiB, GiB, TiB)
</option>
<option
value="false"
>
Base-10 (KB, MB, GB, TB)
</option>
</select>
<small
class="form-text text-muted"
hmtlfor="bytesBaseInput"
id="bytesHelp"
>
Specifies the representation of bytes
</small>
</div>
<br />
<div
class="form-group"
>
<label
class="label-description"
>
Page size
</label>
<input
class="form-control form-control-sm"
disabled=""
id="pageSizeInput"
placeholder="Page size"
type="text"
value=""
/>
<small
class="form-text text-muted"
hmtlfor="pageSizeInput"
id="pageSizeHelp"
>
Specifies the pagination size in tables
</small>
</div>
</form>
</div>
</body>,
"container": <div>
<form>
<div
class="form-group"
>
<label
class="label-description"
for="themeSelector"
id="themeLabel"
>
Theme
</label>
<select
class="form-select form-select-sm"
id="themeSelector"
title="Select theme"
>
<option
value="light"
>
light
</option>
<option
value="dark"
>
dark
</option>
<option
value="pastel"
>
pastel
</option>
<option
value="ocean"
>
ocean
</option>
</select>
<small
class="form-text text-muted"
hmtlfor="themeLabel"
id="themeHelp"
>
The current active theme
</small>
</div>
<br />
<div
class="form-group"
>
<label
class="label-description"
for="bytesBaseInput"
>
Byte representation
</label>
<select
class="form-select form-select-sm"
id="bytesBaseInput"
title="Select byte representation"
>
<option
value="true"
>
Base-2 (KiB, MiB, GiB, TiB)
</option>
<option
value="false"
>
Base-10 (KB, MB, GB, TB)
</option>
</select>
<small
class="form-text text-muted"
hmtlfor="bytesBaseInput"
id="bytesHelp"
>
Specifies the representation of bytes
</small>
</div>
<br />
<div
class="form-group"
>
<label
class="label-description"
>
Page size
</label>
<input
class="form-control form-control-sm"
disabled=""
id="pageSizeInput"
placeholder="Page size"
type="text"
value=""
/>
<small
class="form-text text-muted"
hmtlfor="pageSizeInput"
id="pageSizeHelp"
>
Specifies the pagination size in tables
</small>
</div>
</form>
</div>,
"debug": [Function],
"findAllByAltText": [Function],
"findAllByDisplayValue": [Function],
"findAllByLabelText": [Function],
"findAllByPlaceholderText": [Function],
"findAllByRole": [Function],
"findAllByTestId": [Function],
"findAllByText": [Function],
"findAllByTitle": [Function],
"findByAltText": [Function],
"findByDisplayValue": [Function],
"findByLabelText": [Function],
"findByPlaceholderText": [Function],
"findByRole": [Function],
"findByTestId": [Function],
"findByText": [Function],
"findByTitle": [Function],
"getAllByAltText": [Function],
"getAllByDisplayValue": [Function],
"getAllByLabelText": [Function],
"getAllByPlaceholderText": [Function],
"getAllByRole": [Function],
"getAllByTestId": [Function],
"getAllByText": [Function],
"getAllByTitle": [Function],
"getByAltText": [Function],
"getByDisplayValue": [Function],
"getByLabelText": [Function],
"getByPlaceholderText": [Function],
"getByRole": [Function],
"getByTestId": [Function],
"getByText": [Function],
"getByTitle": [Function],
"queryAllByAltText": [Function],
"queryAllByDisplayValue": [Function],
"queryAllByLabelText": [Function],
"queryAllByPlaceholderText": [Function],
"queryAllByRole": [Function],
"queryAllByTestId": [Function],
"queryAllByText": [Function],
"queryAllByTitle": [Function],
"queryByAltText": [Function],
"queryByDisplayValue": [Function],
"queryByLabelText": [Function],
"queryByPlaceholderText": [Function],
"queryByRole": [Function],
"queryByTestId": [Function],
"queryByText": [Function],
"queryByTitle": [Function],
"rerender": [Function],
"unmount": [Function],
}
`;

exports[`Select the light theme Should select light theme 1`] = `
Object {
"asFragment": [Function],
Expand Down
Loading

0 comments on commit cdd6f87

Please sign in to comment.