Skip to content
Tarsoft

Developer Tools

Playwright: End-to-End Testing for Laravel & Flutter

Playwright training for Laravel and Flutter developers. Write reliable end-to-end tests for a Laravel app and a Flutter web build, then run them in CI.

  • Intermediate
  • 3 days

Overview

By the end of these three days, participants have a working end-to-end test suite that checks a Laravel app and a Flutter web build in real browsers, and runs on its own every time code is pushed.

The course is for Laravel developers who want automated browser tests, Flutter developers who ship a web build alongside their mobile app, and QA engineers moving from manual checks to automation. It suits teams in companies and government agencies that maintain their own systems and want to catch regressions before users do. If you were searching for a kursus Playwright or latihan automated testing with real code rather than slides, this is the course.

The first two days focus on Laravel. Participants set up Playwright Test so it starts the app and a clean test database for each run, then write tests with role and label locators and web-first assertions. They cover login, forms and validation, CRUD screens and role-based access, test API endpoints directly, and organise the suite with fixtures and page objects. They also learn to read a trace and fix flaky tests, which is where most real test suites struggle.

Day three moves to Flutter. Participants build the sample Flutter app for the web, enable its semantics tree so widgets can be found by label, and test it against the same Laravel API, with mocked responses where needed. The course ends with cross-browser runs and a CI pipeline.

Participants leave with that suite, built from scratch, and a Certificate of Completion via SIJIL.MY. Join a public session, or run it in-house as a private cohort, on-site or online, using your own application where practical. New to Laravel or Flutter? Start with Laravel: From Zero to Full-Stack or Flutter: Build Cross-Platform Apps.

Schedule is tentative and subject to change based on the trainer’s delivery and participants’ progress.

What you’ll learn

  • Explain where end-to-end tests fit alongside unit and feature tests
  • Set up Playwright Test in a Laravel project, with the app started automatically for each run
  • Find elements with resilient locators (role, label, text) and use web-first assertions
  • Test real Laravel flows: login, forms and validation, CRUD and role-based access
  • Keep tests independent with seeded test data, saved login state and the Page Object Model
  • Test Laravel API endpoints directly with Playwright's request fixture
  • Test a Flutter web build by enabling its semantics tree and locating widgets by label
  • Debug failing and flaky tests with the trace viewer, UI mode, screenshots and video
  • Run the suite across Chromium, Firefox and WebKit, and in a CI pipeline on every push

Who should join

  • Laravel developers who want automated browser tests for their web apps
  • Flutter developers shipping a Flutter web build alongside their mobile app
  • QA engineers and testers moving from manual testing to automation
  • Teams that maintain Laravel systems and want fewer regressions after each release

Prerequisites: Working experience with Laravel or Flutter, and basic JavaScript or TypeScript. Bring a laptop with Node.js (LTS), PHP and Composer, the Flutter SDK and a code editor (e.g. VS Code) installed. A sample Laravel app and Flutter web app are provided. No prior Playwright experience required.

Course modules

  1. 01   End-to-End Testing & Playwright Fundamentals

    Where end-to-end tests fit in the testing pyramid, what Playwright is and how it compares with Laravel Dusk and Flutter's integration_test. Hands-on: install Playwright Test and its browsers, then run a first test.

  2. 02   Setting Up Playwright in a Laravel Project

    Project layout, playwright.config, baseURL and the webServer option that starts the Laravel app for each run, plus a separate test database. Hands-on: wire Playwright into the sample Laravel app.

  3. 03   Locators, Actions & Assertions

    Role, label and text locators, auto-waiting, web-first assertions and generating tests with codegen. Hands-on: write tests for the app's public pages and navigation.

  4. 04   Testing Laravel Flows: Auth, Forms & CRUD

    Login and registration, form validation errors, CRUD screens and role-based access, with login state saved once and reused across tests. Hands-on: cover the sample app's main user journeys.

  5. 05   Test Data, Structure & API Testing

    Resetting and seeding the database with migrations, seeders and factories, organising tests with fixtures and the Page Object Model, and testing API endpoints with the request fixture. Hands-on: refactor the suite into page objects and add API tests.

  6. 06   Debugging & Fixing Flaky Tests

    The trace viewer, UI mode, screenshots and video on failure, and the common causes of flaky tests and how to remove them. Hands-on: diagnose and fix a set of deliberately broken tests.

  7. 07   Testing Flutter Web Apps

    How Flutter web renders, why the semantics tree matters for testing, adding Semantics labels, and testing a Flutter web build against the Laravel API, including mocked responses with page.route. Hands-on: build the sample Flutter app for web and test its key screens.

  8. 08   Cross-Browser, CI & Final Project

    Browser projects for Chromium, Firefox and WebKit, parallel runs, HTML reports and running the suite in a CI pipeline on every push. Hands-on: complete an end-to-end suite covering the Laravel app and the Flutter web build, running in CI.

FAQ

+ Do I need testing experience?

No prior Playwright or automated testing experience is required. You should be comfortable with either Laravel or Flutter, and able to read basic JavaScript or TypeScript, since Playwright tests are written in TypeScript.

+ Does this course test Flutter mobile apps on iOS and Android?

No. Playwright drives web browsers, so the course tests the Flutter web build of an app. Module 1 explains where Flutter's own integration_test tool fits for testing on devices.

+ What should I install before the course?

Node.js (LTS), PHP and Composer, the Flutter SDK and a code editor such as VS Code. Playwright and its browsers are installed together on day one. A sample Laravel app and Flutter web app are provided.

+ Will I get a certificate?

Yes. Participants receive a Certificate of Completion via SIJIL.MY (log in with your registered email to download).

Related courses

Web Development

Laravel: From Zero to Full-Stack

Laravel training for PHP developers. Build a portal app with routing, Eloquent, CRUD, login, user roles, API and security basics. HRD Corp claimable.

  • 3 days
  • Beginner

Regular price RM2,000 Early-bird price RM1,800 / pax Early bird

Book 14+ days ahead; RM2,000 regular

Mobile Development

Flutter: Build Cross-Platform Apps from Scratch

Flutter training for developers new to mobile. Build an iOS and Android app from one codebase and connect it to a Laravel API. HRD Corp claimable.

  • 4 days
  • Beginner to Intermediate

Regular price RM2,200 Early-bird price RM2,000 / pax Early bird

Book 14+ days ahead; RM2,200 regular

← All courses