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

Reset Account Management #7914

Merged
merged 22 commits into from
Dec 21, 2023
Merged
Changes from 1 commit
Commits
Show all changes
22 commits
Select commit Hold shift + click to select a range
2591624
WIP: Temporary commit.
dmallory42 Dec 13, 2023
d117524
Initial commit, sets up logic to show account tools and working on mo…
dmallory42 Dec 14, 2023
ed94754
WIP: Updating the form logic.
dmallory42 Dec 14, 2023
e562aa2
Merge remote-tracking branch 'origin/develop' into dev/3468-allow-res…
dmallory42 Dec 14, 2023
c8b4c4b
Merge remote-tracking branch 'origin/develop' into dev/3468-allow-res…
dmallory42 Dec 14, 2023
eaa3c12
Update changelog.
dmallory42 Dec 14, 2023
41f7778
Update changelog.
dmallory42 Dec 14, 2023
29062ac
Merge branch 'develop' into dev/3468-allow-reset-account-management
dmallory42 Dec 19, 2023
c8e0d67
Fix for test flag being passed improperly.
dmallory42 Dec 19, 2023
6fb574c
Update copy to match Figma design.
dmallory42 Dec 19, 2023
1915e70
Update tests and snapshots.
dmallory42 Dec 19, 2023
686d944
Update to not show if in dev mode (as we have an alternative workflow…
dmallory42 Dec 19, 2023
5fde7c5
Merge branch 'develop' into dev/3468-allow-reset-account-management
dmallory42 Dec 19, 2023
978aabf
Update the dev mode check, update snapshots.
dmallory42 Dec 19, 2023
13871c3
Merge branch 'dev/3468-allow-reset-account-management' of github.com:…
dmallory42 Dec 19, 2023
681adad
Using instead of px value.
dmallory42 Dec 20, 2023
190a7e1
Update snapshots.
dmallory42 Dec 20, 2023
3d4d66f
Fix dependencies to make internal and external dependencies separate.
dmallory42 Dec 20, 2023
4f85953
Merge branch 'develop' into dev/3468-allow-reset-account-management
dmallory42 Dec 20, 2023
2f3011e
Merge branch 'develop' into dev/3468-allow-reset-account-management
oaratovskyi Dec 21, 2023
be1ef8f
Update styling of a button.
dmallory42 Dec 21, 2023
503f7da
Merge branch 'dev/3468-allow-reset-account-management' of github.com:…
dmallory42 Dec 21, 2023
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Update the dev mode check, update snapshots.
  • Loading branch information
dmallory42 committed Dec 19, 2023
commit 978aabfb89db57a7a698d9f230a3bcadb43c1fc5
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP

exports[`AccountTools should render 1`] = `
exports[`AccountTools should render in live mode 1`] = `
<div>
<div
class="account-tools"
49 changes: 49 additions & 0 deletions client/components/account-status/account-tools/test/index.test.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
/** @format */
/**
* External dependencies
*/
import React from 'react';
import { render, screen } from '@testing-library/react';

/**
* Internal dependencies
*/
import { AccountTools } from '..';

const accountLink = '/onboarding';
const openModal = jest.fn();

declare const global: {
wcpaySettings: {
devMode: boolean;
};
};

describe( 'AccountTools', () => {
it( 'should render in live mode', () => {
global.wcpaySettings = {
devMode: false,
};

const { container } = render(
<AccountTools accountLink={ accountLink } openModal={ openModal } />
);
expect( container ).toMatchSnapshot();
} );

it( 'should not render in dev mode', () => {
global.wcpaySettings = {
devMode: true,
};

render(
<AccountTools accountLink={ accountLink } openModal={ openModal } />
);

expect(
screen.queryByText(
'If you are experiencing problems completing account setup, or need to change the email/country associated with your account, you can reset your account and start from the beginning.'
)
).not.toBeInTheDocument();
} );
} );
23 changes: 0 additions & 23 deletions client/components/account-status/account-tools/test/index.tsx

This file was deleted.