Skip to content

Commit 1376ee3

Browse files
committed
Wrap import review feature with feature flag
This ensures that the first part of the UI doesn't appear until we've fully fleshed out this feature.
1 parent 3d03dbd commit 1376ee3

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

app/views/immunisation_imports/edit.html.erb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@
4141
@immunisation_import
4242
), method: :put %>
4343

44-
<% if @patients.present? %>
44+
<% if @patients.present? && Flipper.enabled?(:import_review) %>
4545
<div class="nhsuk-table__panel-with-heading-tab">
4646
<h3 class="nhsuk-table__heading-tab">
4747
<%= pluralize(@patients.count, "duplicate record") %>

spec/features/immunisation_imports_upload_duplicates_spec.rb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
# frozen_string_literal: true
22

33
describe "Immunisation imports duplicates" do
4+
before { Flipper.enable(:import_review) }
5+
46
scenario "User reviews and selects between duplicate records" do
57
given_i_am_signed_in
68
and_an_hpv_campaign_is_underway

0 commit comments

Comments
 (0)