We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent be9189e commit b20b8dbCopy full SHA for b20b8db
1 file changed
src/studio-home/StudioHome.test.tsx
@@ -112,6 +112,18 @@ describe('<StudioHome />', () => {
112
expect(spinner.textContent).toEqual('Loading...');
113
});
114
115
+ it('should render "email staff" header button if enabled', async () => {
116
+ mockUseSelector.mockReturnValue({
117
+ ...studioHomeMock,
118
+ isShowEmailStaff: true,
119
+ });
120
+
121
+ render(<StudioHome />, { path: '/home' });
122
+ const header = getHeaderElement();
123
+ const link = within(header).getByRole('link', { name: 'Email staff to create course' });
124
+ expect(link).toHaveAttribute('href', `mailto:${studioRequestEmail}`);
125
126
127
describe('render new library button', () => {
128
it('should navigate to legacy library creation when libraries-v2 disabled', async () => {
129
mockUseSelector.mockReturnValue({
0 commit comments