Skip to content

Commit

Permalink
addressing review comments
Browse files Browse the repository at this point in the history
  • Loading branch information
bhavyarm committed Oct 2, 2020
1 parent 3965e3b commit 1a012b3
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 5 deletions.
2 changes: 1 addition & 1 deletion x-pack/test/accessibility/apps/users.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
import { FtrProviderContext } from '../ftr_provider_context';

export default function ({ getService, getPageObjects }: FtrProviderContext) {
const PageObjects = getPageObjects(['security', 'settings', 'common', 'header']);
const PageObjects = getPageObjects(['security', 'settings']);
const a11y = getService('a11y');
const esArchiver = getService('esArchiver');
const testSubjects = getService('testSubjects');
Expand Down
14 changes: 10 additions & 4 deletions x-pack/test/functional/apps/security/management.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ export default function ({ getService, getPageObjects }) {
const testSubjects = getService('testSubjects');
const browser = getService('browser');
const PageObjects = getPageObjects(['security', 'settings', 'common', 'header']);
const find = getService('find');

const USERS_PATH = 'security/users';
const EDIT_USERS_PATH = `${USERS_PATH}/edit`;
Expand All @@ -19,8 +20,9 @@ export default function ({ getService, getPageObjects }) {
const EDIT_ROLES_PATH = `${ROLES_PATH}/edit`;
const CLONE_ROLES_PATH = `${ROLES_PATH}/clone`;


// FLAKY: https://github.com/elastic/kibana/issues/61173
describe.skip('Management', function () {
describe.only('Management', function () {
this.tags(['skipFirefox']);

before(async () => {
Expand Down Expand Up @@ -142,14 +144,18 @@ export default function ({ getService, getPageObjects }) {
await testSubjects.setValue('passwordConfirmationInput', '123456');
await testSubjects.setValue('userFormFullNameInput', 'dashuser');
await testSubjects.setValue('userFormEmailInput', 'example@example.com');
await PageObjects.security.assignRoleToUser('kibana_dashboard_only_user');
//await PageObjects.security.assignRoleToUser('kibana_dashboard_only_user');
await PageObjects.security.assignRoleToUser('logstash-readonly');

await PageObjects.security.clickSaveEditUser();

await PageObjects.settings.navigateTo();
await testSubjects.click('users');
await PageObjects.settings.clickLinkText('kibana_dashboard_only_user');
await PageObjects.security.clickUsersSection();
//const roleValue = await testSubjects.setValue('userRowRoles','kibana_dashboard_only_user');
//const roleValue = await testSubjects.selectValue('userRowRoles','kibana_dashboard_only_user');
await find.clickByPartialLinkText('logstash-readonly');
//await PageObjects.settings.clickLinkText('logstash-readonly');

const currentUrl = await browser.getCurrentUrl();
expect(currentUrl).to.contain(EDIT_ROLES_PATH);
});
Expand Down

0 comments on commit 1a012b3

Please sign in to comment.