Skip to content

Commit

Permalink
test organize
Browse files Browse the repository at this point in the history
  • Loading branch information
tsullivan committed Feb 18, 2021
1 parent 5dd3e14 commit 780bbfe
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@ export default async function ({ readConfigFile }: FtrConfigProviderContext) {
testFiles: [
resolve(__dirname, './tests/apps/dashboard/async_search'),
resolve(__dirname, './tests/apps/discover'),
resolve(__dirname, './tests/apps/management/search_sessions'),
resolve(__dirname, './tests/apps/lens'),
resolve(__dirname, './tests/apps/management/search_sessions'),
],

kbnTestServer: {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ export default function ({ loadTestFile, getService, getPageObjects }: FtrProvid
const PageObjects = getPageObjects(['common']);
const searchSessions = getService('searchSessions');

describe('async search', function () {
describe('Dashboard', function () {
this.tags('ciGroup3');

before(async () => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ export default function ({ loadTestFile, getService, getPageObjects }: FtrProvid
const PageObjects = getPageObjects(['common']);
const searchSessions = getService('searchSessions');

describe('async search', function () {
describe('Discover', function () {
this.tags('ciGroup3');

before(async () => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@ export default function ({ getService, getPageObjects }: FtrProviderContext) {
const appsMenu = getService('appsMenu');
const managementMenu = getService('managementMenu');

describe('Search sessions Management UI permissions', () => {
describe('Sessions management is not available if non of apps enable search sessions', () => {
describe('Search Sessions Management UI permissions', () => {
describe('Sessions management is not available', () => {
before(async () => {
await security.role.create('data_analyst', {
elasticsearch: {},
Expand Down Expand Up @@ -56,13 +56,13 @@ export default function ({ getService, getPageObjects }: FtrProviderContext) {
await PageObjects.security.forceLogout();
});

it('Sessions management is not available if non of apps enable search sessions', async () => {
it('if no apps enable search sessions', async () => {
const links = await appsMenu.readLinks();
expect(links.map((link) => link.text)).to.not.contain('Stack Management');
});
});

describe('Sessions management is available if one of apps enables search sessions', () => {
describe('Sessions management is available', () => {
before(async () => {
await security.role.create('data_analyst', {
elasticsearch: {},
Expand Down Expand Up @@ -95,7 +95,7 @@ export default function ({ getService, getPageObjects }: FtrProviderContext) {
await PageObjects.security.forceLogout();
});

it('Sessions management is available if one of apps enables search sessions', async () => {
it('if one app enables search sessions', async () => {
const links = await appsMenu.readLinks();
expect(links.map((link) => link.text)).to.contain('Stack Management');
await PageObjects.common.navigateToApp('management');
Expand Down

0 comments on commit 780bbfe

Please sign in to comment.