Skip to content

Rm duplicate test setup#10380

Merged
night-jellyfish merged 2 commits intomainfrom
brittany/prep-lg-12994-refactor-test-setup
Apr 9, 2024
Merged

Rm duplicate test setup#10380
night-jellyfish merged 2 commits intomainfrom
brittany/prep-lg-12994-refactor-test-setup

Conversation

@night-jellyfish
Copy link
Contributor

@night-jellyfish night-jellyfish commented Apr 8, 2024

🎫 Ticket

Prep for LG-12994

🛠 Summary of changes

I will be adding new tests here as a part of this ticket, and found that we had the following selfie test setup twice:

context 'when a selfie is required by SP', allow_browser_log: true do
          before do
            allow_any_instance_of(FederatedProtocols::Oidc).
              to receive(:biometric_comparison_required?).
              and_return(true)

This change removes one of them.

I also:

  • added an explicit "selfie passing" context around the relevant test
  • had to move allow_browser_log: true up the chain for tests to continue to pass.

In github this ends up looking like a big change since I have to change indentation, so I wanted to do it as a separate PR. That way when adding tests what is being changed will be more clear.

📜 Testing Plan

All automated tests should continue to pass.

[skip changelog]

@night-jellyfish night-jellyfish requested review from a team, amirbey, charleyf and dawei-nava and removed request for a team and charleyf April 8, 2024 18:23
Copy link
Contributor

@eileen-nava eileen-nava left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for cleaning this up. 🙏🏻

@night-jellyfish night-jellyfish force-pushed the brittany/prep-lg-12994-refactor-test-setup branch from 3eed55f to 0313cb5 Compare April 9, 2024 15:32
Brittany Greaner added 2 commits April 9, 2024 10:43
I will be adding new tests here and found that we had the selfie test
setup twice.

In github this ends up looking like a big change since I have to change
indentation, so I wanted to do it as a separate PR.

[skip changelog]
@night-jellyfish night-jellyfish force-pushed the brittany/prep-lg-12994-refactor-test-setup branch from 0313cb5 to 79afd87 Compare April 9, 2024 17:44
@night-jellyfish night-jellyfish merged commit e578719 into main Apr 9, 2024
@night-jellyfish night-jellyfish deleted the brittany/prep-lg-12994-refactor-test-setup branch April 9, 2024 19:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants