Skip to content

Commit 9e9d770

Browse files
authored
Merge branch 'staging' into copilot/merge-code-graph-repositories
2 parents ae44c91 + 88cbc05 commit 9e9d770

2 files changed

Lines changed: 5 additions & 8 deletions

File tree

e2e/logic/POM/codeGraph.ts

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -262,13 +262,10 @@ export default class CodeGraph extends BasePage {
262262
}
263263

264264
/* NavBar functionality */
265-
async clickOnFalkorDbLogo(): Promise<Page> {
265+
async clickOnFalkorDbLogo(): Promise<string | null> {
266266
await this.page.waitForLoadState('networkidle');
267-
const [newPage] = await Promise.all([
268-
this.page.waitForEvent('popup'),
269-
interactWhenVisible(this.falkorDBLogo, (el) => el.click(), 'FalkorDB Logo'),
270-
]);
271-
return newPage
267+
await interactWhenVisible(this.falkorDBLogo, async () => {}, 'FalkorDB Logo');
268+
return this.falkorDBLogo.getAttribute('href');
272269
}
273270

274271
async getNavBarItem(navItem: string): Promise<Page> {

e2e/tests/navBar.spec.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,8 @@ test.describe(' Navbar tests', () => {
1616

1717
test("Verify clicking on falkordb logo redirects to specified URL", async () => {
1818
const navBar = await browser.createNewPage(CodeGraph, urls.baseUrl)
19-
const page = await navBar.clickOnFalkorDbLogo();
20-
await expect(page).toHaveURL(urls.falkorDBUrl)
19+
const href = await navBar.clickOnFalkorDbLogo();
20+
expect(href).toContain('falkordb.com')
2121
})
2222

2323
const navitems: { navItem: string; expectedRes: string }[] = [

0 commit comments

Comments
 (0)