Skip to content

Commit 0cebd56

Browse files
authored
Merge pull request #138 from docusign/feature/fixes-for-selenium-tests
Fixes for Selenium tests
2 parents 40793a4 + d37e243 commit 0cebd56

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

app/click/views/eg004_list_clickwraps.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ def clickwrap_list():
4343
"example_done.html",
4444
title=example["ExampleName"],
4545
message="Results from the ClickWraps::getClickwraps method:",
46-
json=json.dumps(json.dumps(results, default=str))
46+
json=json.dumps(json.dumps(results, default=str).replace('\\"', '').replace("'", ""), default=str)
4747
)
4848

4949

app/static/assets/eg_03.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,8 @@ let DS_EG = (function(){
3737
return JSON.stringify(obj, null, 3)
3838
.replace(/&/g, '&').replace(/\\"/g, '"')
3939
.replace(/</g, '&lt;').replace(/>/g, '&gt;')
40-
.replace(jsonLine, library.json.replacer);
40+
.replace(jsonLine, library.json.replacer)
41+
.replace(/"/g, '').replace(/\\n/g, '&#xA;');
4142
},
4243
prettyPrint2: function(obj) {
4344
var jsonLine = /^( *)("[\w]+": )?("[^"]*"|[\w.+-]*)?([,[{])?$/mg

0 commit comments

Comments
 (0)