You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The Playwright script automates a browser session, navigates to a given URL, and logs any console errors. It also records a video of the entire session.
34
34
@@ -73,7 +73,7 @@ import fs from 'fs';
73
73
})();
74
74
```
75
75
76
-
## 2. Running the Workflow
76
+
###2. Running the Workflow
77
77
78
78
A Laravel console command (`php artisan app:playwright`) starts the workflow which:
79
79
@@ -104,7 +104,7 @@ class Playwright extends Command
104
104
}
105
105
```
106
106
107
-
## 3. The Workflow
107
+
###3. The Workflow
108
108
109
109
```php
110
110
namespace App\Workflows\Playwright;
@@ -128,7 +128,7 @@ class CheckConsoleErrorsWorkflow extends Workflow
128
128
}
129
129
```
130
130
131
-
## 4. Running Playwright
131
+
###4. Running Playwright
132
132
133
133
```php
134
134
namespace App\Workflows\Playwright;
@@ -149,7 +149,7 @@ class CheckConsoleErrorsActivity extends Activity
149
149
}
150
150
```
151
151
152
-
## 5. Video Conversion with FFmpeg
152
+
###5. Video Conversion with FFmpeg
153
153
154
154
The Playwright recording is stored in WebM format, but we need an MP4 for wider compatibility. Laravel Workflow runs this process asynchronously.
155
155
@@ -176,7 +176,7 @@ class ConvertVideoActivity extends Activity
176
176
}
177
177
```
178
178
179
-
# Try It Now in Your Browser
179
+
##Try It Now in Your Browser
180
180
181
181
You don’t need to set up anything on your local machine. Everything is already configured in the Laravel Workflow [Sample App](https://github.com/laravel-workflow/sample-app).
0 commit comments