Skip to content

Commit

Permalink
update power user tests
Browse files Browse the repository at this point in the history
  • Loading branch information
darnautov committed Aug 25, 2022
1 parent db6f9d9 commit e25652a
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,14 @@
* 2.0.
*/

import expect from '@kbn/expect';
import { FtrProviderContext } from '../../../ftr_provider_context';

import { USER } from '../../../../functional/services/ml/security_common';

export default function ({ getService }: FtrProviderContext) {
const esArchiver = getService('esArchiver');
const ml = getService('ml');
const browser = getService('browser');

const testUsers = [
{ user: USER.ML_POWERUSER, discoverAvailable: true },
Expand Down Expand Up @@ -57,6 +58,10 @@ export default function ({ getService }: FtrProviderContext) {
await ml.testExecution.logTestStep('should load the ML app');
await ml.navigation.navigateToMl();

await ml.testExecution.logTestStep('should redirect to the "Data Visualizer" page');
const browserURl = await browser.getCurrentUrl();
expect(browserURl).to.contain('/ml/datavisualizer');

await ml.testExecution.logTestStep('should display the disabled "Overview" tab');
await ml.navigation.assertOverviewTabEnabled(false);

Expand Down

0 comments on commit e25652a

Please sign in to comment.