Skip to content

Commit

Permalink
Fixed flakiness with visualize custom role (#109077) (#109198)
Browse files Browse the repository at this point in the history
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>

Co-authored-by: Stratoula Kalafateli <efstratia.kalafateli@elastic.co>
  • Loading branch information
kibanamachine and stratoula authored Aug 19, 2021
1 parent eb73baa commit 638c3ed
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,8 @@ export default function ({ getPageObjects, getService }: FtrProviderContext) {
before(async () => {
await esArchiver.load('x-pack/test/functional/es_archives/visualize/default');
await esArchiver.loadIfNeeded('x-pack/test/functional/es_archives/logstash_functional');
// ensure we're logged out so we can login as the appropriate users
await PageObjects.security.forceLogout();
});

after(async () => {
Expand Down Expand Up @@ -81,7 +83,7 @@ export default function ({ getPageObjects, getService }: FtrProviderContext) {

it('shows visualize navlink', async () => {
const navLinks = (await appsMenu.readLinks()).map((link) => link.text);
expect(navLinks).to.eql(['Overview', 'Visualize Library', 'Stack Management']);
expect(navLinks).to.contain('Visualize Library');
});

it(`landing page shows "Create new Visualization" button`, async () => {
Expand Down

0 comments on commit 638c3ed

Please sign in to comment.