test: updated UI test according to new api response
This commit is contained in:
@@ -9,7 +9,7 @@ import messages from './messages';
|
||||
|
||||
describe('FeaturesList', () => {
|
||||
const app = {
|
||||
documentationUrl: 'http://example.com',
|
||||
documentationUrls: {},
|
||||
featureIds: ['discussion-page', 'embedded-course-sections', 'wcag-2.1'],
|
||||
hasFullSupport: false,
|
||||
id: 'legacy',
|
||||
|
||||
@@ -12,13 +12,13 @@ describe('FeaturesTable', () => {
|
||||
beforeEach(() => {
|
||||
apps = [
|
||||
{
|
||||
documentationUrl: 'http://example.com',
|
||||
documentationUrls: {},
|
||||
featureIds: ['discussion-page', 'embedded-course-sections', 'wcag-2.1'],
|
||||
hasFullSupport: false,
|
||||
id: 'legacy',
|
||||
},
|
||||
{
|
||||
documentationUrl: 'http://example.com',
|
||||
documentationUrls: {},
|
||||
featureIds: ['discussion-page', 'lti'],
|
||||
hasFullSupport: false,
|
||||
id: 'piazza',
|
||||
|
||||
@@ -43,7 +43,13 @@ const legacyApp = {
|
||||
'embedded-course-sections',
|
||||
'wcag-2.1',
|
||||
],
|
||||
documentationUrl: 'http://example.com',
|
||||
documentationUrls: {
|
||||
learn_more: '',
|
||||
configuration_documentation: '',
|
||||
documentation: '',
|
||||
accessibility_documentation: '',
|
||||
email_id: '',
|
||||
},
|
||||
hasFullSupport: false,
|
||||
};
|
||||
|
||||
@@ -55,7 +61,13 @@ const piazzaApp = {
|
||||
'wcag-2.1',
|
||||
'lti',
|
||||
],
|
||||
documentationUrl: 'http://example.com',
|
||||
documentationUrls: {
|
||||
learn_more: '',
|
||||
configuration_documentation: '',
|
||||
documentation: '',
|
||||
accessibility_documentation: '',
|
||||
email_id: '',
|
||||
},
|
||||
hasFullSupport: true,
|
||||
};
|
||||
|
||||
|
||||
@@ -24,6 +24,13 @@ export const piazzaApiResponse = {
|
||||
'embedded-course-sections',
|
||||
'wcag-2.1',
|
||||
],
|
||||
documentation_urls: {
|
||||
learn_more: '',
|
||||
configuration_documentation: '',
|
||||
documentation: '',
|
||||
accessibility_documentation: '',
|
||||
email_id: '',
|
||||
},
|
||||
},
|
||||
piazza: {
|
||||
features: [
|
||||
@@ -33,6 +40,13 @@ export const piazzaApiResponse = {
|
||||
'wcag-2.1',
|
||||
'lti',
|
||||
],
|
||||
documentation_urls: {
|
||||
learn_more: '',
|
||||
configuration_documentation: '',
|
||||
documentation: '',
|
||||
accessibility_documentation: '',
|
||||
email_id: '',
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
@@ -77,6 +91,13 @@ export const legacyApiResponse = {
|
||||
'embedded-course-sections',
|
||||
'wcag-2.1',
|
||||
],
|
||||
documentation_urls: {
|
||||
learn_more: '',
|
||||
configuration_documentation: '',
|
||||
documentation: '',
|
||||
accessibility_documentation: '',
|
||||
email_id: '',
|
||||
},
|
||||
},
|
||||
piazza: {
|
||||
features: [
|
||||
@@ -86,6 +107,13 @@ export const legacyApiResponse = {
|
||||
'wcag-2.1',
|
||||
'lti',
|
||||
],
|
||||
documentation_urls: {
|
||||
learn_more: '',
|
||||
configuration_documentation: '',
|
||||
documentation: '',
|
||||
accessibility_documentation: '',
|
||||
email_id: '',
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user