Skip to content

Commit

Permalink
[vega test] update test to make service context defined
Browse files Browse the repository at this point in the history
  • Loading branch information
dmlemeshko committed May 26, 2021
1 parent 4d20dfb commit 152bdda
Showing 1 changed file with 7 additions and 11 deletions.
18 changes: 7 additions & 11 deletions test/functional/apps/visualize/_vega_chart.ts
Original file line number Diff line number Diff line change
Expand Up @@ -117,17 +117,13 @@ export default function ({ getPageObjects, getService }: FtrProviderContext) {
it('should contain "Statistics", "Request", "Response" tabs', async () => {
await inspector.openInspectorRequestsView();

for (const getFn of [
inspector.getOpenRequestDetailRequestButton,
inspector.getOpenRequestDetailResponseButton,
inspector.getOpenRequestStatisticButton,
]) {
await retry.try(async () => {
const requestStatisticTab = await getFn();

expect(await requestStatisticTab.isEnabled()).to.be(true);
});
}
await retry.try(async () => {
const detailRequestBtn = await inspector.getOpenRequestDetailRequestButton();
const detailResponseBtn = await inspector.getOpenRequestDetailResponseButton();
const requestStatsBtn = await inspector.getOpenRequestStatisticButton();
for (const btn of [detailRequestBtn, detailResponseBtn, requestStatsBtn])
expect(await btn.isEnabled()).to.be(true);
});
});

it('should set the default query name if not given in the schema', async () => {
Expand Down

0 comments on commit 152bdda

Please sign in to comment.