From 847f0261b9a3a19d7dd9094d9d3f1f8e38a8d082 Mon Sep 17 00:00:00 2001 From: mikefinneran <110622959+mikefinneran@users.noreply.github.com> Date: Wed, 11 Sep 2024 16:38:46 -0400 Subject: [PATCH] hotfix/APPEALS-57834 (#22799) Co-authored-by: davywentwortht2it --- client/app/components/Accordion.jsx | 2 +- spec/feature/reader/reader_spec.rb | 9 +-------- 2 files changed, 2 insertions(+), 9 deletions(-) diff --git a/client/app/components/Accordion.jsx b/client/app/components/Accordion.jsx index 704b9cf5c57..3d473b37fe0 100644 --- a/client/app/components/Accordion.jsx +++ b/client/app/components/Accordion.jsx @@ -43,7 +43,7 @@ export const Accordion = ( headerClass={ classnames(headerClass, { disabled: sectionIsDisabled }) } - key={`${sectionId}-${sectionTitle}`} + key={sectionTitle} header={headerElement} >
diff --git a/spec/feature/reader/reader_spec.rb b/spec/feature/reader/reader_spec.rb index cb1cda29153..b00bcb02f86 100644 --- a/spec/feature/reader/reader_spec.rb +++ b/spec/feature/reader/reader_spec.rb @@ -519,7 +519,6 @@ def clear_filters find("#addComment").send_keys(:arrow_right) expect(page).to have_content "Form 9" - find("h3", text: "Issue tags").click fill_in "tags", with: "tag content" find("#tags").send_keys(:arrow_left) expect(page).to have_content "Form 9" @@ -752,8 +751,6 @@ def element_position(selector) click_on documents[0].type page.driver.browser.manage.window.resize_to(1024, 1024) - find("h3", text: "Comments").click - element_id = "cf-sidebar-accordion" scroll_to(id: element_id, value: 0) @@ -780,7 +777,6 @@ def element_position(selector) visit "/reader/appeal/#{appeal.vacols_id}/documents" click_on(documents[0].type, wait: 10) - find("h3", text: "Comments", wait: 5).click expect(page).to have_content(annotations[0].comment) # Wait for PDFJS to render the pages @@ -1039,7 +1035,6 @@ def cats_in_header find(".cf-pdf-header .cf-pdf-doc-type-button-container", text: "BVA Decision") expect(cats_in_header).to match_array [cats[:procedural], cats[:case_summary]] - find("h3", text: "Categories").click find(".checkbox-wrapper-procedural", wait: 12).click find(".checkbox-wrapper-medical").click @@ -1112,7 +1107,7 @@ def cats_in_header context "Tags" do let(:new_tag_text) { "Foo" } - xscenario "adding and deleting tags" do + scenario "adding and deleting tags" do TAG1 = "Medical" TAG2 = "Law document" @@ -1122,7 +1117,6 @@ def cats_in_header visit "/reader/appeal/#{appeal.vacols_id}/documents" click_on(documents[0].type, wait: 10) - find("h3", text: "Issue tags", wait: 5).click fill_in "tags", with: TAG1 @@ -1142,7 +1136,6 @@ def cats_in_header visit "/reader/appeal/#{appeal.vacols_id}/documents" click_on documents[1].type - find("h3", text: "Issue tags", wait: 10).click # tags for first document are shared in tag auto suggestions for second document page.find("#tags", wait: 10).click tag_options = find_all(".cf-select__option", wait: 10)