From 2cbfaf1b6fba0c835c51bddf458dd55a15d1f183 Mon Sep 17 00:00:00 2001 From: Katie Smith Date: Thu, 6 Feb 2020 10:50:57 +0000 Subject: [PATCH] Update the buttons on template folder form --- app/assets/javascripts/templateFolderForm.js | 10 +++++----- tests/javascripts/templateFolderForm.test.js | 18 +++++++++--------- 2 files changed, 14 insertions(+), 14 deletions(-) diff --git a/app/assets/javascripts/templateFolderForm.js b/app/assets/javascripts/templateFolderForm.js index c643b12fb..f81a9eabe 100644 --- a/app/assets/javascripts/templateFolderForm.js +++ b/app/assets/javascripts/templateFolderForm.js @@ -41,7 +41,7 @@ this.render(); } - this.$form.on('click', 'button.button-secondary', (event) => this.actionButtonClicked(event)); + this.$form.on('click', 'button.govuk-button--secondary', (event) => this.actionButtonClicked(event)); this.$form.on('change', 'input[type=checkbox]', () => this.templateFolderCheckboxChanged()); }; @@ -225,8 +225,8 @@ this.nothingSelectedButtons = $(`
- - + +
@@ -74,7 +74,7 @@ function setFixtures (hierarchy) {
@@ -114,7 +114,7 @@ function setFixtures (hierarchy) {
@@ -228,7 +228,7 @@ describe('TemplateFolderForm', () => { }; describe("Before the page loads", () => { - + // We need parts of the module to be made sticky, but by the module code, // not the sticky JS code that operates on the HTML at page load. // Because of this, they will need to be marked with classes @@ -240,7 +240,7 @@ describe('TemplateFolderForm', () => { expect(templateFolderForm.querySelectorAll('#add_new_template_form > .js-will-stick-at-bottom-when-scrolling').length).toEqual(2); }); - + }); describe("When the page loads", () => { @@ -578,11 +578,11 @@ describe('TemplateFolderForm', () => { }); test("the content of the counter should reflect the selection", () => { - + expect(visibleCounterText).toEqual('2 selected'); - + }); - + }); describe("Clicking the 'Move' button", () => {