تست

یکپارچه سازی لاراول و Cypress

Cypress and Laravel Integration

Cypress is a fantastic end-to-end testing framework. In this series, we'll learn, not just the ins and outs of Cypress, but also how it can be leveraged within a Laravel application to allow for everything from logging in, to seeding a database, to swapping environments.

سطح متوسط 7 جلسه آموزشی 01:00:00 ساعت
01
قسمت 1

Rapid Laravel and Cypress Setup

We'll begin by setting up a fresh Laravel application and pulling in Cypress. We'll eventually require a variety of Laravel-specific helpers for logging in,

02
قسمت 2

The Basics

Let's begin by using TDD to drive the creation of a blog posts landing page. This will give us the opportunity to review and discuss a basic workflow you can expect to follow.

03
قسمت 3

Let's Test the Laracasts Login Modal

Often in this series, we'll use BDD to drive our applications. However, the reality is that you'll often find yourself filling in tests after the fact

04
قسمت 4

Command and Assertion Essentials

Let's take a few moments to discuss the difference between commands and assertions, while also reviewing the underlying Chai assertion library that Cypress makes use of.

05
قسمت 5

Stubbing Network Requests with Fixtures

A true end-to-end test will span your entire system. This means no swapping things in the container, no faking third party APIs, and no stubbing endpoints

06
قسمت 6

Testing Billable Registration

Let's review another example using the Laracasts codebase. How would we go about testing registration that hits a third-party billing API, like Stripe?

07
قسمت 7

Reaching into Iframes

Iframes can be a little tricky when using Cypress. In this episode, we'll leverage retry-ability to wait until an iframe has loaded before continuing with the necessary queries and assertions.

دوره در حال اجرا

این دوره هنوز به پایان نرسیده است و در آینده درس های دیگری به آن افزوده خواهد شد.