Skip to content

Commit

Permalink
tests: wait for Jaeger tile before trying to click
Browse files Browse the repository at this point in the history
  • Loading branch information
spadgett committed Aug 13, 2020
1 parent deedd36 commit a523886
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,7 @@ describe('Interacting with an `AllNamespaces` install mode Operator (Jaeger)', (
await catalogView.categoryTabsPresent();
await catalogView.categoryTabs.get(0).click();
await catalogPageView.clickFilterCheckbox(customProviderUID);
await browser.wait(until.visibilityOf(catalogPageView.catalogTileByID(jaegerTileID)));
await catalogPageView.catalogTileByID(jaegerTileID).click();
await browser.wait(until.visibilityOf(operatorHubView.operatorModalInstallBtn));
await operatorHubView.operatorModalInstallBtn.click();
Expand All @@ -123,8 +124,7 @@ describe('Interacting with an `AllNamespaces` install mode Operator (Jaeger)', (
await browser.get(`${appHost}/operatorhub/ns/${testName}`);
await crudView.isLoaded();
await catalogPageView.clickFilterCheckbox('installState-installed');

expect(catalogPageView.catalogTileByID(jaegerTileID).isDisplayed()).toBe(true);
await browser.wait(until.visibilityOf(catalogPageView.catalogTileByID(jaegerTileID)));
});

it(`displays Operator in "Cluster Service Versions" view for "${testName}" namespace`, async () => {
Expand Down Expand Up @@ -220,6 +220,7 @@ describe('Interacting with an `AllNamespaces` install mode Operator (Jaeger)', (
await crudView.isLoaded();
await catalogPageView.clickFilterCheckbox(customProviderUID);
await catalogPageView.clickFilterCheckbox('installState-installed');
await browser.wait(until.visibilityOf(catalogPageView.catalogTileByID(jaegerTileID)));
await catalogPageView.catalogTileByID(jaegerTileID).click();
await operatorHubView.operatorModalIsLoaded();

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -113,8 +113,7 @@ describe('Interacting with a `OwnNamespace` install mode Operator (Prometheus)',
await crudView.isLoaded();
await catalogPageView.clickFilterCheckbox(customProviderUID);
await catalogPageView.clickFilterCheckbox('installState-installed');

expect(catalogPageView.catalogTileByID(prometheusTileID).isDisplayed()).toBe(true);
await browser.wait(until.visibilityOf(catalogPageView.catalogTileByID(prometheusTileID)));
});

it(`displays Operator in "Cluster Service Versions" view for "${testName}" namespace`, async () => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -58,4 +58,4 @@ export const acceptForeverCommunityWarningModal = () =>
.then(() => acceptCommunityWarningModal());
export const viewInstalledOperatorsBtn = $('[data-test="view-installed-operators-btn"]');
export const operatorInstallPageLoaded = () =>
browser.wait(until.presenceOf(viewInstalledOperatorsBtn), 20000);
browser.wait(until.presenceOf(viewInstalledOperatorsBtn), 60000);

0 comments on commit a523886

Please sign in to comment.