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:
parent
6b4b7f207f
commit
b64ce8fcb6
1 changed files with 0 additions and 12 deletions
|
@ -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});
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue