Skip to content

Commit

Permalink
chore(tests): missing awaits
Browse files Browse the repository at this point in the history
Signed-off-by: Daniel Villanueva <davillan@redhat.com>
  • Loading branch information
danivilla9 committed Nov 7, 2024
1 parent edbcb0c commit ca7b419
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/src/openshift-local-extension.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ test.describe.serial('Red Hat OpenShift Local extension verification', () => {
//checking settings/preferences assets
const preferencesPage = await settingsBar.openTabPage(PreferencesPage);
const preferencesTab = await preferencesPage.getTab();
preferencesTab.click();
await preferencesTab.click();
await playExpect(preferencesTab.getByLabel('Extension: Red Hat OpenShift Local')).not.toBeVisible(); //this step will fail
await playExpect(preferencesPage.getPage().getByRole('region', {name: 'Content'}).getByText('Extension: Red Hat OpenShift Local')).toBeVisible(); //this step will fail
});
Expand All @@ -150,7 +150,7 @@ test.describe.serial('Red Hat OpenShift Local extension verification', () => {
//checking settings/preferences assets
const preferencesPage = await settingsBar.openTabPage(PreferencesPage);
const preferencesTab = await preferencesPage.getTab();
preferencesTab.click();
await preferencesTab.click();
await playExpect(preferencesTab.getByLabel('Extension: Red Hat OpenShift Local')).toBeVisible();
await playExpect(preferencesPage.getPage().getByRole('region', {name: 'Content'}).getByText('Extension: Red Hat OpenShift Local')).toBeVisible();
});
Expand Down

0 comments on commit ca7b419

Please sign in to comment.