From bcdb331c79f6b1c557575e6751ed1fc78779bbff Mon Sep 17 00:00:00 2001 From: John McLear Date: Wed, 27 May 2020 16:54:20 +0100 Subject: [PATCH] tests: Embed test fix (#4020) * quick fix for iframe code wihch someone broke * Also fix cookie test --- src/static/js/pad_userlist.js | 2 +- tests/frontend/specs/embed_value.js | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/static/js/pad_userlist.js b/src/static/js/pad_userlist.js index 02e6add58..866fc705a 100644 --- a/src/static/js/pad_userlist.js +++ b/src/static/js/pad_userlist.js @@ -732,7 +732,7 @@ var paduserlist = (function() } else { - $("#myusernameedit").addClass("editempty").val(_("pad.userlist.entername")); + $("#myusernameedit").attr("placeholder", html10n.get("pad.userlist.entername")); } if (colorPickerOpen) { diff --git a/tests/frontend/specs/embed_value.js b/tests/frontend/specs/embed_value.js index aa031e236..e4cbcaaeb 100644 --- a/tests/frontend/specs/embed_value.js +++ b/tests/frontend/specs/embed_value.js @@ -19,8 +19,8 @@ describe("embed links", function(){ var width = $embediFrame.attr("width"); var height = $embediFrame.attr("height"); var name = $embediFrame.attr("name"); - expect(width).to.be('600'); - expect(height).to.be('400'); + expect(width).to.be('100%'); + expect(height).to.be('600'); expect(name).to.be(readonly ? "embed_readonly" : "embed_readwrite"); //parse the url