Larval framework upated to v5.6.33

Updated laravel frameowrk version to as suggested for security patch update which was released in v5.6.30
This commit is contained in:
Manish Verma
2018-08-15 18:38:24 +05:30
parent 5d3ffdf379
commit 8148bbd920
319 changed files with 647 additions and 1078 deletions

0
vendor/laravel/dusk/bin/chromedriver-linux vendored Normal file → Executable file
View File

0
vendor/laravel/dusk/bin/chromedriver-mac vendored Normal file → Executable file
View File

0
vendor/laravel/dusk/bin/chromedriver-win.exe vendored Normal file → Executable file
View File

View File

@@ -268,6 +268,23 @@ class Browser
return $this;
}
/**
* Switch to a specified frame in the browser.
*
* @param string $selector
* @return $this
*/
public function withinFrame($selector, Closure $callback)
{
$this->driver->switchTo()->frame($this->resolver->findOrFail($selector));
$callback($this);
$this->driver->switchTo()->defaultContent();
return $this;
}
/**
* Execute a Closure with a scoped browser instance.
*
@@ -306,6 +323,13 @@ class Browser
return $this;
}
/**
* Set the current component state.
*
* @param \Laravel\Dusk\Component $component
* @param \Laravel\Dusk\ElementResolver $parentResolver
* @return void
*/
public function onComponent($component, $parentResolver)
{
$this->component = $component;

View File

@@ -98,7 +98,7 @@ trait InteractsWithMouse
}
/**
* Release the currenctly clicked mouse button.
* Release the currently clicked mouse button.
*
* @return $this
*/

View File

@@ -271,13 +271,16 @@ trait MakesAssertions
/**
* Assert that the given cookie is present.
*
* @param string $name
* @param string $name
* @param bool $decrypt
* @return $this
*/
public function assertHasCookie($name)
public function assertHasCookie($name, $decrypt = true)
{
$cookie = $decrypt ? $this->cookie($name) : $this->plainCookie($name);
PHPUnit::assertTrue(
! is_null($this->cookie($name)),
! is_null($cookie),
"Did not find expected cookie [{$name}]."
);
@@ -285,21 +288,46 @@ trait MakesAssertions
}
/**
* Assert that the given cookie is not present.
* Assert that the given plain cookie is present.
*
* @param string $name
* @return $this
*/
public function assertCookieMissing($name)
public function assertHasPlainCookie($name)
{
return $this->assertHasCookie($name, false);
}
/**
* Assert that the given cookie is not present.
*
* @param string $name
* @param bool $decrypt
* @return $this
*/
public function assertCookieMissing($name, $decrypt = true)
{
$cookie = $decrypt ? $this->cookie($name) : $this->plainCookie($name);
PHPUnit::assertTrue(
is_null($this->cookie($name)),
is_null($cookie),
"Found unexpected cookie [{$name}]."
);
return $this;
}
/**
* Assert that the given plain cookie is not present.
*
* @param string $name
* @return $this
*/
public function assertPlainCookieMissing($name)
{
return $this->assertCookieMissing($name, false);
}
/**
* Assert that an encrypted cookie has a given value.
*

View File

@@ -85,6 +85,7 @@ trait ProvidesBrowser
*
* @param \Closure $callback
* @return array
* @throws \ReflectionException
*/
protected function createBrowsersFor(Closure $callback)
{
@@ -117,6 +118,7 @@ trait ProvidesBrowser
*
* @param \Closure $callback
* @return int
* @throws \ReflectionException
*/
protected function browsersNeededFor(Closure $callback)
{
@@ -182,6 +184,7 @@ trait ProvidesBrowser
* Create the remote web driver instance.
*
* @return \Facebook\WebDriver\Remote\RemoteWebDriver
* @throws \Exception
*/
protected function createWebDriver()
{

View File

@@ -19,6 +19,7 @@ trait WaitsForElements
* @param Closure $callback
* @param int $seconds
* @return $this
* @throws \Facebook\WebDriver\Exception\TimeOutException
*/
public function whenAvailable($selector, Closure $callback, $seconds = null)
{
@@ -31,6 +32,7 @@ trait WaitsForElements
* @param string $selector
* @param int $seconds
* @return $this
* @throws \Facebook\WebDriver\Exception\TimeOutException
*/
public function waitFor($selector, $seconds = null)
{
@@ -45,6 +47,7 @@ trait WaitsForElements
* @param string $selector
* @param int $seconds
* @return $this
* @throws \Facebook\WebDriver\Exception\TimeOutException
*/
public function waitUntilMissing($selector, $seconds = null)
{
@@ -65,6 +68,7 @@ trait WaitsForElements
* @param string $text
* @param int $seconds
* @return $this
* @throws \Facebook\WebDriver\Exception\TimeOutException
*/
public function waitForText($text, $seconds = null)
{
@@ -79,12 +83,13 @@ trait WaitsForElements
* @param string $link
* @param int $seconds
* @return $this
* @throws \Facebook\WebDriver\Exception\TimeOutException
*/
public function waitForLink($link, $seconds = null)
{
return $this->waitUsing($seconds, 100, function () use ($link) {
return $this->seeLink($link);
});
}, "Waited %s seconds for link [{$link}].");
}
/**
@@ -93,10 +98,11 @@ trait WaitsForElements
* @param string $path
* @param int $seconds
* @return $this
* @throws \Facebook\WebDriver\Exception\TimeOutException
*/
public function waitForLocation($path, $seconds = null)
{
return $this->waitUntil("window.location.pathname == '{$path}'", $seconds);
return $this->waitUntil("window.location.pathname == '{$path}'", $seconds, "Waited %s seconds for location [{$path}].");
}
/**
@@ -106,10 +112,11 @@ trait WaitsForElements
* @param array $parameters
* @param int $seconds
* @return $this
* @throws \Facebook\WebDriver\Exception\TimeOutException
*/
public function waitForRoute($route, $parameters = [], $seconds = null)
{
return $this->waitForLocation(route($route, $parameters), $seconds);
return $this->waitForLocation(route($route, $parameters, false), $seconds);
}
/**
@@ -117,9 +124,11 @@ trait WaitsForElements
*
* @param string $script
* @param int $seconds
* @param string $message
* @return $this
* @throws \Facebook\WebDriver\Exception\TimeOutException
*/
public function waitUntil($script, $seconds = null)
public function waitUntil($script, $seconds = null, $message = null)
{
if (! Str::startsWith($script, 'return ')) {
$script = 'return '.$script;
@@ -131,7 +140,7 @@ trait WaitsForElements
return $this->waitUsing($seconds, 100, function () use ($script) {
return $this->driver->executeScript($script);
});
}, $message);
}
/**
@@ -157,6 +166,7 @@ trait WaitsForElements
* @param Closure $callback
* @param int $seconds
* @return $this
* @throws \Facebook\WebDriver\Exception\TimeOutException
*/
public function waitForReload($callback = null, $seconds = null)
{
@@ -181,7 +191,7 @@ trait WaitsForElements
* @param Closure $callback
* @param string|null $message
* @return $this
* @throws TimeOutException
* @throws \Facebook\WebDriver\Exception\TimeOutException
*/
public function waitUsing($seconds, $interval, Closure $callback, $message = null)
{

View File

@@ -77,6 +77,7 @@ class ElementResolver
*
* @param string $field
* @return \Facebook\WebDriver\Remote\RemoteWebElement
* @throws \Exception
*/
public function resolveForTyping($field)
{
@@ -94,6 +95,7 @@ class ElementResolver
*
* @param string $field
* @return \Facebook\WebDriver\Remote\RemoteWebElement
* @throws \Exception
*/
public function resolveForSelection($field)
{
@@ -112,6 +114,7 @@ class ElementResolver
* @param string $field
* @param array $values
* @return \Facebook\WebDriver\Remote\RemoteWebElement[]
* @throws \Exception
*/
public function resolveSelectOptions($field, array $values)
{
@@ -133,6 +136,7 @@ class ElementResolver
* @param string $field
* @param string $value
* @return \Facebook\WebDriver\Remote\RemoteWebElement
* @throws \Exception
*/
public function resolveForRadioSelection($field, $value = null)
{
@@ -157,6 +161,7 @@ class ElementResolver
* @param string $field
* @param string $value
* @return \Facebook\WebDriver\Remote\RemoteWebElement
* @throws \Exception
*/
public function resolveForChecking($field, $value = null)
{
@@ -180,6 +185,7 @@ class ElementResolver
*
* @param string $field
* @return \Facebook\WebDriver\Remote\RemoteWebElement
* @throws \Exception
*/
public function resolveForAttachment($field)
{
@@ -197,6 +203,7 @@ class ElementResolver
*
* @param string $field
* @return \Facebook\WebDriver\Remote\RemoteWebElement
* @throws \Exception
*/
public function resolveForField($field)
{
@@ -320,6 +327,7 @@ class ElementResolver
*
* @param array $selectors
* @return \Facebook\WebDriver\Remote\RemoteWebElement
* @throws \Exception
*/
public function firstOrFail($selectors)
{