Skip to content

Commit 41d62ff

Browse files
authored
Correct code (laravel#9577)
* Correct code * Spacing
1 parent 8aaa0c0 commit 41d62ff

File tree

1 file changed

+14
-14
lines changed

1 file changed

+14
-14
lines changed

dusk.md

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ To get started, you should install [Google Chrome](https://www.google.com/chrome
6464
composer require laravel/dusk --dev
6565
```
6666

67-
> [!WARNING]
67+
> [!WARNING]
6868
> If you are manually registering Dusk's service provider, you should **never** register it in your production environment, as doing so could lead to arbitrary users being able to authenticate with your application.
6969
7070
After installing the Dusk package, execute the `dusk:install` Artisan command. The `dusk:install` command will create a `tests/Browser` directory, an example Dusk test, and install the Chrome Driver binary for your operating system:
@@ -75,7 +75,7 @@ php artisan dusk:install
7575

7676
Next, set the `APP_URL` environment variable in your application's `.env` file. This value should match the URL you use to access your application in a browser.
7777

78-
> [!NOTE]
78+
> [!NOTE]
7979
> If you are using [Laravel Sail](/docs/{{version}}/sail) to manage your local development environment, please also consult the Sail documentation on [configuring and running Dusk tests](/docs/{{version}}/sail#laravel-dusk).
8080
8181
<a name="managing-chromedriver-installations"></a>
@@ -97,7 +97,7 @@ php artisan dusk:chrome-driver --all
9797
php artisan dusk:chrome-driver --detect
9898
```
9999

100-
> [!WARNING]
100+
> [!WARNING]
101101
> Dusk requires the `chromedriver` binaries to be executable. If you're having problems running Dusk, you should ensure the binaries are executable using the following command: `chmod -R 0755 vendor/laravel/dusk/bin/`.
102102
103103
<a name="using-other-browsers"></a>
@@ -181,7 +181,7 @@ class ExampleTest extends DuskTestCase
181181
}
182182
```
183183

184-
> [!WARNING]
184+
> [!WARNING]
185185
> SQLite in-memory databases may not be used when executing Dusk tests. Since the browser executes within its own process, it will not be able to access the in-memory databases of other processes.
186186
187187
<a name="reset-truncation"></a>
@@ -287,7 +287,7 @@ The `dusk` command accepts any argument that is normally accepted by the Pest /
287287
php artisan dusk --group=foo
288288
```
289289

290-
> [!NOTE]
290+
> [!NOTE]
291291
> If you are using [Laravel Sail](/docs/{{version}}/sail) to manage your local development environment, please consult the Sail documentation on [configuring and running Dusk tests](/docs/{{version}}/sail#laravel-dusk).
292292
293293
<a name="manually-starting-chromedriver"></a>
@@ -506,7 +506,7 @@ Often, you will be testing pages that require authentication. You can use Dusk's
506506
->visit('/home');
507507
});
508508

509-
> [!WARNING]
509+
> [!WARNING]
510510
> After using the `loginAs` method, the user session will be maintained for all tests within the file.
511511
512512
<a name="cookies"></a>
@@ -707,7 +707,7 @@ The `attach` method may be used to attach a file to a `file` input element. Like
707707

708708
$browser->attach('photo', __DIR__.'/photos/mountains.png');
709709

710-
> [!WARNING]
710+
> [!WARNING]
711711
> The attach function requires the `Zip` PHP extension to be installed and enabled on your server.
712712
713713
<a name="pressing-buttons"></a>
@@ -738,7 +738,7 @@ You may use the `seeLink` method to determine if a link with the given display t
738738
// ...
739739
}
740740

741-
> [!WARNING]
741+
> [!WARNING]
742742
> These methods interact with jQuery. If jQuery is not available on the page, Dusk will automatically inject it into the page so it is available for the test's duration.
743743
744744
<a name="using-the-keyboard"></a>
@@ -752,7 +752,7 @@ Another valuable use case for the `keys` method is sending a "keyboard shortcut"
752752

753753
$browser->keys('.app', ['{command}', 'j']);
754754

755-
> [!NOTE]
755+
> [!NOTE]
756756
> All modifier keys such as `{command}` are wrapped in `{}` characters, and match the constants defined in the `Facebook\WebDriver\WebDriverKeys` class, which can be [found on GitHub](https://github.com/php-webdriver/php-webdriver/blob/master/lib/WebDriverKeys.php).
757757
758758
<a name="fluent-keyboard-interactions"></a>
@@ -914,9 +914,9 @@ If you need to interact with elements within an iframe, you may use the `withinF
914914

915915
$browser->withinFrame('#credit-card-details', function ($browser) {
916916
$browser->type('input[name="cardnumber"]', '4242424242424242')
917-
->type('input[name="exp-date"]', '12/24')
918-
->type('input[name="cvc"]', '123');
919-
})->press('Pay');
917+
->type('input[name="exp-date"]', '1224')
918+
->type('input[name="cvc"]', '123')
919+
->press('Pay');
920920
});
921921

922922
<a name="scoping-selectors"></a>
@@ -2092,7 +2092,7 @@ class ExampleTest extends DuskTestCase
20922092
<a name="continuous-integration"></a>
20932093
## Continuous Integration
20942094

2095-
> [!WARNING]
2095+
> [!WARNING]
20962096
> Most Dusk continuous integration configurations expect your Laravel application to be served using the built-in PHP development server on port 8000. Therefore, before continuing, you should ensure that your continuous integration environment has an `APP_URL` environment variable value of `http://127.0.0.1:8000`.
20972097
20982098
<a name="running-tests-on-heroku-ci"></a>
@@ -2222,7 +2222,7 @@ pipeline:
22222222
cp -v .env.example .env
22232223
composer install --no-interaction --prefer-dist --optimize-autoloader
22242224
php artisan key:generate
2225-
2225+
22262226
# Create a dusk env file, ensuring APP_URL uses BUILD_HOST
22272227
cp -v .env .env.dusk.ci
22282228
sed -i "s@APP_URL=.*@APP_URL=http://$BUILD_HOST:8000@g" .env.dusk.ci

0 commit comments

Comments
 (0)