-
Notifications
You must be signed in to change notification settings - Fork 8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Cases] Unskip MKI tests #168924
Merged
Merged
[Cases] Unskip MKI tests #168924
Changes from 3 commits
Commits
Show all changes
19 commits
Select commit
Hold shift + click to select a range
3478658
Change folder structure
cnasikas e033455
Wait for case to refresh
cnasikas 25c1241
Fix lens attachment in security
cnasikas fb6d2bf
Enable all tests
cnasikas 514a083
Wait for the dashboard page to appear
cnasikas a8a404a
Merge branch 'main' into fix_mki_tests
kibanamachine a55477e
Do not dismiss the toaster when asserting text
cnasikas 21fa260
Merge branch 'fix_mki_tests' of github.com:cnasikas/kibana into fix_m…
cnasikas c5fc71e
Merge branch 'main' into fix_mki_tests
kibanamachine e02f81d
Fix tests
cnasikas dcda4de
Merge branch 'fix_mki_tests' of github.com:cnasikas/kibana into fix_m…
cnasikas d21b925
Merge branch 'main' into fix_mki_tests
kibanamachine b6570bb
Merge branch 'main' into fix_mki_tests
cnasikas 334a51f
Unskip test
cnasikas 1125476
Merge branch 'fix_mki_tests' of github.com:cnasikas/kibana into fix_m…
cnasikas a37dfa0
Merge branch 'main' into fix_mki_tests
cnasikas ca5fc51
Merge branch 'main' into fix_mki_tests
kibanamachine d0dae9c
Delete dataviews before testing
cnasikas 9fbf05f
Merge branch 'main' into fix_mki_tests
kibanamachine File filter
Filter by extension
Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -18,11 +18,10 @@ export default ({ getPageObject, getService }: FtrProviderContext) => { | |
const esArchiver = getService('esArchiver'); | ||
const kibanaServer = getService('kibanaServer'); | ||
const cases = getService('cases'); | ||
const svlCases = getService('svlCases'); | ||
const find = getService('find'); | ||
|
||
describe('Cases persistable attachments', function () { | ||
// security_exception: action [indices:data/write/delete/byquery] is unauthorized for user [elastic] with effective roles [superuser] on restricted indices [.kibana_alerting_cases], this action is granted by the index privileges [delete,write,all] | ||
this.tags(['failsOnMKI']); | ||
describe('lens visualization', () => { | ||
before(async () => { | ||
await svlCommonPage.login(); | ||
|
@@ -32,18 +31,15 @@ export default ({ getPageObject, getService }: FtrProviderContext) => { | |
); | ||
|
||
await svlObltNavigation.navigateToLandingPage(); | ||
|
||
await svlCommonNavigation.sidenav.clickLink({ deepLinkId: 'dashboards' }); | ||
|
||
await dashboard.clickNewDashboard(); | ||
|
||
await lens.createAndAddLensFromDashboard({}); | ||
|
||
await dashboard.waitForRenderComplete(); | ||
}); | ||
|
||
after(async () => { | ||
await cases.api.deleteAllCases(); | ||
await svlCases.api.deleteAllCaseItems(); | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Needed to avoid permission errors when deleting directly a document from the |
||
|
||
await esArchiver.unload('x-pack/test/functional/es_archives/logstash_functional'); | ||
await kibanaServer.importExport.unload( | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
18 changes: 18 additions & 0 deletions
18
x-pack/test_serverless/functional/test_suites/observability/cases/index.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
/* | ||
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one | ||
* or more contributor license agreements. Licensed under the Elastic License | ||
* 2.0; you may not use this file except in compliance with the Elastic License | ||
* 2.0. | ||
*/ | ||
|
||
import { FtrProviderContext } from '../../../ftr_provider_context'; | ||
|
||
export default function ({ loadTestFile }: FtrProviderContext) { | ||
describe('Serverless Observability Cases', function () { | ||
loadTestFile(require.resolve('./attachment_framework')); | ||
loadTestFile(require.resolve('./view_case')); | ||
loadTestFile(require.resolve('./configure')); | ||
loadTestFile(require.resolve('./create_case_form')); | ||
loadTestFile(require.resolve('./list_view')); | ||
}); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We need to wait here for the case to be refreshed. Otherwise we get an 403 conflict error because the test is too fast.