Commit 190bd6d1 authored by Toni Salo's avatar Toni Salo
Browse files

lisää perkussiivisia soittimia

parent 1a121469
Pipeline #40945 passed with stages
in 2 minutes and 4 seconds
......@@ -23,11 +23,20 @@ export function Soitinmenu(props) {
<select id="smenu" data-testid="tsmenu"
defaultValue="acoustic_grand_piano"
onChange={handleSoitinChange}>
<option value="shakuhachi">shakuhachi</option>
<option value="xylophone">xylofoni</option>
<option value="marimba">marimba</option>
<option value="tubular_bells">kellot</option>
<option value="dulcimer">dulcimer</option>
<option value="percussive_organ">lyömäurut</option>
<option value="kalimba">kalimba</option>
<option value="woodblock">palikka</option>
<option value="fx_8_scifi">8scifi</option>
<option value="pad_1_new_age">newage</option>
<option value="steel_drums">steel drums</option>
<option value="cello">sello</option>
<option value="flute">huilu</option>
<option value="bassoon">fagotti</option>
<option value="french_horn">torvi</option>
<option value="vibraphone">vibrafoni</option>
<option value="choir_aahs">ihminen</option>
<option value="acoustic_grand_piano">piano</option>
<option value="bagpipe">säkkipilli</option>
......
......@@ -40,14 +40,11 @@ test('soittimen valinta', () => {
expect(screen.getByTestId('tsmenu')).toHaveValue('flute')
userEvent.selectOptions(screen.getByTestId('tsmenu'), 'trumpet')
expect(screen.getByTestId('tsmenu')).toHaveValue('trumpet')
userEvent.selectOptions(screen.getByTestId('tsmenu'), 'shakuhachi')
expect(screen.getByTestId('tsmenu')).toHaveValue('shakuhachi')
userEvent.selectOptions(screen.getByTestId('tsmenu'), 'kalimba')
userEvent.selectOptions(screen.getByTestId('tsmenu'), 'bagpipe')
expect(screen.getByTestId('tsmenu')).toHaveValue('bagpipe')
userEvent.selectOptions(screen.getByTestId('tsmenu'), 'bassoon')
expect(screen.getByTestId('tsmenu')).toHaveValue('bassoon')
userEvent.selectOptions(screen.getByTestId('tsmenu'), 'french_horn')
expect(screen.getByTestId('tsmenu')).toHaveValue('french_horn')
userEvent.selectOptions(screen.getByTestId('tsmenu'), 'choir_aahs')
expect(screen.getByTestId('tsmenu')).toHaveValue('choir_aahs')
userEvent.selectOptions(screen.getByTestId('tsmenu'), 'distortion_guitar')
......@@ -83,7 +80,6 @@ test('kirjainvihjeet', () => {
act(() => { render(<App />, container); });
const q = screen.getByText(/q,/i);
const toka = screen.getByText("2l");
const w = screen.getByText(/w./i);
const kolmas = screen.getByText(/3ö/i);
const e = screen.getByText("e-");
const r = screen.getByText("");
......@@ -97,7 +93,6 @@ test('kirjainvihjeet', () => {
expect(q).toBeInTheDocument();
expect(toka).toBeInTheDocument();
expect(w).toBeInTheDocument();
expect(kolmas).toBeInTheDocument();
expect(e).toBeInTheDocument();
expect(r).toBeInTheDocument();
......@@ -111,18 +106,16 @@ test('kirjainvihjeet', () => {
const z = screen.getByText(/z/i);
const s = screen.getByText("s");
const x = screen.getByText(/x/i);
const c = screen.getByText("c");
const v = screen.getByText("v");
const g = screen.getByText("g");
const b = screen.getByText(/b/i);
const b = screen.getByText("b");
const h = screen.getByText("h");
const n = screen.getByText("n");
const m = screen.getByText("m");
expect(z).toBeInTheDocument();
expect(s).toBeInTheDocument();
expect(x).toBeInTheDocument();
expect(c).toBeInTheDocument();
expect(v).toBeInTheDocument();
expect(g).toBeInTheDocument();
......
......@@ -176,9 +176,54 @@ exports[`snapshot 1`] = `
id="smenu"
>
<option
value="shakuhachi"
value="xylophone"
>
shakuhachi
xylofoni
</option>
<option
value="marimba"
>
marimba
</option>
<option
value="tubular_bells"
>
kellot
</option>
<option
value="dulcimer"
>
dulcimer
</option>
<option
value="percussive_organ"
>
lyömäurut
</option>
<option
value="kalimba"
>
kalimba
</option>
<option
value="woodblock"
>
palikka
</option>
<option
value="fx_8_scifi"
>
8scifi
</option>
<option
value="pad_1_new_age"
>
newage
</option>
<option
value="steel_drums"
>
steel drums
</option>
<option
value="cello"
......@@ -196,9 +241,9 @@ exports[`snapshot 1`] = `
fagotti
</option>
<option
value="french_horn"
value="vibraphone"
>
torvi
vibrafoni
</option>
<option
value="choir_aahs"
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment