[ACS-7360] aca playwright e2e file name rename with .e2e.ts extension (#3738)

* [ACS-7360] authentication updated to e2e.ts

* [ACS-7360] copy-move-actions tests updated to e2e.ts

* [ACS-7360] create-actions tests updated to e2e.ts

* [ACS-7360] folder-rules tests updated to e2e.ts

* [ACS-7360] info-drawer tests updates to e2e.ts

* [ACS-7360] library-actions tests updated to e2e.ts

* [ACS_7360] list-views tests updated to e2e.ts

* [ACS-7360] navigation tests updated to e2e.ts

* [ACS-7360] pagination tests updated to e2e.ts

* [ACS-7360] search tests updated to e2e.ts

* [ACS-7360] share-actions tests updated to e2e.ts

* [ACS-7360] special-permissions tests updated to e2e.ts

* [ACS-7360] viewer tests updated to e2e.ts

* [ACS-7360] replaced every .spec.ts and .test.ts with .e2e.ts

* [ACS-7360] undo .spec.ts chages for non test files

* [ACS-7360] hardcoded credentials sonarcloud fix 1

* [ACS-7360] hardcoded credentials sonarcloud fix 2
This commit is contained in:
Adam Świderski
2024-03-27 15:27:56 +01:00
committed by GitHub
parent dd17437fce
commit a20f8d9ac8
49 changed files with 15 additions and 12 deletions

View File

@@ -30,7 +30,7 @@ test.describe('Create folders', () => {
let randomFolderName: string;
const sessionTestUser = {
username: `user-${Utils.random()}`,
password: 'user password'
password: Utils.random()
};
test.beforeAll(async () => {

View File

@@ -31,6 +31,7 @@ test.describe('viewer file', () => {
const otherLanguageUser = {
/* cspell:disable-next-line */
username: `пользвате${Utils.random()}`,
/* cspell:disable-next-line */
password: '密碼中國'
};
@@ -45,7 +46,7 @@ test.describe('viewer file', () => {
const testUser2 = {
username: `user-${Utils.random()}`,
password: 'user2 password'
password: Utils.random()
};
const newPassword = 'new password';

View File

@@ -29,8 +29,9 @@ test.describe('viewer file', () => {
const apiClientFactory = new ApiClientFactory();
const testUser = {
username: `user-${Utils.random()}`,
password: 'user password'
password: Utils.random()
};
test.beforeAll(async () => {
await apiClientFactory.setUpAcaBackend('admin');
await apiClientFactory.createUser(testUser);

View File

@@ -23,13 +23,13 @@
*/
import { expect } from '@playwright/test';
import { ActionType, ApiClientFactory, getUserState, test } from '@alfresco/playwright-shared';
import { ActionType, ApiClientFactory, getUserState, test, Utils } from '@alfresco/playwright-shared';
test.use({ storageState: getUserState('hruser') });
test.describe('Folder Rules Actions', () => {
const apiClientFactory = new ApiClientFactory();
const randomFolderName = `playwright-folder-${(Math.random() + 1).toString(36).substring(6)}`;
const randomRuleName = `playwright-rule-${(Math.random() + 1).toString(36).substring(6)}`;
const randomFolderName = `playwright-folder-${Utils.random()}`;
const randomRuleName = `playwright-rule-${Utils.random()}`;
const checkInValue = 'check In Value';
const actionValue = ' A site which contains sfdc content [sfdc:site] ';
const autoDeclareOptionsValue = 'For all major and minor versions [ALL]';

View File

@@ -23,13 +23,13 @@
*/
import { expect } from '@playwright/test';
import { ActionType, ApiClientFactory, Comparator, Field, getUserState, test } from '@alfresco/playwright-shared';
import { ActionType, ApiClientFactory, Comparator, Field, getUserState, test, Utils } from '@alfresco/playwright-shared';
test.use({ storageState: getUserState('hruser') });
test.describe('Folder Rules Conditions', () => {
const apiClientFactory = new ApiClientFactory();
const randomFolderName = `playwright-folder-${(Math.random() + 1).toString(36).substring(6)}`;
const randomRuleName = `playwright-rule-${(Math.random() + 1).toString(36).substring(6)}`;
const randomFolderName = `playwright-folder-${Utils.random()}`;
const randomRuleName = `playwright-rule-${Utils.random()}`;
const specialChars = '!@£$%^&*()~#/';
let folderId: string;

View File

@@ -22,13 +22,13 @@
* from Hyland Software. If not, see <http://www.gnu.org/licenses/>.
*/
import { ApiClientFactory, getUserState, test } from '@alfresco/playwright-shared';
import { ApiClientFactory, getUserState, test, Utils } from '@alfresco/playwright-shared';
test.use({ storageState: getUserState('hruser') });
test.describe('Rules - Manage Rules', () => {
const apiClientFactory = new ApiClientFactory();
const randomName = `playwright-folder-${(Math.random() + 1).toString(36).substring(6)}`;
const randomRuleName = `playwright-rule-${(Math.random() + 1).toString(36).substring(6)}`;
const randomName = `playwright-folder-${Utils.random()}`;
const randomRuleName = `playwright-rule-${Utils.random()}`;
let folderId: string;

View File

@@ -50,6 +50,7 @@ export const getGlobalConfig: PlaywrightTestConfig = {
workers: 3,
reporter: [['list'], ...report],
globalSetup: require.resolve('./global.setup'),
testMatch: ['**/*.e2e.ts'],
use: {
/* Maximum time each action such as `click()` can take. Defaults to 0 (no limit). */
actionTimeout: 0,