Skip to content
This repository has been archived by the owner on Mar 23, 2023. It is now read-only.

Commit

Permalink
chore: update Settings tests
Browse files Browse the repository at this point in the history
  • Loading branch information
goga-m committed Jul 31, 2020
1 parent a3a3c5a commit b132e00
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 37 deletions.
2 changes: 0 additions & 2 deletions src/domains/setting/pages/Settings/Settings.test.tsx
Expand Up @@ -10,7 +10,6 @@ import { act, env, fireEvent, getDefaultProfileId, renderWithRouter } from "test
import { translations } from "../../i18n";
import { Settings } from "./Settings";


jest.mock("electron", () => {
const setContentProtection = jest.fn();

Expand All @@ -30,7 +29,6 @@ jest.mock("fs", () => ({
readFileSync: jest.fn(() => "avatarImage"),
}));

let env: Environment;
let profile: Profile;
let showOpenDialogMock: jest.SpyInstance;
const showOpenDialogParams = {
Expand Down
Expand Up @@ -532,20 +532,18 @@ exports[`Settings should open & close modals in the plugin settings 1`] = `
<button
aria-expanded="false"
aria-haspopup="listbox"
aria-labelledby="downshift-166-label downshift-166-toggle-button"
aria-labelledby="downshift-157-label downshift-157-toggle-button"
class="sc-fznWqX iNiXlu "
data-testid="select-list__toggle-button"
id="downshift-166-toggle-button"
id="downshift-157-toggle-button"
type="button"
>
Select Plugin Source
</button>
<ul
aria-labelledby="downshift-166-label"
aria-labelledby="downshift-157-label"
class="sc-fzoiQi eFpDPy"
id="downshift-166-menu"
id="downshift-157-menu"
role="listbox"
tabindex="-1"
/>
Expand Down Expand Up @@ -3125,18 +3123,18 @@ exports[`Settings should render plugin settings 1`] = `
<button
aria-expanded="false"
aria-haspopup="listbox"
aria-labelledby="downshift-159-label downshift-159-toggle-button"
aria-labelledby="downshift-150-label downshift-150-toggle-button"
class="sc-fznWqX iNiXlu "
data-testid="select-list__toggle-button"
id="downshift-159-toggle-button"
id="downshift-150-toggle-button"
type="button"
>
Select Plugin Source
</button>
<ul
aria-labelledby="downshift-159-label"
aria-labelledby="downshift-150-label"
class="sc-fzoiQi eFpDPy"
id="downshift-159-menu"
id="downshift-150-menu"
role="listbox"
tabindex="-1"
/>
Expand Down Expand Up @@ -3677,18 +3675,18 @@ exports[`Settings should submit using default props 1`] = `
<button
aria-expanded="false"
aria-haspopup="listbox"
aria-labelledby="downshift-108-label downshift-108-toggle-button"
aria-labelledby="downshift-104-label downshift-104-toggle-button"
class="sc-fznWqX iNiXlu is-selected "
data-testid="select-list__toggle-button"
id="downshift-108-toggle-button"
id="downshift-104-toggle-button"
type="button"
>
Chinese Simplified
</button>
<ul
aria-labelledby="downshift-108-label"
aria-labelledby="downshift-104-label"
class="sc-fzoiQi eFpDPy"
id="downshift-108-menu"
id="downshift-104-menu"
role="listbox"
tabindex="-1"
/>
Expand Down Expand Up @@ -3738,18 +3736,18 @@ exports[`Settings should submit using default props 1`] = `
<button
aria-expanded="false"
aria-haspopup="listbox"
aria-labelledby="downshift-109-label downshift-109-toggle-button"
aria-labelledby="downshift-105-label downshift-105-toggle-button"
class="sc-fznWqX iNiXlu is-selected "
data-testid="select-list__toggle-button"
id="downshift-109-toggle-button"
id="downshift-105-toggle-button"
type="button"
>
BTC (Ƀ)
</button>
<ul
aria-labelledby="downshift-109-label"
aria-labelledby="downshift-105-label"
class="sc-fzoiQi eFpDPy"
id="downshift-109-menu"
id="downshift-105-menu"
role="listbox"
tabindex="-1"
/>
Expand Down Expand Up @@ -3803,18 +3801,18 @@ exports[`Settings should submit using default props 1`] = `
<button
aria-expanded="false"
aria-haspopup="listbox"
aria-labelledby="downshift-110-label downshift-110-toggle-button"
aria-labelledby="downshift-106-label downshift-106-toggle-button"
class="sc-fznWqX iNiXlu is-selected "
data-testid="select-list__toggle-button"
id="downshift-110-toggle-button"
id="downshift-106-toggle-button"
type="button"
>
English
</button>
<ul
aria-labelledby="downshift-110-label"
aria-labelledby="downshift-106-label"
class="sc-fzoiQi eFpDPy"
id="downshift-110-menu"
id="downshift-106-menu"
role="listbox"
tabindex="-1"
/>
Expand Down Expand Up @@ -3864,19 +3862,18 @@ exports[`Settings should submit using default props 1`] = `
<button
aria-expanded="false"
aria-haspopup="listbox"
aria-labelledby="downshift-111-label downshift-111-toggle-button"
aria-labelledby="downshift-107-label downshift-107-toggle-button"
class="sc-fznWqX iNiXlu is-selected "
data-testid="select-list__toggle-button"
id="downshift-111-toggle-button"
id="downshift-107-toggle-button"
type="button"
>
CoinCap
</button>
<ul
aria-labelledby="downshift-111-label"
aria-labelledby="downshift-107-label"
class="sc-fzoiQi eFpDPy"
id="downshift-111-menu"
id="downshift-107-menu"
role="listbox"
tabindex="-1"
/>
Expand Down Expand Up @@ -3926,18 +3923,18 @@ exports[`Settings should submit using default props 1`] = `
<button
aria-expanded="false"
aria-haspopup="listbox"
aria-labelledby="downshift-112-label downshift-112-toggle-button"
aria-labelledby="downshift-108-label downshift-108-toggle-button"
class="sc-fznWqX iNiXlu is-selected "
data-testid="select-list__toggle-button"
id="downshift-112-toggle-button"
id="downshift-108-toggle-button"
type="button"
>
12h
</button>
<ul
aria-labelledby="downshift-112-label"
aria-labelledby="downshift-108-label"
class="sc-fzoiQi eFpDPy"
id="downshift-112-menu"
id="downshift-108-menu"
role="listbox"
tabindex="-1"
/>
Expand Down Expand Up @@ -4203,18 +4200,18 @@ exports[`Settings should submit using default props 1`] = `
<button
aria-expanded="false"
aria-haspopup="listbox"
aria-labelledby="downshift-113-label downshift-113-toggle-button"
aria-labelledby="downshift-109-label downshift-109-toggle-button"
class="sc-fznWqX iNiXlu "
data-testid="select-list__toggle-button"
id="downshift-113-toggle-button"
id="downshift-109-toggle-button"
type="button"
>
Select Auto-logoff
</button>
<ul
aria-labelledby="downshift-113-label"
aria-labelledby="downshift-109-label"
class="sc-fzoiQi eFpDPy"
id="downshift-113-menu"
id="downshift-109-menu"
role="listbox"
tabindex="-1"
/>
Expand Down

0 comments on commit b132e00

Please sign in to comment.