Skip to content

Commit a1cbec1

Browse files
test: add sign request UUID alias in behat context
Signed-off-by: Vitor Mattos <1079143+vitormattos@users.noreply.github.com>
1 parent 560ca14 commit a1cbec1

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

tests/integration/features/bootstrap/FeatureContext.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,7 @@ public function iFetchTheLinkOnOpenedEmail(): void {
6969
$openedEmail = $this->openedEmailStorage->getOpenedEmail();
7070
preg_match('/p\/sign\/(?<uuid>[\w-]+)"/', $openedEmail->body, $matches);
7171
Assert::assertArrayHasKey('uuid', $matches, 'UUID not found on email');
72+
$this->fields['SIGN_REQUEST_UUID'] = $matches['uuid'];
7273
$this->fields['SIGN_UUID'] = $matches['uuid'];
7374
}
7475

@@ -159,6 +160,7 @@ function ($notification):bool {
159160

160161
preg_match('/f\/sign\/(?<uuid>[\w-]+)\/pdf$/', $found['link'], $matches);
161162
Assert::assertArrayHasKey('uuid', $matches, 'UUID not found on email');
163+
$this->fields['SIGN_REQUEST_UUID'] = $matches['uuid'];
162164
$this->fields['SIGN_UUID'] = $matches['uuid'];
163165
}
164166

0 commit comments

Comments
 (0)