[ACS-5604] viewer protected file test playwright (#3354)

* re-enable protracotr test

* viewer protected file tests

* remove navigate though pages
This commit is contained in:
Akash Rathod
2023-07-19 22:56:03 +02:00
committed by GitHub
parent f9f5834fb7
commit 9a585c1642
12 changed files with 340 additions and 61 deletions

View File

@@ -1,22 +1,44 @@
/*
* Copyright © 2005 - 2021 Alfresco Software, Ltd. All rights reserved.
/*!
* Copyright © 2005-2023 Hyland Software, Inc. and its affiliates. All rights reserved.
*
* License rights for this program may be obtained from Alfresco Software, Ltd.
* pursuant to a written agreement and any use of this program without such an
* agreement is prohibited.
* 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 { resolve } from 'path';
export const TEST_FILES = {
DOCX: {
path: resolve(__dirname, 'file-docx.docx'),
name: 'file-docx',
data: 'Lorem ipsum dolor sit amet'
},
PDF: {
path: resolve(__dirname, 'file-pdf.pdf'),
name: 'file-pdf',
data: 'Lorem ipsum dolor sit amet'
},
DOCX: {
path: resolve(__dirname, 'file-docx.docx'),
name: 'file-docx',
data: 'Lorem ipsum dolor sit amet'
},
PDF: {
path: resolve(__dirname, 'file-pdf.pdf'),
name: 'file-pdf',
data: 'Lorem ipsum dolor sit amet'
},
DOCX_PROTECTED: {
path: resolve(__dirname, 'file-pdf-protected.pdf'),
name: 'file-pdf-protected',
data: 'Lorem ipsum dolor sit amet',
password: '0000'
}
};