mirror of
https://github.com/Alfresco/alfresco-content-app.git
synced 2025-07-31 17:38:28 +00:00
e2e api enhancements (part 1) (#1727)
* add typings, deprecate username wrapper * improve imports * unify admin actions for people * remove auth api wrapper * remove unused apis * remove unused apis * use admin api actions everywhere
This commit is contained in:
@@ -23,7 +23,16 @@
|
||||
* along with Alfresco. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
import { BrowsingPage, LoginPage, RepoClient, EXTENSIBILITY_CONFIGS, Utils, InfoDrawer, MetadataCard } from '@alfresco/aca-testing-shared';
|
||||
import {
|
||||
AdminActions,
|
||||
BrowsingPage,
|
||||
LoginPage,
|
||||
RepoClient,
|
||||
EXTENSIBILITY_CONFIGS,
|
||||
Utils,
|
||||
InfoDrawer,
|
||||
MetadataCard
|
||||
} from '@alfresco/aca-testing-shared';
|
||||
|
||||
describe('Extensions - Metadata presets', () => {
|
||||
const username = `user-${Utils.random()}`;
|
||||
@@ -53,7 +62,6 @@ describe('Extensions - Metadata presets', () => {
|
||||
};
|
||||
|
||||
const apis = {
|
||||
admin: new RepoClient(),
|
||||
user: new RepoClient(username, username)
|
||||
};
|
||||
|
||||
@@ -62,9 +70,10 @@ describe('Extensions - Metadata presets', () => {
|
||||
|
||||
const loginPage = new LoginPage();
|
||||
const page = new BrowsingPage();
|
||||
const adminApiActions = new AdminActions();
|
||||
|
||||
beforeAll(async (done) => {
|
||||
await apis.admin.people.createUser({ username });
|
||||
await adminApiActions.createUser({ username });
|
||||
fileId = (await apis.user.nodes.createImage(file)).entry.id;
|
||||
|
||||
await loginPage.load();
|
||||
|
Reference in New Issue
Block a user