test: updated UI test according to new api response

This commit is contained in:
Mehak Nasir
2021-06-08 14:39:36 +05:00
committed by Mehak Nasir
parent 046e4441e9
commit 1943aeeb84
4 changed files with 45 additions and 5 deletions

View File

@@ -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',

View File

@@ -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',

View File

@@ -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,
};

View File

@@ -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: '',
},
},
},
},