0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-04-01 02:41:39 -05:00

Fix account home test

This commit is contained in:
Peter Zimon 2020-07-23 11:39:48 +02:00
parent 4dcdfb7cad
commit ce47f3ba48

View file

@ -8,11 +8,9 @@ const setup = (overrides) => {
);
const logoutBtn = utils.queryByRole('button', {name: 'Logout'});
const settingsBtn = utils.queryByRole('button', {name: 'Settings'});
const supportBtn = utils.queryByRole('button', {name: 'Contact support'});
return {
logoutBtn,
settingsBtn,
supportBtn,
mockOnActionFn,
...utils
};
@ -20,11 +18,10 @@ const setup = (overrides) => {
describe('Account Home Page', () => {
test('renders', () => {
const {settingsBtn, supportBtn, logoutBtn} = setup();
const {settingsBtn, logoutBtn} = setup();
expect(settingsBtn).toBeInTheDocument();
expect(logoutBtn).toBeInTheDocument();
expect(supportBtn).toBeInTheDocument();
});
test('can call signout', () => {