fix: DockerSecretsResolver - don't normalize absolute paths like /var/www/html/...
Some checks failed
Deploy Application / deploy (push) Has been cancelled
Some checks failed
Deploy Application / deploy (push) Has been cancelled
This commit is contained in:
@@ -48,6 +48,22 @@ expect()->extend('toContainHtml', function (string $needle) {
|
||||
$haystack = is_string($this->value) ? $this->value : (string) $this->value;
|
||||
|
||||
expect($haystack)->toContain($needle);
|
||||
});
|
||||
|
||||
/**
|
||||
* Assert HTML matches snapshot
|
||||
* Usage: expect($html)->toMatchSnapshot('counter-initial-state')
|
||||
*/
|
||||
expect()->extend('toMatchSnapshot', function (string $snapshotName, bool $updateSnapshot = false) {
|
||||
$html = is_string($this->value) ? $this->value : (string) $this->value;
|
||||
|
||||
\Tests\Feature\Framework\LiveComponents\TestHarness\ComponentSnapshotTest::assertMatchesSnapshot(
|
||||
$html,
|
||||
$snapshotName,
|
||||
$updateSnapshot
|
||||
);
|
||||
|
||||
return $this;
|
||||
|
||||
return $this;
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user