mirror of
https://github.com/Alfresco/alfresco-content-app.git
synced 2025-07-24 17:31:52 +00:00
[ACS-8153] delete protractor e2e configuration and files (#3885)
* [ACS-8153] delete protractor e2e configuration and files * [ACS-8153] util fix * [ACS-8153] pr fix * [ACS-81532] remove e2e package.json * [ACS-81532] remove chrome configuration * package-lock file
This commit is contained in:
@@ -1,26 +0,0 @@
|
||||
{
|
||||
"extends": "../../.eslintrc.json",
|
||||
"ignorePatterns": [
|
||||
"!**/*"
|
||||
],
|
||||
"overrides": [
|
||||
{
|
||||
"files": [
|
||||
"*.ts"
|
||||
],
|
||||
"parserOptions": {
|
||||
"project": [
|
||||
"e2e/protractor/tsconfig.e2e.json"
|
||||
],
|
||||
"createDefaultProgram": true
|
||||
},
|
||||
"plugins": [
|
||||
"rxjs",
|
||||
"unicorn"
|
||||
],
|
||||
"rules": {
|
||||
"@typescript-eslint/no-floating-promises": "off"
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
@@ -1,10 +0,0 @@
|
||||
const buildNumber = () => {
|
||||
let buildNumber = process.env.GH_BUILD_NUMBER;
|
||||
if (!buildNumber) {
|
||||
process.env.GH_BUILD_NUMBER = Date.now();
|
||||
}
|
||||
|
||||
return process.env.GH_BUILD_NUMBER;
|
||||
}
|
||||
|
||||
module.exports = buildNumber;
|
@@ -1,69 +0,0 @@
|
||||
const path = require('node:path');
|
||||
const fs = require('node:fs');
|
||||
const child_process = require('node:child_process');
|
||||
const { AlfrescoApi, NodesApi, UploadApi } = require('@alfresco/js-api');
|
||||
const buildNumber = require('./build-number');
|
||||
const outputDir = path.resolve(__dirname, '../../../e2e-output/');
|
||||
|
||||
async function saveScreenshots(retryCount) {
|
||||
const folderName = process.env.GITHUB_JOB;
|
||||
console.log(`Start uploading report in ${folderName}`);
|
||||
|
||||
const alfrescoJsApi = new AlfrescoApi({
|
||||
provider: 'ECM',
|
||||
hostEcm: process.env.SCREENSHOT_URL
|
||||
});
|
||||
|
||||
const nodesApi = new NodesApi(alfrescoJsApi);
|
||||
const uploadApi = new UploadApi(alfrescoJsApi);
|
||||
|
||||
await alfrescoJsApi.login(process.env.SCREENSHOT_USERNAME, process.env.SCREENSHOT_PASSWORD);
|
||||
|
||||
let folderNode;
|
||||
|
||||
try {
|
||||
folderNode = await nodesApi.createNode(
|
||||
'-my-',
|
||||
{
|
||||
name: `retry-${retryCount}`,
|
||||
relativePath: `Builds/ACA-${buildNumber()}/${folderName}/`,
|
||||
nodeType: 'cm:folder'
|
||||
},
|
||||
{},
|
||||
{
|
||||
overwrite: true
|
||||
}
|
||||
);
|
||||
} catch (error) {
|
||||
folderNode = await nodesApi.createNode(
|
||||
'-my-',
|
||||
{
|
||||
relativePath: `Builds/ACA-${buildNumber()}/${folderName}/retry-${retryCount}`,
|
||||
nodeType: 'cm:folder'
|
||||
},
|
||||
{},
|
||||
{
|
||||
overwrite: true
|
||||
}
|
||||
);
|
||||
}
|
||||
|
||||
fs.renameSync(outputDir, path.join(`${outputDir}-${folderName}-${retryCount}/`));
|
||||
|
||||
child_process.execSync(` tar -czvf ../e2e-result-${folderName}-${retryCount}.tar .`, {
|
||||
cwd: `${outputDir}-${folderName}-${retryCount}/`
|
||||
});
|
||||
|
||||
const pathFile = path.join(outputDir, `../e2e-result-${folderName}-${retryCount}.tar`);
|
||||
const file = fs.createReadStream(pathFile);
|
||||
|
||||
await uploadApi.uploadFile(file, '', folderNode.entry.id, null, {
|
||||
name: `e2e-result-${folderName}-${retryCount}.tar`,
|
||||
nodeType: 'cm:content',
|
||||
autoRename: true
|
||||
});
|
||||
}
|
||||
|
||||
module.exports = {
|
||||
saveScreenshots: saveScreenshots
|
||||
};
|
@@ -1,23 +0,0 @@
|
||||
{
|
||||
"name": "app-e2e",
|
||||
"$schema": "../../node_modules/nx/schemas/project-schema.json",
|
||||
"sourceRoot": "e2e",
|
||||
"projectType": "application",
|
||||
"targets": {
|
||||
"e2e": {
|
||||
"executor": "@angular-devkit/build-angular:protractor",
|
||||
"options": {
|
||||
"protractorConfig": "./protractor.conf.js",
|
||||
"devServerTarget": "content-ce:serve"
|
||||
},
|
||||
"configurations": {
|
||||
"production": {
|
||||
"devServerTarget": "content-ce:serve:production"
|
||||
}
|
||||
}
|
||||
},
|
||||
"lint": {
|
||||
"executor": "@angular-eslint/builder:lint"
|
||||
}
|
||||
}
|
||||
}
|
@@ -1,44 +0,0 @@
|
||||
{
|
||||
"C261153": "https://alfresco.atlassian.net/browse/AAE-7517",
|
||||
"C306959": "https://alfresco.atlassian.net/browse/ACA-4620",
|
||||
"C213134": "temp, see https://alfresco.atlassian.net/browse/ACS-5189",
|
||||
"C286252": "temp, see https://alfresco.atlassian.net/browse/ACS-5189",
|
||||
"C284666": "temp, see https://alfresco.atlassian.net/browse/ACS-5189",
|
||||
"C279186": "will be fixed after protractor to playwright migration, see https://alfresco.atlassian.net/browse/ACS-5007",
|
||||
"C279211": "will be fixed after protractor to playwright migration, see https://alfresco.atlassian.net/browse/ACS-5007",
|
||||
"C279212": "will be fixed after protractor to playwright migration, see https://alfresco.atlassian.net/browse/ACS-5007",
|
||||
"C279213": "will be fixed after protractor to playwright migration, see https://alfresco.atlassian.net/browse/ACS-5007",
|
||||
"C279214": "will be fixed after protractor to playwright migration, see https://alfresco.atlassian.net/browse/ACS-5007",
|
||||
"C279215": "will be fixed after protractor to playwright migration, see https://alfresco.atlassian.net/browse/ACS-5007",
|
||||
"C279216": "will be fixed after protractor to playwright migration, see https://alfresco.atlassian.net/browse/ACS-5007",
|
||||
"C279217": "will be fixed after protractor to playwright migration, see https://alfresco.atlassian.net/browse/ACS-5007",
|
||||
"C279219": "will be fixed after protractor to playwright migration, see https://alfresco.atlassian.net/browse/ACS-5007",
|
||||
"C279220": "will be fixed after protractor to playwright migration, see https://alfresco.atlassian.net/browse/ACS-5007",
|
||||
"C279221": "will be fixed after protractor to playwright migration, see https://alfresco.atlassian.net/browse/ACS-5007",
|
||||
"C325006": "will be fixed after protractor to playwright migration, see https://alfresco.atlassiana.net/browse/ACS-5007",
|
||||
"C280025": "will be fixed after protractor to playwright migration, see https://alfresco.atlassiana.net/browse/ACS-5007",
|
||||
"C289880": "will be fixed after protractor to playwright migration, see https://alfresco.atlassiana.net/browse/ACS-5007",
|
||||
"C289881": "will be fixed after protractor to playwright migration, see https://alfresco.atlassiana.net/browse/ACS-5007",
|
||||
"C297659": "will be fixed after protractor to playwright migration, see https://alfresco.atlassiana.net/browse/ACS-5007",
|
||||
"C280077": "will be fixed after protractor to playwright migration, see https://alfresco.atlassiana.net/browse/ACS-5007",
|
||||
"C289903": "will be fixed after protractor to playwright migration, see https://alfresco.atlassiana.net/browse/ACS-5007",
|
||||
"C277224": "will be fixed after protractor to playwright migration, see https://alfresco.atlassiana.net/browse/ACS-5007",
|
||||
"C289893": "will be fixed after protractor to playwright migration, see https://alfresco.atlassiana.net/browse/ACS-5007",
|
||||
"C290014": "will be fixed after protractor to playwright migration, see https://alfresco.atlassiana.net/browse/ACS-5007",
|
||||
"C290017": "will be fixed after protractor to playwright migration, see https://alfresco.atlassiana.net/browse/ACS-5007",
|
||||
"C279162": "will be fixed after protractor to playwright migration, see https://alfresco.atlassiana.net/browse/ACS-5007",
|
||||
"C290012": "will be fixed after protractor to playwright migration, see https://alfresco.atlassiana.net/browse/ACS-5007",
|
||||
"C289988": "will be fixed after protractor to playwright migration, see https://alfresco.atlassiana.net/browse/ACS-5007",
|
||||
"C289991": "will be fixed after protractor to playwright migration, see https://alfresco.atlassiana.net/browse/ACS-5007",
|
||||
"C279177": "will be fixed after protractor to playwright migration, see https://alfresco.atlassiana.net/browse/ACS-5007",
|
||||
"C306965": "will be fixed after protractor to playwright migration, see https://alfresco.atlassiana.net/browse/ACS-5007",
|
||||
"C217095": "will be fixed after protractor to playwright migration, see https://alfresco.atlassiana.net/browse/ACS-5007",
|
||||
"C280116": "will be fixed after protractor to playwright migration, see https://alfresco.atlassiana.net/browse/ACS-5007",
|
||||
"C280081": "will be fixed after protractor to playwright migration, see https://alfresco.atlassiana.net/browse/ACS-5007",
|
||||
"C213097": "https://alfresco.atlassian.net/browse/ACS-5479",
|
||||
"C269007" : "date test fail migrate to playwright https://alfresco.atlassian.net/browse/ACS-6185 ",
|
||||
"C307106" : "date test fail migrate to playwright https://alfresco.atlassian.net/browse/ACS-6185 ",
|
||||
"C269003" : "date test fail migrate to playwright https://alfresco.atlassian.net/browse/ACS-6185 ",
|
||||
"C290018" : "https://alfresco.atlassian.net/browse/ACA-4731",
|
||||
"C277727" : "https://alfresco.atlassian.net/browse/ACS-6672"
|
||||
}
|
Binary file not shown.
Binary file not shown.
Before Width: | Height: | Size: 22 KiB |
@@ -1,198 +0,0 @@
|
||||
%PDF-1.3
|
||||
%<25><><EFBFBD><EFBFBD>
|
||||
|
||||
1 0 obj
|
||||
<<
|
||||
/Type /Catalog
|
||||
/Outlines 2 0 R
|
||||
/Pages 3 0 R
|
||||
>>
|
||||
endobj
|
||||
|
||||
2 0 obj
|
||||
<<
|
||||
/Type /Outlines
|
||||
/Count 0
|
||||
>>
|
||||
endobj
|
||||
|
||||
3 0 obj
|
||||
<<
|
||||
/Type /Pages
|
||||
/Count 2
|
||||
/Kids [ 4 0 R 6 0 R ]
|
||||
>>
|
||||
endobj
|
||||
|
||||
4 0 obj
|
||||
<<
|
||||
/Type /Page
|
||||
/Parent 3 0 R
|
||||
/Resources <<
|
||||
/Font <<
|
||||
/F1 9 0 R
|
||||
>>
|
||||
/ProcSet 8 0 R
|
||||
>>
|
||||
/MediaBox [0 0 612.0000 792.0000]
|
||||
/Contents 5 0 R
|
||||
>>
|
||||
endobj
|
||||
|
||||
5 0 obj
|
||||
<< /Length 1074 >>
|
||||
stream
|
||||
2 J
|
||||
BT
|
||||
0 0 0 rg
|
||||
/F1 0027 Tf
|
||||
57.3750 722.2800 Td
|
||||
( A Simple PDF File ) Tj
|
||||
ET
|
||||
BT
|
||||
/F1 0010 Tf
|
||||
69.2500 688.6080 Td
|
||||
( This is a small demonstration .pdf file - ) Tj
|
||||
ET
|
||||
BT
|
||||
/F1 0010 Tf
|
||||
69.2500 664.7040 Td
|
||||
( just for use in the Virtual Mechanics tutorials. More text. And more ) Tj
|
||||
ET
|
||||
BT
|
||||
/F1 0010 Tf
|
||||
69.2500 652.7520 Td
|
||||
( text. And more text. And more text. And more text. ) Tj
|
||||
ET
|
||||
BT
|
||||
/F1 0010 Tf
|
||||
69.2500 628.8480 Td
|
||||
( And more text. And more text. And more text. And more text. And more ) Tj
|
||||
ET
|
||||
BT
|
||||
/F1 0010 Tf
|
||||
69.2500 616.8960 Td
|
||||
( text. And more text. Boring, zzzzz. And more text. And more text. And ) Tj
|
||||
ET
|
||||
BT
|
||||
/F1 0010 Tf
|
||||
69.2500 604.9440 Td
|
||||
( more text. And more text. And more text. And more text. And more text. ) Tj
|
||||
ET
|
||||
BT
|
||||
/F1 0010 Tf
|
||||
69.2500 592.9920 Td
|
||||
( And more text. And more text. ) Tj
|
||||
ET
|
||||
BT
|
||||
/F1 0010 Tf
|
||||
69.2500 569.0880 Td
|
||||
( And more text. And more text. And more text. And more text. And more ) Tj
|
||||
ET
|
||||
BT
|
||||
/F1 0010 Tf
|
||||
69.2500 557.1360 Td
|
||||
( text. And more text. And more text. Even more. Continued on page 2 ...) Tj
|
||||
ET
|
||||
endstream
|
||||
endobj
|
||||
|
||||
6 0 obj
|
||||
<<
|
||||
/Type /Page
|
||||
/Parent 3 0 R
|
||||
/Resources <<
|
||||
/Font <<
|
||||
/F1 9 0 R
|
||||
>>
|
||||
/ProcSet 8 0 R
|
||||
>>
|
||||
/MediaBox [0 0 612.0000 792.0000]
|
||||
/Contents 7 0 R
|
||||
>>
|
||||
endobj
|
||||
|
||||
7 0 obj
|
||||
<< /Length 676 >>
|
||||
stream
|
||||
2 J
|
||||
BT
|
||||
0 0 0 rg
|
||||
/F1 0027 Tf
|
||||
57.3750 722.2800 Td
|
||||
( Simple PDF File 2 ) Tj
|
||||
ET
|
||||
BT
|
||||
/F1 0010 Tf
|
||||
69.2500 688.6080 Td
|
||||
( ...continued from page 1. Yet more text. And more text. And more text. ) Tj
|
||||
ET
|
||||
BT
|
||||
/F1 0010 Tf
|
||||
69.2500 676.6560 Td
|
||||
( And more text. And more text. And more text. And more text. And more ) Tj
|
||||
ET
|
||||
BT
|
||||
/F1 0010 Tf
|
||||
69.2500 664.7040 Td
|
||||
( text. Oh, how boring typing this stuff. But not as boring as watching ) Tj
|
||||
ET
|
||||
BT
|
||||
/F1 0010 Tf
|
||||
69.2500 652.7520 Td
|
||||
( paint dry. And more text. And more text. And more text. And more text. ) Tj
|
||||
ET
|
||||
BT
|
||||
/F1 0010 Tf
|
||||
69.2500 640.8000 Td
|
||||
( Boring. More, a little more text. The end, and just as well. ) Tj
|
||||
ET
|
||||
endstream
|
||||
endobj
|
||||
|
||||
8 0 obj
|
||||
[/PDF /Text]
|
||||
endobj
|
||||
|
||||
9 0 obj
|
||||
<<
|
||||
/Type /Font
|
||||
/Subtype /Type1
|
||||
/Name /F1
|
||||
/BaseFont /Helvetica
|
||||
/Encoding /WinAnsiEncoding
|
||||
>>
|
||||
endobj
|
||||
|
||||
10 0 obj
|
||||
<<
|
||||
/Creator (Rave \(http://www.nevrona.com/rave\))
|
||||
/Producer (Nevrona Designs)
|
||||
/CreationDate (D:20060301072826)
|
||||
>>
|
||||
endobj
|
||||
|
||||
xref
|
||||
0 11
|
||||
0000000000 65535 f
|
||||
0000000019 00000 n
|
||||
0000000093 00000 n
|
||||
0000000147 00000 n
|
||||
0000000222 00000 n
|
||||
0000000390 00000 n
|
||||
0000001522 00000 n
|
||||
0000001690 00000 n
|
||||
0000002423 00000 n
|
||||
0000002456 00000 n
|
||||
0000002574 00000 n
|
||||
|
||||
trailer
|
||||
<<
|
||||
/Size 11
|
||||
/Root 1 0 R
|
||||
/Info 10 0 R
|
||||
>>
|
||||
|
||||
startxref
|
||||
2714
|
||||
%%EOF
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -1 +0,0 @@
|
||||
<EFBFBD><EFBFBD>
|
Binary file not shown.
@@ -1,14 +0,0 @@
|
||||
const SmartRunnerFactory = require('protractor-smartrunner').SmartRunnerFactory;
|
||||
const resolve = require('path').resolve;
|
||||
|
||||
const outputDirectory = process.env.SMART_RUNNER_DIRECTORY;
|
||||
const repoHash = process.env.GIT_HASH;
|
||||
|
||||
console.log(`SmartRunner's repoHash: "${repoHash}"`);
|
||||
console.log(`SmartRunner's outputDirectory: "${outputDirectory}"`);
|
||||
|
||||
module.exports = new SmartRunnerFactory({
|
||||
repoHash,
|
||||
...(outputDirectory ? { outputDirectory: resolve(__dirname, '..', outputDirectory) } : {}),
|
||||
exclusionPath: resolve(__dirname, 'protractor.excludes.json')
|
||||
});
|
@@ -1,98 +0,0 @@
|
||||
/*!
|
||||
* Copyright © 2005-2024 Hyland Software, Inc. and its affiliates. All rights reserved.
|
||||
*
|
||||
* Alfresco Example Content Application
|
||||
*
|
||||
* This file is part of the Alfresco Example Content Application.
|
||||
* If the software was purchased under a paid Alfresco license, the terms of
|
||||
* the paid license agreement will prevail. Otherwise, the software is
|
||||
* provided under the following open source license terms:
|
||||
*
|
||||
* The Alfresco Example Content Application is free software: you can redistribute it and/or modify
|
||||
* it under the terms of the GNU Lesser General Public License as published by
|
||||
* the Free Software Foundation, either version 3 of the License, or
|
||||
* (at your option) any later version.
|
||||
*
|
||||
* The Alfresco Example Content Application is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU Lesser General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU Lesser General Public License
|
||||
* from Hyland Software. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
import { AdminActions, LoginPage, BrowsingPage, RepoClient, Utils, UserActions } from '@alfresco/aca-testing-shared';
|
||||
|
||||
describe('Upload files', () => {
|
||||
const username = `user-${Utils.random()}`;
|
||||
|
||||
const folder1 = `folder1-${Utils.random()}`;
|
||||
let folder1Id: string;
|
||||
|
||||
const apis = {
|
||||
user: new RepoClient(username, username)
|
||||
};
|
||||
|
||||
const loginPage = new LoginPage();
|
||||
const page = new BrowsingPage();
|
||||
const { dataTable } = page;
|
||||
|
||||
const adminApiActions = new AdminActions();
|
||||
const userActions = new UserActions();
|
||||
|
||||
beforeAll(async () => {
|
||||
await adminApiActions.createUser({ username });
|
||||
await userActions.login(username, username);
|
||||
|
||||
folder1Id = await apis.user.createFolder(folder1);
|
||||
|
||||
await loginPage.loginWith(username);
|
||||
});
|
||||
|
||||
beforeEach(async () => {
|
||||
await page.clickPersonalFilesAndWait();
|
||||
await dataTable.doubleClickOnRowByName(folder1);
|
||||
await page.toolbar.openUploadMenu();
|
||||
await page.toolbar.menu.uploadFilesInput.sendKeys(`${__dirname}/upload-file.test.ts`);
|
||||
await page.toolbar.closeUploadMenu();
|
||||
await page.uploadFilesDialog.uploadDialog.isVisible();
|
||||
});
|
||||
|
||||
afterAll(async () => {
|
||||
await apis.user.nodes.deleteNodeById(folder1Id);
|
||||
});
|
||||
|
||||
it('Upload a file', async () => {
|
||||
const uploadedFiles = await dataTable.isItemPresent('upload-file.test.ts');
|
||||
expect(uploadedFiles).toBe(true, 'file not uploaded');
|
||||
});
|
||||
|
||||
it('[T14752064] Close the upload dialog ', async () => {
|
||||
await page.uploadFilesDialog.closeUploadButton.click();
|
||||
await page.uploadFilesDialog.uploadDialog.isPresent();
|
||||
expect(await page.uploadFilesDialog.uploadDialog.isVisible()).toBe(false);
|
||||
});
|
||||
|
||||
it('[T14752051] Minimize / maximize the upload dialog ', async () => {
|
||||
await page.uploadFilesDialog.minimizeButton.click();
|
||||
expect(await page.uploadFilesDialog.uploadedFiles.waitNotVisible()).toBe(true);
|
||||
|
||||
await page.uploadFilesDialog.maximizeButton.click();
|
||||
expect(await page.uploadFilesDialog.uploadedFiles.waitVisible()).toBe(true);
|
||||
});
|
||||
|
||||
it('[T14752053] Upload history is expunged on browser login/logout ', async () => {
|
||||
await page.signOut();
|
||||
await loginPage.loginWith(username);
|
||||
const isUploadDialogVisible = await page.uploadFilesDialog.uploadDialog.isVisible();
|
||||
|
||||
expect(isUploadDialogVisible).toBe(false);
|
||||
});
|
||||
|
||||
it('[T14752052] Upload dialog remains fixed in the browser when user performs other actions in parallel ', async () => {
|
||||
expect(page.uploadFilesDialog.uploadDialog.isVisible()).toBe(true);
|
||||
await page.clickPersonalFiles();
|
||||
expect(page.uploadFilesDialog.uploadDialog.isVisible()).toBe(true);
|
||||
});
|
||||
});
|
@@ -1,15 +0,0 @@
|
||||
{
|
||||
"extends": "../../tsconfig.adf.json",
|
||||
"compilerOptions": {
|
||||
"outDir": "../../out-tsc/e2e",
|
||||
"baseUrl": "./",
|
||||
"module": "commonjs",
|
||||
"target": "es2017",
|
||||
"types": ["jasmine", "jasminewd2", "node"],
|
||||
"skipLibCheck": true,
|
||||
"paths": {
|
||||
"@alfresco/aca-testing-shared": ["../../projects/aca-testing-shared/src/index.ts"]
|
||||
}
|
||||
},
|
||||
"exclude": ["node_modules"]
|
||||
}
|
@@ -1,16 +0,0 @@
|
||||
{
|
||||
"extends": "../../tsconfig.json",
|
||||
"compilerOptions": {
|
||||
"outDir": "../../out-tsc/e2e",
|
||||
"baseUrl": "./",
|
||||
"module": "commonjs",
|
||||
"target": "es2017",
|
||||
"types": ["jasmine", "jasminewd2", "node", "@playwright/test"],
|
||||
"skipLibCheck": true,
|
||||
"paths": {
|
||||
"@alfresco/aca-testing-shared": ["../../projects/aca-testing-shared/src/index.ts"],
|
||||
"@alfresco/playwright-shared": ["../../projects/aca-playwright-shared/src/index.ts"]
|
||||
}
|
||||
},
|
||||
"exclude": ["node_modules"]
|
||||
}
|
Reference in New Issue
Block a user