-
Notifications
You must be signed in to change notification settings - Fork 139
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Test automation] Configure and verify GitHub integration with Org da…
…ta fetching (#1336) * Added test file to verify the GitHub integration with Org data fetching * configuring the github organization integration * removed the names of the people in the group, leaving only the non-person user --------- Co-authored-by: Joseph Kim <joskim@redhat.com>
- Loading branch information
1 parent
ef76d0e
commit 8ff97cd
Showing
2 changed files
with
40 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
35 changes: 35 additions & 0 deletions
35
e2e-tests/playwright/e2e/github-integration-org-fetch.spec.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
import { test, Page } from '@playwright/test'; | ||
import { UIhelper } from '../utils/UIhelper'; | ||
import { Common, setupBrowser } from '../utils/Common'; | ||
|
||
let page: Page; | ||
test.describe.serial('GitHub integration with Org data fetching', () => { | ||
let common: Common; | ||
let uiHelper: UIhelper; | ||
|
||
test.beforeAll(async ({ browser }, testInfo) => { | ||
page = (await setupBrowser(browser, testInfo)).page; | ||
uiHelper = new UIhelper(page); | ||
common = new Common(page); | ||
await common.loginAsGithubUser(); | ||
}); | ||
|
||
test('Verify that fetching the groups of the org works', async () => { | ||
await uiHelper.openSidebar('Catalog'); | ||
await uiHelper.selectMuiBox('Kind', 'Group'); | ||
|
||
await uiHelper.searchInputPlaceholder('m'); | ||
await uiHelper.verifyRowsInTable(['maintainers']); | ||
|
||
await uiHelper.searchInputPlaceholder('r'); | ||
await uiHelper.verifyRowsInTable(['rhdh-qes']); | ||
}); | ||
|
||
test('Verify that fetching the users of the org works', async () => { | ||
await uiHelper.openSidebar('Catalog'); | ||
await uiHelper.selectMuiBox('Kind', 'User'); | ||
|
||
await uiHelper.searchInputPlaceholder('r'); | ||
await uiHelper.verifyRowsInTable(['rhdh-qe']); | ||
}); | ||
}); |