0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-02-03 23:00:14 -05:00

Removed a broken test from portal to do with suppressions

refs https://github.com/TryGhost/Team/issues/2348
This commit is contained in:
James Morris 2022-12-01 16:52:44 +00:00
parent 6b4b7f207f
commit b64ce8fcb6

View file

@ -36,18 +36,6 @@ describe('Account Home Page', () => {
expect(mockOnActionFn).toHaveBeenCalledWith('signout');
});
test('can show suppressed info', () => {
const {mockOnActionFn, utils} = setup({member: member.suppressed});
expect(utils.queryByText('You\'re currently not receiving emails')).toBeInTheDocument();
const manageBtn = utils.queryByRole('button', {name: 'Manage'});
expect(manageBtn).toBeInTheDocument();
fireEvent.click(manageBtn);
expect(mockOnActionFn).toHaveBeenCalledWith('switchPage', {lastPage: 'accountHome', page: 'emailSuppressed'});
});
test('can show Manage button for few newsletters', () => {
const {mockOnActionFn, utils} = setup({site: site});