Commit 1a121469 authored by Toni Salo's avatar Toni Salo
Browse files

testit updated

parent f7f1bef2
Pipeline #40942 passed with stages
in 2 minutes and 6 seconds
......@@ -81,14 +81,12 @@ test('paina kosketinta', () =>{
// Näkyvätkö kaikki koskettimet ohjeteksteineen?
test('kirjainvihjeet', () => {
act(() => { render(<App />, container); });
const moment = screen.getByText(/§/i);
const eka = screen.getByText("1");
const q = screen.getByText(/q/i);
const toka = screen.getByText("2");
const w = screen.getByText(/w/i);
const kolmas = screen.getByText(/3/i);
const e = screen.getByText("e");
const r = screen.getByText("r");
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("");
const viis = screen.getByText("5");
const t = screen.getByText("t");
const kuus = screen.getByText(/6/i);
......@@ -97,8 +95,6 @@ test('kirjainvihjeet', () => {
const u = screen.getByText("u");
const i = screen.getByText("i");
expect(moment).toBeInTheDocument();
expect(eka).toBeInTheDocument();
expect(q).toBeInTheDocument();
expect(toka).toBeInTheDocument();
expect(w).toBeInTheDocument();
......@@ -113,44 +109,28 @@ test('kirjainvihjeet', () => {
expect(u).toBeInTheDocument();
expect(i).toBeInTheDocument();
const a = screen.getByText(/a9/i);
const z = screen.getByText(/zo/i);
const s = screen.getByText(/s0/i);
const x = screen.getByText(/xp/i);
const c = screen.getByText(/åc/i);
const f = screen.getByText("f");
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 h = screen.getByText("h");
const n = screen.getByText("n");
const m = screen.getByText("m");
const k = screen.getByText("k");
const pilkku = screen.getByText(/,/i);
const l = screen.getByText("l");
const dot = screen.getByText(".");
const viiva = screen.getByText("-");
const adot = screen.getByText("ä");
expect(a).toBeInTheDocument();
expect(z).toBeInTheDocument();
expect(s).toBeInTheDocument();
expect(x).toBeInTheDocument();
expect(c).toBeInTheDocument();
expect(f).toBeInTheDocument();
expect(v).toBeInTheDocument();
expect(g).toBeInTheDocument();
expect(b).toBeInTheDocument();
expect(h).toBeInTheDocument();
expect(n).toBeInTheDocument();
expect(m).toBeInTheDocument();
expect(k).toBeInTheDocument();
expect(pilkku).toBeInTheDocument();
expect(l).toBeInTheDocument();
expect(dot).toBeInTheDocument();
expect(viiva).toBeInTheDocument();
expect(adot).toBeInTheDocument();
});
......
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