[8.5] Fix time for logs smoke tests in integration test (#145130) (#145183)

# Backport

This will backport the following commits from `main` to `8.5`:
- [Fix time for logs smoke tests in integration test
(#145130)](https://github.com/elastic/kibana/pull/145130)

<!--- Backport version: 8.9.7 -->

### Questions ?
Please refer to the [Backport tool
documentation](https://github.com/sqren/backport)

<!--BACKPORT [{"author":{"name":"Bhavya
RM","email":"bhavya@elastic.co"},"sourceCommit":{"committedDate":"2022-11-14T20:49:47Z","message":"Fix
time for logs smoke tests in integration test
(#145130)","sha":"fdfeda4192df7c2129573cf53c761a3cab752884","branchLabelMapping":{"^v8.6.0$":"main","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["Team:QA","release_note:skip","backport:prev-minor","v8.6.0"],"number":145130,"url":"https://github.com/elastic/kibana/pull/145130","mergeCommit":{"message":"Fix
time for logs smoke tests in integration test
(#145130)","sha":"fdfeda4192df7c2129573cf53c761a3cab752884"}},"sourceBranch":"main","suggestedTargetBranches":[],"targetPullRequestStates":[{"branch":"main","label":"v8.6.0","labelRegex":"^v8.6.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/145130","number":145130,"mergeCommit":{"message":"Fix
time for logs smoke tests in integration test
(#145130)","sha":"fdfeda4192df7c2129573cf53c761a3cab752884"}}]}]
BACKPORT-->

Co-authored-by: Bhavya RM <bhavya@elastic.co>
This commit is contained in:
Kibana Machine 2022-11-14 16:42:26 -05:00 committed by GitHub
parent de0247ff39
commit e1605243ba
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -9,7 +9,7 @@ import expect from '@kbn/expect';
import { FtrProviderContext } from '../../ftr_provider_context';
export default function ({ getPageObjects, getService }: FtrProviderContext) {
const PageObjects = getPageObjects(['common', 'header', 'home']);
const PageObjects = getPageObjects(['common', 'header', 'home', 'timePicker']);
const logsUi = getService('logsUi');
describe('upgrade logs smoke tests', function describeIndexTests() {
@ -27,6 +27,7 @@ export default function ({ getPageObjects, getService }: FtrProviderContext) {
await PageObjects.header.waitUntilLoadingHasFinished();
await PageObjects.home.launchSampleLogs('logs');
await PageObjects.header.waitUntilLoadingHasFinished();
await PageObjects.timePicker.setCommonlyUsedTime('Last_1 year');
});
it('should show log streams', async () => {