Skip to content

Commit

Permalink
[ILM] Fix e2e tests
Browse files Browse the repository at this point in the history
  • Loading branch information
yuliacech committed Sep 18, 2024
1 parent 0045c12 commit 71ec3ba
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -166,6 +166,17 @@ export default function ({ getService, getPageObjects }: FtrProviderContext) {
});
});

it('View policy flyout', async () => {
const link = await findPolicyLinkInListView(POLICY_NAME);
await link.click();

await retry.waitFor('View policy flyout to be present', async () => {
return testSubjects.isDisplayed('policyFlyoutTitle');
});

await a11y.testAppSnapshot();
});

it('Add policy to index template modal', async () => {
await filterByPolicyName(POLICY_NAME);
const policyRow = await testSubjects.find(`policyTableRow-${POLICY_NAME}`);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,16 +8,11 @@
import expect from '@kbn/expect';
import { FtrProviderContext } from '../../ftr_provider_context';

const policyName = 'testPolicy1';

export default ({ getPageObjects, getService }: FtrProviderContext) => {
const pageObjects = getPageObjects(['common', 'indexLifecycleManagement']);
const log = getService('log');
const retry = getService('retry');
const esClient = getService('es');
const security = getService('security');
const deployment = getService('deployment');
const testSubjects = getService('testSubjects');

describe('Read only view', function () {
before(async () => {
Expand Down

0 comments on commit 71ec3ba

Please sign in to comment.