Skip to content

Commit

Permalink
Merge pull request #50 from FalkorDB/staging
Browse files Browse the repository at this point in the history
Staging
  • Loading branch information
Naseem77 authored Feb 20, 2025
2 parents b991545 + d8aa40d commit 5ff01c9
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 18 deletions.
8 changes: 5 additions & 3 deletions .github/workflows/playwright.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@ name: Playwright Tests

on:
push:
branches: master
branches: [ master, staging ]
pull_request:
branches: master
branches: [ master, staging ]

jobs:
test:
Expand All @@ -29,12 +29,14 @@ jobs:
- name: Install Playwright Browsers
run: npx playwright install --with-deps
- name: Set up environment and run tests
env:
NEXT_PUBLIC_HUBSPOT_PORTAL_ID: ${{ secrets.NEXT_PUBLIC_HUBSPOT_PORTAL_ID }}
NEXT_PUBLIC_HUBSPOT_FORM_ID: ${{ secrets.NEXT_PUBLIC_HUBSPOT_FORM_ID }}
run: |
npm run build
npm start &
npx playwright test --reporter=dot,list
# Step 6: Upload Playwright report
- name: Upload Playwright report
uses: actions/upload-artifact@v4
if: ${{ always() }}
Expand Down
2 changes: 1 addition & 1 deletion ui/app/components/dashboard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ export default function DashBoard() {
Vendors: ["falkordb", "neo4j"],
Clients: ["40"],
Throughput: ["2500"],
Hardware: ["intel"],
Hardware: ["arm"],
Queries: ["aggregate_expansion_4_with_filter"],
"Realistic Workload": ["1"],
});
Expand Down
9 changes: 4 additions & 5 deletions ui/tests/config/testData.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,12 @@ export const headerItems: { navItem: string; expectedRes: string }[] = [
];

export const sideBarItems: { item: string; expectedRes: boolean }[] = [
{ item: "MacBook", expectedRes: true },
{ item: "1000 m/s", expectedRes: true },
{ item: "40", expectedRes: true },
{ item: "INTEL", expectedRes: true },
{ item: "20", expectedRes: true },
{ item: "Neo4j", expectedRes: false },
];

export const hoverItems: { item: string; expectedRes: boolean }[] = [
{ item: "MacBook", expectedRes: true },
{ item: "Linux", expectedRes: true },
{ item: "ARM", expectedRes: true },
{ item: "INTEL", expectedRes: true },
];
9 changes: 0 additions & 9 deletions ui/tests/tests/sideBar.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -104,13 +104,4 @@ test.describe("SideBar tests", () => {
});
});

test(`Hover over 'Deadline Offset Analysis' link and validate its content`, async () => {
const sidebar = await browser.createNewPage(MainPage, urls.baseUrl);
await sidebar.hoverOnDeadlineInfoLink();
expect(await sidebar.isHoverElementVisible()).toBe(true);
const expectedText =
"Deadline Offset Analysis Comparison of the time delays (deadlines) between different vendors to evaluate their performance and responsiveness.";
const actualText = await sidebar.getDeadlineInfoLinkText();
expect(actualText).toBe(expectedText);
});
});

0 comments on commit 5ff01c9

Please sign in to comment.