React & React Native

End-to-end tests (Playwright, Cypress)

Në shqip: Testet nga fillimi në fund

ShpjegimiSQ

Testet end-to-end hapin një shfletues të vërtetë dhe e përdorin aplikacionin si përdorues: klikojnë, shkruajnë, kontrollojnë faqet. Playwright dhe Cypress janë mjetet më të njohura.

EnglishEN

End-to-end tests open a real browser and use the app like a user: clicking, typing, checking pages. Playwright and Cypress are the best-known tools.

Si ta mendosh

Si një klient misterioz që e provon gjithë dyqanin nga hyrja te arka.

Lexoje në anglisht

Like a mystery shopper who tries the whole shop from the door to the till.

Shembull kodijavascript

test("kërkimi gjen termin", async ({ page }) => {
  await page.goto("https://fjalori.dev");
  await page.getByRole("searchbox").fill("api");
  await expect(page.getByText("API")).toBeVisible();
});

Terma të lidhur