forked from elastic/kibana
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Stateful sidenav] Functional tests helpers (elastic#189804)
- Loading branch information
Showing
28 changed files
with
849 additions
and
376 deletions.
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
Validating CODEOWNERS rules …
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
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,49 @@ | ||
/* | ||
* 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 and the Server Side Public License, v 1; you may not use this file except | ||
* in compliance with, at your election, the Elastic License 2.0 or the Server | ||
* Side Public License, v 1. | ||
*/ | ||
|
||
import type { FtrProviderContext } from '../ftr_provider_context'; | ||
|
||
export function EmbeddedConsoleProvider(ctx: FtrProviderContext) { | ||
const testSubjects = ctx.getService('testSubjects'); | ||
|
||
return { | ||
async expectEmbeddedConsoleControlBarExists() { | ||
await testSubjects.existOrFail('consoleEmbeddedSection'); | ||
}, | ||
async expectEmbeddedConsoleToBeOpen() { | ||
await testSubjects.existOrFail('consoleEmbeddedBody'); | ||
}, | ||
async expectEmbeddedConsoleToBeClosed() { | ||
await testSubjects.missingOrFail('consoleEmbeddedBody'); | ||
}, | ||
async clickEmbeddedConsoleControlBar() { | ||
await testSubjects.click('consoleEmbeddedControlBar'); | ||
}, | ||
async expectEmbeddedConsoleNotebooksButtonExists() { | ||
await testSubjects.existOrFail('consoleEmbeddedNotebooksButton'); | ||
}, | ||
async clickEmbeddedConsoleNotebooksButton() { | ||
await testSubjects.click('consoleEmbeddedNotebooksButton'); | ||
}, | ||
async expectEmbeddedConsoleNotebooksToBeOpen() { | ||
await testSubjects.existOrFail('consoleEmbeddedNotebooksContainer'); | ||
}, | ||
async expectEmbeddedConsoleNotebooksToBeClosed() { | ||
await testSubjects.missingOrFail('consoleEmbeddedNotebooksContainer'); | ||
}, | ||
async expectEmbeddedConsoleNotebookListItemToBeAvailable(id: string) { | ||
await testSubjects.existOrFail(`console-embedded-notebook-select-btn-${id}`); | ||
}, | ||
async clickEmbeddedConsoleNotebook(id: string) { | ||
await testSubjects.click(`console-embedded-notebook-select-btn-${id}`); | ||
}, | ||
async expectEmbeddedConsoleNotebookToBeAvailable(id: string) { | ||
await testSubjects.click(`console-embedded-notebook-select-btn-${id}`); | ||
}, | ||
}; | ||
} |
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.