mirror of
https://github.com/Alfresco/alfresco-content-app.git
synced 2025-07-31 17:38:28 +00:00
exclude one test and do some fixes (#1869)
* exclude one test and do some fixes * try to get more logs * some more fixes * try to workaround the slow update of toggle menus * more logging * no message * trigger another run * Update delete-undo-delete.test.ts * no message * rename methods * no message * no message * no message * no message * no message * no message * update travis.yml * run travis on branch * trigger travis * cleanup * no message
This commit is contained in:
@@ -145,7 +145,7 @@ describe('Create file from template', () => {
|
||||
await sidenav.openCreateFileFromTemplateDialog();
|
||||
await selectTemplateDialog.waitForDialogToOpen();
|
||||
|
||||
expect(await selectTemplateDialog.getTitle()).toEqual('Select a document template');
|
||||
expect(await selectTemplateDialog.getDialogTitle()).toEqual('Select a document template');
|
||||
expect(await selectTemplateDialog.dataTable.isEmpty()).toBe(true, 'Datatable is not empty');
|
||||
expect(await selectTemplateDialog.dataTable.getEmptyListText()).toEqual('No results found');
|
||||
expect(await selectTemplateDialog.breadcrumb.currentFolder.getText()).toEqual('Node Templates');
|
||||
@@ -167,7 +167,7 @@ describe('Create file from template', () => {
|
||||
});
|
||||
|
||||
it('[C325043] Select template - dialog UI - with existing templates', async () => {
|
||||
expect(await selectTemplateDialog.getTitle()).toEqual('Select a document template');
|
||||
expect(await selectTemplateDialog.getDialogTitle()).toEqual('Select a document template');
|
||||
expect(await selectTemplateDialog.dataTable.isEmpty()).toBe(false, 'Datatable is empty');
|
||||
expect(await selectTemplateDialog.dataTable.isItemPresent(templatesFolder1)).toBe(true, 'template folder not displayed');
|
||||
expect(await selectTemplateDialog.dataTable.isItemPresent(templatesFolder2)).toBe(true, 'template folder not displayed');
|
||||
@@ -249,7 +249,7 @@ describe('Create file from template', () => {
|
||||
});
|
||||
|
||||
it('[C325020] Create file from template - dialog UI', async () => {
|
||||
expect(await createFromTemplateDialog.getTitle()).toEqual(`Create new document from '${template1InRootFolder}'`);
|
||||
expect(await createFromTemplateDialog.getDialogTitle()).toEqual(`Create new document from '${template1InRootFolder}'`);
|
||||
expect(await createFromTemplateDialog.nameInput.isDisplayed()).toBe(true, 'Name field not displayed');
|
||||
expect(await createFromTemplateDialog.titleInput.isDisplayed()).toBe(true, 'Title field not displayed');
|
||||
expect(await createFromTemplateDialog.descriptionTextArea.isDisplayed()).toBe(true, 'Description field not displayed');
|
||||
@@ -258,7 +258,7 @@ describe('Create file from template', () => {
|
||||
});
|
||||
|
||||
it('[C325031] File name is required', async () => {
|
||||
expect(await createFromTemplateDialog.getName()).toEqual(template1InRootFolder);
|
||||
expect(await createFromTemplateDialog.getNameInputValue()).toEqual(template1InRootFolder);
|
||||
await clearTextWithBackspace(createFromTemplateDialog.nameInput);
|
||||
|
||||
expect(await createFromTemplateDialog.getValidationMessage()).toEqual('Name is required');
|
||||
@@ -330,6 +330,7 @@ describe('Create file from template', () => {
|
||||
await createFromTemplateDialog.enterName(file2.name);
|
||||
await createFromTemplateDialog.enterTitle(file2.title);
|
||||
await createFromTemplateDialog.enterDescription(file2.description);
|
||||
|
||||
await BrowserActions.click(createFromTemplateDialog.createButton);
|
||||
await createFromTemplateDialog.waitForDialogToClose();
|
||||
await page.dataTable.waitForHeader();
|
||||
@@ -384,6 +385,7 @@ describe('Create file from template', () => {
|
||||
await createFromTemplateDialog.enterName(fileSite.name);
|
||||
await createFromTemplateDialog.enterTitle(fileSite.title);
|
||||
await createFromTemplateDialog.enterDescription(fileSite.description);
|
||||
|
||||
await BrowserActions.click(createFromTemplateDialog.createButton);
|
||||
await createFromTemplateDialog.waitForDialogToClose();
|
||||
await page.dataTable.waitForHeader();
|
||||
|
Reference in New Issue
Block a user