Skip to content

Commit aa3b102

Browse files
authored
Merge branch 'main' into task/WP-728--useCopy-mutation-hook
2 parents 945d0ff + f44a829 commit aa3b102

File tree

2 files changed

+27
-8
lines changed

2 files changed

+27
-8
lines changed

client/src/components/ManageAccount/tests/ManageAccountTables.test.jsx

+27
Original file line numberDiff line numberDiff line change
@@ -156,6 +156,33 @@ describe('Third Party Apps', () => {
156156
expect(getByText('Google Drive')).toBeDefined();
157157
expect(getByText('Disconnect')).toBeDefined();
158158
});
159+
it('Shows potential 3rd party connections other than Google Drive', () => {
160+
const testStore = mockStore({
161+
profile: {
162+
...dummyState,
163+
data: {
164+
...dummyState.data,
165+
integrations: [
166+
{
167+
label: '3rd Party Service',
168+
description: '3rd Party Service description',
169+
activated: true,
170+
},
171+
],
172+
},
173+
},
174+
});
175+
const { getByText, queryByText } = render(
176+
<Provider store={testStore}>
177+
<Integrations />
178+
</Provider>
179+
);
180+
expect(getByText(/3rd Party Apps/)).toBeInTheDocument();
181+
// Check that Google Drive is not rendered
182+
expect(queryByText('Google Drive')).toBeNull();
183+
// Check that other integrations are rendered
184+
expect(getByText('3rd Party Service')).toBeInTheDocument();
185+
});
159186
});
160187

161188
describe('License Cell', () => {

server/portal/settings/settings_default.py

-8
Original file line numberDiff line numberDiff line change
@@ -110,14 +110,6 @@
110110
'readOnly': False,
111111
'hideSearchBar': False
112112
},
113-
{
114-
'name': 'Google Drive',
115-
'system': 'googledrive',
116-
'scheme': 'private',
117-
'api': 'googledrive',
118-
'icon': None,
119-
'integration': 'portal.apps.googledrive_integration'
120-
}
121113
]
122114

123115
########################

0 commit comments

Comments
 (0)