Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(content-sidebar): remove dependency on isSignRemoveInterstitialEnabled #3734

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

diogostavares
Copy link
Contributor

@diogostavares diogostavares commented Nov 4, 2024

The isSignRemoveInterstitialEnabled feature flag was recently cleaned up on the application side, causing a production defect due to a dependency in this components. This commit removes the dependency in BUIE components to align with the application.

@diogostavares diogostavares requested a review from a team as a code owner November 4, 2024 15:18
@greg-in-a-box greg-in-a-box changed the title fix(preview): remove dependency on isSignRemoveInterstitialEnabled fix(content-sidbar): remove dependency on isSignRemoveInterstitialEnabled Nov 4, 2024
@greg-in-a-box greg-in-a-box changed the title fix(content-sidbar): remove dependency on isSignRemoveInterstitialEnabled fix(content-sidebar): remove dependency on isSignRemoveInterstitialEnabled Nov 4, 2024
JChan106
JChan106 previously approved these changes Nov 4, 2024
const { getByTestId } = renderComponent({}, features);
fireEvent.click(getByTestId('sign-button'));
fireEvent.click(getByTestId('sign-request-signature-button'));
const wrapper = renderComponent({}, features);
Copy link

Choose a reason for hiding this comment

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

nit: is it possible to use screen instead of calling methods on the return value of the render function?

https://kentcdodds.com/blog/common-mistakes-with-react-testing-library#not-using-screen

Copy link
Contributor Author

Choose a reason for hiding this comment

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

agree, let's update it 👍

GonchuB
GonchuB previously approved these changes Nov 5, 2024
Copy link

@GonchuB GonchuB left a comment

Choose a reason for hiding this comment

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

One question and one small followup, if possible (can be another PR)

JChan106
JChan106 previously approved these changes Nov 5, 2024
@diogostavares diogostavares force-pushed the remove-removeInterstitial-ff-dependency branch from 1020007 to bdba5eb Compare November 6, 2024 11:51
@diogostavares diogostavares force-pushed the remove-removeInterstitial-ff-dependency branch from bdba5eb to 3b5d387 Compare November 6, 2024 12:08
@diogostavares diogostavares force-pushed the remove-removeInterstitial-ff-dependency branch from 3b5d387 to a982541 Compare November 6, 2024 16:47
@diogostavares diogostavares force-pushed the remove-removeInterstitial-ff-dependency branch from a982541 to f4855fe Compare November 6, 2024 17:19
@diogostavares diogostavares force-pushed the remove-removeInterstitial-ff-dependency branch from f4855fe to 8fd8f2e Compare November 6, 2024 17:22
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.

4 participants