From 02af7d0c2d3a7e9674d41be03f4706160035bceb Mon Sep 17 00:00:00 2001 From: John McLear Date: Wed, 3 Jun 2020 10:34:13 +0000 Subject: [PATCH] tests: fix font select test --- tests/frontend/specs/font_type.js | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/tests/frontend/specs/font_type.js b/tests/frontend/specs/font_type.js index dac5af258..ad220d882 100644 --- a/tests/frontend/specs/font_type.js +++ b/tests/frontend/specs/font_type.js @@ -5,7 +5,7 @@ describe("font select", function(){ this.timeout(60000); }); - it("makes text monospace", function(done) { + it("makes text RobotoMono", function(done) { var inner$ = helper.padInner$; var chrome$ = helper.padChrome$; @@ -13,19 +13,19 @@ describe("font select", function(){ var $settingsButton = chrome$(".buttonicon-settings"); $settingsButton.click(); - //get the font menu and monospace option + //get the font menu and RobotoMono option var $viewfontmenu = chrome$("#viewfontmenu"); - var $monospaceoption = $viewfontmenu.find("[value=monospace]"); + var $RobotoMonooption = $viewfontmenu.find("[value=RobotoMono]"); - //select monospace and fire change event -// $monospaceoption.attr('selected','selected'); -// commenting out above will break safari test - $viewfontmenu.val("monospace"); + //select RobotoMono and fire change event + // $RobotoMonooption.attr('selected','selected'); + // commenting out above will break safari test + $viewfontmenu.val("RobotoMono"); $viewfontmenu.change(); - //check if font changed to monospace + //check if font changed to RobotoMono var fontFamily = inner$("body").css("font-family").toLowerCase(); - var containsStr = fontFamily.indexOf("monospace"); + var containsStr = fontFamily.indexOf("robotomono"); expect(containsStr).to.not.be(-1); done();