diff --git a/.github/workflows/playwright.yml b/.github/workflows/playwright.yml index 27863e1..b950e59 100644 --- a/.github/workflows/playwright.yml +++ b/.github/workflows/playwright.yml @@ -2,9 +2,9 @@ name: Playwright Tests on: push: - branches: master + branches: [ master, staging ] pull_request: - branches: master + branches: [ master, staging ] jobs: test: @@ -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() }} diff --git a/ui/app/components/dashboard.tsx b/ui/app/components/dashboard.tsx index ae2759e..8915695 100644 --- a/ui/app/components/dashboard.tsx +++ b/ui/app/components/dashboard.tsx @@ -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"], }); diff --git a/ui/tests/config/testData.ts b/ui/tests/config/testData.ts index b5d6303..9dec07e 100644 --- a/ui/tests/config/testData.ts +++ b/ui/tests/config/testData.ts @@ -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 }, ]; \ No newline at end of file diff --git a/ui/tests/tests/sideBar.spec.ts b/ui/tests/tests/sideBar.spec.ts index 9abaecd..f809fa9 100644 --- a/ui/tests/tests/sideBar.spec.ts +++ b/ui/tests/tests/sideBar.spec.ts @@ -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); - }); });