Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ storage/*.key
.env
Homestead.yaml
Homestead.json
*.lock

# Rocketeer PHP task runner and deployment package. https://github.com/rocketeers/rocketeer
.rocketeer/
12 changes: 12 additions & 0 deletions .gitpod.Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
FROM gitpod/workspace-full

USER gitpod

# Install custom tools, runtime, etc. using apt-get
# For example, the command below would install "bastet" - a command line tetris clone:
#
# RUN sudo apt-get -q update && \
# sudo apt-get install -yq bastet && \
# sudo rm -rf /var/lib/apt/lists/*
#
# More information: https://www.gitpod.io/docs/config-docker/
12 changes: 12 additions & 0 deletions .gitpod.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
image:
file: .gitpod.Dockerfile

# List the ports you want to expose and what to do when they are served. See https://www.gitpod.io/docs/config-ports/
ports:
- port: 3000
onOpen: open-preview

# List the start up tasks. You can start them in parallel in multiple terminals. See https://www.gitpod.io/docs/config-start-tasks/
tasks:
- init: composer install
command: composer dump-autoload && cp .env.example .env && php artisan dusk
25 changes: 10 additions & 15 deletions tests/DuskTestCase.php
Original file line number Diff line number Diff line change
Expand Up @@ -33,20 +33,15 @@ protected function driver()
$access_key = env('LT_ACCESS_KEY');
$url = "https://".$username.":".$access_key."@hub.lambdatest.com/wd/hub";

return RemoteWebDriver::create($url,
DesiredCapabilities::chrome()
->setCapability("platform", "win10")
->setCapability("browserName", "chrome")
->setCapability("version", "71.0")
->setCapability("resolution", "1024x768")
->setCapability("build", "LaravelDusk Build")
->setCapability("name", "LaravelDusk Test")
->setCapability("network", true)
->setCapability("video", true)
->setCapability("visual", true)
->setCapability("console", true)
->setCapability("tunnel", false)
);
$capabilities = array(
"build" => "LaravelDusk Build",
"name" => "LaravelDusk Build",
"platform" => "Windows 10",
"browserName" => "Chrome",
"version" => "latest"
);

return RemoteWebDriver::create($url,$capabilities);
}

}