Skip to content

Commit e85e06d

Browse files
committed
Fix issue with behave-bdd scripts generated by the Recorder
1 parent 341e4fd commit e85e06d

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

seleniumbase/behave/behave_helper.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -289,6 +289,7 @@ def generate_gherkin(srt_actions):
289289
import unicodedata
290290

291291
action[1][0] = unicodedata.normalize("NFKC", action[1][0])
292+
action[1][0] = action[1][0].replace("\n", "\\n")
292293
method = "Assert text"
293294
if action[0] == "as_et":
294295
method = "Assert exact text"

0 commit comments

Comments
 (0)