mirror of
https://github.com/elastic/kibana.git
synced 2025-04-23 09:19:04 -04:00
parent
b59bd97794
commit
37c81357b7
1 changed files with 11 additions and 4 deletions
|
@ -48,10 +48,17 @@ export default function({ getService, getPageObjects }: FtrProviderContext) {
|
|||
|
||||
it('shows all news from newsfeed', async () => {
|
||||
const objects = await PageObjects.newsfeed.getNewsfeedList();
|
||||
expect(objects).to.eql([
|
||||
'21 June 2019\nYou are functionally testing the newsfeed widget with fixtures!\nSee test/common/fixtures/plugins/newsfeed/newsfeed_simulation\nGeneric feed-viewer could go here',
|
||||
'21 June 2019\nStaging too!\nHello world\nGeneric feed-viewer could go here',
|
||||
]);
|
||||
|
||||
if (await PageObjects.common.isOss()) {
|
||||
expect(objects).to.eql([
|
||||
'21 June 2019\nYou are functionally testing the newsfeed widget with fixtures!\nSee test/common/fixtures/plugins/newsfeed/newsfeed_simulation\nGeneric feed-viewer could go here',
|
||||
'21 June 2019\nStaging too!\nHello world\nGeneric feed-viewer could go here',
|
||||
]);
|
||||
} else {
|
||||
// can't shim the API in cloud so going to check that at least something is rendered
|
||||
// to test that the API was called and returned something that could be rendered
|
||||
expect(objects.length).to.be.above(0);
|
||||
}
|
||||
});
|
||||
|
||||
it('clicking on newsfeed icon should close opened newsfeed', async () => {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue