From 5ed642bff2c41cb4f13aeb49982dee6ae897edec Mon Sep 17 00:00:00 2001 From: jdettmannnava <145699825+jdettmannnava@users.noreply.github.com> Date: Wed, 24 Apr 2024 13:59:51 -0400 Subject: [PATCH] Fix duplicate (#2152) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ## đŸŽĢ Ticket No ticket ## 🛠 Changes Invitations login page less duplicates real login page ## ℹī¸ Context for reviewers (Background context, more in-depth details of the implementation, and anything else you'd like to call out or ask reviewers.) ## ✅ Acceptance Validation (How were the changes verified? Did you fully test the acceptance criteria in the ticket? Provide reproducible testing instructions and screenshots if applicable.) ## 🔒 Security Implications - [ ] This PR adds a new software dependency or dependencies. - [ ] This PR modifies or invalidates one or more of our security controls. - [ ] This PR stores or transmits data that was not stored or transmitted before. - [ ] This PR requires additional review of its security implications for other reasons. If any security implications apply, add Jason Ashbaugh (GitHub username: StewGoin) as a reviewer and do not merge this PR without his approval. --- .../invitation_login_component.html.erb | 40 +------------------ .../invitation_login_component_spec.rb | 4 -- 2 files changed, 2 insertions(+), 42 deletions(-) diff --git a/dpc-portal/app/components/page/session/invitation_login_component.html.erb b/dpc-portal/app/components/page/session/invitation_login_component.html.erb index a00b61a80e..eab3e587e7 100644 --- a/dpc-portal/app/components/page/session/invitation_login_component.html.erb +++ b/dpc-portal/app/components/page/session/invitation_login_component.html.erb @@ -1,50 +1,14 @@
-
-

- Welcome to the production portal for the Data at the Point of Care (DPC) API + Invitation Login

-

Sign in to your account

+

Sign in to Accept Invitation

You can access or create your account by signing in below.

<%= button_to login_organization_invitation_url(@invitation.provider_organization, @invitation), class: 'usa-button width-full margin-bottom-3', data: { turbo: false } do %> Sign in with <% end %>
-
-
- -
-

Use this portal to get production credentials, manage X, and do X. If you're an - Authorized Official, you'll need to take the following steps:

-
-
-
- <%= image_tag 'circle-gray-20.svg', class: ['usa-media-block__img', 'height-7', 'width-7'] %> -
-

Add an organization. Vivavmus nec velit sed leo scelerisque laoreet vestibulum.

-
-
-
- <%= image_tag 'circle-gray-20.svg', class: ['usa-media-block__img', 'height-7', 'width-7'] %> -
-

Invite a credential delegate. Vivavmus nec velit sed leo scelerisque laoreet vestibulum.

-
-
-
- <%= image_tag 'circle-gray-20.svg', class: ['usa-media-block__img', 'height-7', 'width-7'] %> -
-

Lorem ipsum. Vivavmus nec velit sed leo scelerisque laoreet

-
-
-
-
-
-
-
-
diff --git a/dpc-portal/spec/components/page/session/invitation_login_component_spec.rb b/dpc-portal/spec/components/page/session/invitation_login_component_spec.rb index a0a6c18d91..d27de54ece 100644 --- a/dpc-portal/spec/components/page/session/invitation_login_component_spec.rb +++ b/dpc-portal/spec/components/page/session/invitation_login_component_spec.rb @@ -26,9 +26,5 @@ expect(page.find('form')[:action]).to eq url expect(page.find('form')[:method]).to eq 'post' end - - it 'should have two columns' do - expect(page.find_all('.grid-col-12').size).to eq 2 - end end end