Skip to content

Commit

Permalink
Fixing functional tests
Browse files Browse the repository at this point in the history
  • Loading branch information
davismcphee committed Oct 28, 2024
1 parent 2361172 commit 16c33cd
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -35,12 +35,12 @@ export default function ({ getService, getPageObjects }: FtrProviderContext) {
});
await discover.waitUntilSearchingHasFinished();
await unifiedFieldList.clickFieldListItemAdd('message');
let messageCell = await dataGrid.getCellElementExcludingControlColumns(0, 0);
let messageCell = await dataGrid.getCellElementExcludingControlColumns(0, 2);
await (await messageCell.findByTestSubject('exampleDataSourceProfileMessage')).click();
await testSubjects.existOrFail('exampleRootProfileFlyout');
let message = await testSubjects.find('exampleRootProfileCurrentMessage');
expect(await message.getVisibleText()).to.be('This is a debug log');
messageCell = await dataGrid.getCellElementExcludingControlColumns(1, 0);
messageCell = await dataGrid.getCellElementExcludingControlColumns(1, 2);
await (await messageCell.findByTestSubject('exampleDataSourceProfileMessage')).click();
await testSubjects.existOrFail('exampleRootProfileFlyout');
message = await testSubjects.find('exampleRootProfileCurrentMessage');
Expand All @@ -58,12 +58,12 @@ export default function ({ getService, getPageObjects }: FtrProviderContext) {
await dataViews.switchTo('my-example-logs');
await discover.waitUntilSearchingHasFinished();
await unifiedFieldList.clickFieldListItemAdd('message');
let messageCell = await dataGrid.getCellElementExcludingControlColumns(0, 1);
let messageCell = await dataGrid.getCellElementExcludingControlColumns(0, 2);
await (await messageCell.findByTestSubject('exampleDataSourceProfileMessage')).click();
await testSubjects.existOrFail('exampleRootProfileFlyout');
let message = await testSubjects.find('exampleRootProfileCurrentMessage');
expect(await message.getVisibleText()).to.be('This is a debug log');
messageCell = await dataGrid.getCellElementExcludingControlColumns(1, 1);
messageCell = await dataGrid.getCellElementExcludingControlColumns(1, 2);
await (await messageCell.findByTestSubject('exampleDataSourceProfileMessage')).click();
await testSubjects.existOrFail('exampleRootProfileFlyout');
message = await testSubjects.find('exampleRootProfileCurrentMessage');
Expand All @@ -79,12 +79,12 @@ export default function ({ getService, getPageObjects }: FtrProviderContext) {
await browser.refresh();
await header.waitUntilLoadingHasFinished();

messageCell = await dataGrid.getCellElementExcludingControlColumns(0, 1);
messageCell = await dataGrid.getCellElementExcludingControlColumns(0, 2);
await (await messageCell.findByTestSubject('exampleDataSourceProfileMessage')).click();
await testSubjects.existOrFail('exampleRootProfileFlyout');
message = await testSubjects.find('exampleRootProfileCurrentMessage');
expect(await message.getVisibleText()).to.be('This is a debug log');
messageCell = await dataGrid.getCellElementExcludingControlColumns(1, 1);
messageCell = await dataGrid.getCellElementExcludingControlColumns(1, 2);
await (await messageCell.findByTestSubject('exampleDataSourceProfileMessage')).click();
await testSubjects.existOrFail('exampleRootProfileFlyout');
message = await testSubjects.find('exampleRootProfileCurrentMessage');
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,12 +38,12 @@ export default function ({ getService, getPageObjects }: FtrProviderContext) {
});
await discover.waitUntilSearchingHasFinished();
await unifiedFieldList.clickFieldListItemAdd('message');
let messageCell = await dataGrid.getCellElementExcludingControlColumns(0, 0);
let messageCell = await dataGrid.getCellElementExcludingControlColumns(0, 2);
await (await messageCell.findByTestSubject('exampleDataSourceProfileMessage')).click();
await testSubjects.existOrFail('exampleRootProfileFlyout');
let message = await testSubjects.find('exampleRootProfileCurrentMessage');
expect(await message.getVisibleText()).to.be('This is a debug log');
messageCell = await dataGrid.getCellElementExcludingControlColumns(1, 0);
messageCell = await dataGrid.getCellElementExcludingControlColumns(1, 2);
await (await messageCell.findByTestSubject('exampleDataSourceProfileMessage')).click();
await testSubjects.existOrFail('exampleRootProfileFlyout');
message = await testSubjects.find('exampleRootProfileCurrentMessage');
Expand All @@ -61,12 +61,12 @@ export default function ({ getService, getPageObjects }: FtrProviderContext) {
await dataViews.switchTo('my-example-logs');
await discover.waitUntilSearchingHasFinished();
await unifiedFieldList.clickFieldListItemAdd('message');
let messageCell = await dataGrid.getCellElementExcludingControlColumns(0, 1);
let messageCell = await dataGrid.getCellElementExcludingControlColumns(0, 2);
await (await messageCell.findByTestSubject('exampleDataSourceProfileMessage')).click();
await testSubjects.existOrFail('exampleRootProfileFlyout');
let message = await testSubjects.find('exampleRootProfileCurrentMessage');
expect(await message.getVisibleText()).to.be('This is a debug log');
messageCell = await dataGrid.getCellElementExcludingControlColumns(1, 1);
messageCell = await dataGrid.getCellElementExcludingControlColumns(1, 2);
await (await messageCell.findByTestSubject('exampleDataSourceProfileMessage')).click();
await testSubjects.existOrFail('exampleRootProfileFlyout');
message = await testSubjects.find('exampleRootProfileCurrentMessage');
Expand All @@ -82,12 +82,12 @@ export default function ({ getService, getPageObjects }: FtrProviderContext) {
await browser.refresh();
await header.waitUntilLoadingHasFinished();

messageCell = await dataGrid.getCellElementExcludingControlColumns(0, 1);
messageCell = await dataGrid.getCellElementExcludingControlColumns(0, 2);
await (await messageCell.findByTestSubject('exampleDataSourceProfileMessage')).click();
await testSubjects.existOrFail('exampleRootProfileFlyout');
message = await testSubjects.find('exampleRootProfileCurrentMessage');
expect(await message.getVisibleText()).to.be('This is a debug log');
messageCell = await dataGrid.getCellElementExcludingControlColumns(1, 1);
messageCell = await dataGrid.getCellElementExcludingControlColumns(1, 2);
await (await messageCell.findByTestSubject('exampleDataSourceProfileMessage')).click();
await testSubjects.existOrFail('exampleRootProfileFlyout');
message = await testSubjects.find('exampleRootProfileCurrentMessage');
Expand Down

0 comments on commit 16c33cd

Please sign in to comment.