Skip to content

Commit

Permalink
Add ftr test
Browse files Browse the repository at this point in the history
  • Loading branch information
yansavitski committed Nov 20, 2024
1 parent b66a80d commit 9f119f5
Showing 1 changed file with 9 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ export default function ({ getPageObjects, getService }: FtrProviderContext) {
});

describe('without any indices', () => {
it('hide no create index button when index added', async () => {
it('hide create index button when index added', async () => {
await createIndex();
await pageObjects.searchPlayground.PlaygroundStartChatPage.expectOpenFlyoutAndSelectIndex();
});
Expand All @@ -129,6 +129,14 @@ export default function ({ getPageObjects, getService }: FtrProviderContext) {
await pageObjects.searchPlayground.PlaygroundStartChatPage.expectToSelectIndicesAndLoadChat();
});

it('load start page after removing selected index', async () => {
await pageObjects.searchPlayground.PlaygroundStartChatPage.expectToSelectIndicesAndLoadChat();
await esArchiver.unload(esArchiveIndex);
await browser.refresh();
await pageObjects.searchPlayground.PlaygroundStartChatPage.expectPlaygroundStartChatPageComponentsToExist();
await pageObjects.searchPlayground.PlaygroundStartChatPage.expectCreateIndexButtonToExists();
});

after(async () => {
await removeOpenAIConnector?.();
await esArchiver.unload(esArchiveIndex);
Expand Down

0 comments on commit 9f119f5

Please sign in to comment.