[ACA-1970] extension fixes (#780)

* cleanup extension settings

* remove header demo and update schema

* move card view to separate demo extension

* update to ADF 2.6.1
This commit is contained in:
Denys Vuika
2018-11-08 06:46:32 +00:00
committed by GitHub
parent 5d71b18ba1
commit 2dc2f51944
22 changed files with 112 additions and 188 deletions
@@ -62,7 +62,7 @@ describe('Extensions - Context submenu', () => {
folderId = (await apis.user.nodes.createFolder(folder)).entry.id;
await loginPage.load();
await Utils.setSessionStorageFromConfig('"aca.extension.config"', EXTENSIBILITY_CONFIGS.CONTEXT_SUBMENUS);
await Utils.setSessionStorageFromConfig(EXTENSIBILITY_CONFIGS.CONTEXT_SUBMENUS);
await loginPage.loginWith(username);
done();
@@ -71,7 +71,7 @@ describe('Extensions - DocumentList presets', () => {
fileId = (await apis.user.nodes.createFile(file)).entry.id;
await loginPage.load();
await Utils.setSessionStorageFromConfig('"aca.extension.config"', EXTENSIBILITY_CONFIGS.DOCUMENT_LIST_PRESETS);
await Utils.setSessionStorageFromConfig(EXTENSIBILITY_CONFIGS.DOCUMENT_LIST_PRESETS);
await loginPage.loginWith(username);
done();
+1 -1
View File
@@ -60,7 +60,7 @@ describe('Extensions - Info Drawer', () => {
beforeAll(async (done) => {
await apis.admin.people.createUser({ username });
await loginPage.load();
await Utils.setSessionStorageFromConfig('"aca.extension.config"', EXTENSIBILITY_CONFIGS.HEADER);
await Utils.setSessionStorageFromConfig(EXTENSIBILITY_CONFIGS.HEADER);
await loginPage.loginWith(username);
done();
});
@@ -81,7 +81,7 @@ describe('Extensions - Info Drawer', () => {
describe('', () => {
beforeAll(async (done) => {
await loginPage.load();
await Utils.setSessionStorageFromConfig('"aca.extension.config"', EXTENSIBILITY_CONFIGS.INFO_DRAWER);
await Utils.setSessionStorageFromConfig(EXTENSIBILITY_CONFIGS.INFO_DRAWER);
await loginPage.loginWith(username);
done();
});
@@ -142,7 +142,7 @@ describe('Extensions - Info Drawer', () => {
describe('', () => {
beforeAll(async (done) => {
await loginPage.load();
await Utils.setSessionStorageFromConfig('"aca.extension.config"', EXTENSIBILITY_CONFIGS.INFO_DRAWER_EMPTY);
await Utils.setSessionStorageFromConfig(EXTENSIBILITY_CONFIGS.INFO_DRAWER_EMPTY);
await loginPage.loginWith(username);
await page.clickPersonalFilesAndWait();
done();
+1 -1
View File
@@ -73,7 +73,7 @@ describe('Extensions - Metadata presets', () => {
fileId = (await apis.user.nodes.createImage(file)).entry.id;
await loginPage.load();
await Utils.setSessionStorageFromConfig('"aca.extension.config"', EXTENSIBILITY_CONFIGS.METADATA_PRESETS);
await Utils.setSessionStorageFromConfig(EXTENSIBILITY_CONFIGS.METADATA_PRESETS);
await loginPage.loginWith(username);
done();
+1 -1
View File
@@ -83,7 +83,7 @@ describe('Extensions - Viewer', () => {
docxFileId = (await apis.user.upload.uploadFile(docxFile.file_name)).entry.id;
await loginPage.load();
await Utils.setSessionStorageFromConfig('"aca.extension.config"', EXTENSIBILITY_CONFIGS.VIEWER);
await Utils.setSessionStorageFromConfig(EXTENSIBILITY_CONFIGS.VIEWER);
await loginPage.loginWith(username);
done();
});