* configurable test users for xpack * removed exclusive tests * added data-test-subj for the access denied page * updated the JEST snapshot, cleaned up the test * changes to the test_api_keys role * more changes to consolidate the page object function Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
25 lines
792 B
TypeScript
25 lines
792 B
TypeScript
/*
|
|
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
|
|
* or more contributor license agreements. Licensed under the Elastic License;
|
|
* you may not use this file except in compliance with the Elastic License.
|
|
*/
|
|
|
|
import { FtrProviderContext } from '../ftr_provider_context';
|
|
|
|
export function ApiKeysPageProvider({ getService }: FtrProviderContext) {
|
|
const testSubjects = getService('testSubjects');
|
|
|
|
return {
|
|
async noAPIKeysHeading() {
|
|
return await testSubjects.getVisibleText('noApiKeysHeader');
|
|
},
|
|
|
|
async getGoToConsoleButton() {
|
|
return await testSubjects.find('goToConsoleButton');
|
|
},
|
|
|
|
async apiKeysPermissionDeniedMessage() {
|
|
return await testSubjects.getVisibleText('apiKeysPermissionDeniedMessage');
|
|
},
|
|
};
|
|
}
|