-
Notifications
You must be signed in to change notification settings - Fork 143
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixing RHIDP-1075 (keycloak) and RHIDP-1074 (quay) (#901)
Signed-off-by: Gustavo Lira <guga.java@gmail.com>
- Loading branch information
1 parent
58e730c
commit 4f1c1b6
Showing
7 changed files
with
117 additions
and
43 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
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
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/plugins/quick-access-and-tech-radar.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 } from '@playwright/test'; | ||
import { HomePage } from '../../support/pages/HomePage'; | ||
import { Common } from '../../utils/Common'; | ||
import { UIhelper } from '../../utils/UIhelper'; | ||
import { TechRadar } from '../../support/pages/TechRadar'; | ||
|
||
// Pre-req: Enable backstage-plugin-tech-radar Plugin | ||
|
||
test.describe('Test Customized Quick Access and tech-radar plugin', () => { | ||
test.beforeEach(async ({ page }) => { | ||
const common = new Common(page); | ||
await common.loginAsGuest(); | ||
}); | ||
|
||
test('Verify Customized Quick Access', async ({ page }) => { | ||
const homePage = new HomePage(page); | ||
await homePage.verifyQuickAccess('COMMUNITY', 'Website', true); | ||
await homePage.verifyQuickAccess('MONITORING TOOLS', 'Grafana', true); | ||
await homePage.verifyQuickAccess('SECURITY TOOLS', 'Keycloak', true); | ||
}); | ||
|
||
test('Verify tech-radar', async ({ page }) => { | ||
const uiHelper = new UIhelper(page); | ||
const techRadar = new TechRadar(page); | ||
|
||
await uiHelper.openSidebar('Tech Radar'); | ||
await uiHelper.verifyHeading('Tech Radar'); | ||
await uiHelper.verifyHeading('Company Radar'); | ||
|
||
await techRadar.verifyRadarDetails('Languages', 'JavaScript'); | ||
await techRadar.verifyRadarDetails('Storage', 'AWS S3'); | ||
await techRadar.verifyRadarDetails('Frameworks', 'React'); | ||
await techRadar.verifyRadarDetails('Infrastructure', 'ArgoCD'); | ||
}); | ||
}); |
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,18 @@ | ||
import { Page, expect } from '@playwright/test'; | ||
|
||
export class TechRadar { | ||
page: Page; | ||
|
||
constructor(page: Page) { | ||
this.page = page; | ||
} | ||
|
||
async verifyRadarDetails(section: string, text: string) { | ||
const sectionLocator = this.page | ||
.locator(`h2:has-text("${section}")`) | ||
.locator('xpath=ancestor::*') | ||
.locator(`text=${text}`); | ||
await sectionLocator.scrollIntoViewIfNeeded(); | ||
await expect(sectionLocator).toBeVisible(); | ||
} | ||
} |
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
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