Skip to content

Commit c49ec16

Browse files
committed
refactor: extract variable
1 parent 975413e commit c49ec16

File tree

1 file changed

+2
-1
lines changed
  • src/test/robotframework/account/registration

1 file changed

+2
-1
lines changed

src/test/robotframework/account/registration/logic.robot

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,9 @@ After account creation an e-mail with activation link should be send
1919
${response}= Post Request mailserver /__admin/requests/find data=${searchQuery}
2020
Log ${response.json}
2121
Length Should Be ${response.json['requests']} 1
22+
${body}= Set Variable ${response.json['requests'][0]['body']}
2223
${linkRegexp}= Set Variable ${SITE_URL}/account/activate\\?key=[0-9a-z]{10}
23-
${links}= Get Regexp Matches ${response.json['requests'][0]['body']} ${linkRegexp}
24+
${links}= Get Regexp Matches ${body} ${linkRegexp}
2425
Length Should Be ${links} 1
2526

2627
*** Keywords ***

0 commit comments

Comments
 (0)