Skip to content

Commit 2ecc6df

Browse files
committedFeb 27, 2025·
変換できないため、英文のmarkdown乱れを修正。
1 parent 65e7e17 commit 2ecc6df

File tree

2 files changed

+13
-17
lines changed

2 files changed

+13
-17
lines changed
 

‎original-en/dusk.md

+12-14
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>
@@ -185,7 +185,7 @@ class ExampleTest extends DuskTestCase
185185
}
186186
```
187187

188-
> [!WARNING]
188+
> [!WARNING]
189189
> 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.
190190
191191
<a name="reset-truncation"></a>
@@ -224,7 +224,7 @@ class ExampleTest extends DuskTestCase
224224

225225
By default, this trait will truncate all tables except the `migrations` table. If you would like to customize the tables that should be truncated, you may define a `$tablesToTruncate` property on your test class:
226226

227-
> [!NOTE]
227+
> [!NOTE]
228228
> If you are using Pest, you should define properties or methods on the base `DuskTestCase` class or on any class your test file extends.
229229
230230
```php
@@ -299,7 +299,7 @@ The `dusk` command accepts any argument that is normally accepted by the Pest /
299299
php artisan dusk --group=foo
300300
```
301301

302-
> [!NOTE]
302+
> [!NOTE]
303303
> 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).
304304
305305
<a name="manually-starting-chromedriver"></a>
@@ -548,7 +548,7 @@ $this->browse(function (Browser $browser) {
548548
});
549549
```
550550

551-
> [!WARNING]
551+
> [!WARNING]
552552
> After using the `loginAs` method, the user session will be maintained for all tests within the file.
553553
554554
<a name="cookies"></a>
@@ -770,9 +770,7 @@ You may select a random option by omitting the second argument:
770770
$browser->select('size');
771771
```
772772

773-
By providing an array as the second```php
774-
775-
``` argument to the `select` method, you can instruct the method to select multiple options:
773+
By providing an array as the second argument to the `select` method, you can instruct the method to select multiple options:
776774

777775
```php
778776
$browser->select('categories', ['Art', 'Music']);
@@ -811,7 +809,7 @@ The `attach` method may be used to attach a file to a `file` input element. Like
811809
$browser->attach('photo', __DIR__.'/photos/mountains.png');
812810
```
813811

814-
> [!WARNING]
812+
> [!WARNING]
815813
> The attach function requires the `Zip` PHP extension to be installed and enabled on your server.
816814
817815
<a name="pressing-buttons"></a>
@@ -850,7 +848,7 @@ if ($browser->seeLink($linkText)) {
850848
}
851849
```
852850

853-
> [!WARNING]
851+
> [!WARNING]
854852
> 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.
855853
856854
<a name="using-the-keyboard"></a>
@@ -868,7 +866,7 @@ Another valuable use case for the `keys` method is sending a "keyboard shortcut"
868866
$browser->keys('.app', ['{command}', 'j']);
869867
```
870868

871-
> [!NOTE]
869+
> [!NOTE]
872870
> 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).
873871
874872
<a name="fluent-keyboard-interactions"></a>
@@ -2510,7 +2508,7 @@ class ExampleTest extends DuskTestCase
25102508
<a name="continuous-integration"></a>
25112509
## Continuous Integration
25122510

2513-
> [!WARNING]
2511+
> [!WARNING]
25142512
> 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`.
25152513
25162514
<a name="running-tests-on-heroku-ci"></a>

‎translation-ja/dusk.md

+1-3
Original file line numberDiff line numberDiff line change
@@ -770,9 +770,7 @@ $browser->select('size', 'Large');
770770
$browser->select('size');
771771
```
772772

773-
2番目の配列として```php
774-
775-
``` メソッドに引数を渡すと、複数のオプションを選択するように指示できる。(原文フォーマット乱れのまま)
773+
2番目の配列として メソッドに引数を渡すと、複数のオプションを選択するように指示できる。(原文フォーマット乱れのまま)
776774

777775
```php
778776
$browser->select('categories', ['Art', 'Music']);

0 commit comments

Comments
 (0)
Please sign in to comment.