AutoGPT is the vision of accessible AI for everyone, to use and to build on. Our mission is to provide the tools, so that you can focus on what matters.
feat(ci): add integration test job and rename e2e test job (#11820)
Abhimanyu Yadavfc87ed4e34de
diff --git a/.github/workflows/platform-frontend-ci.yml b/.github/workflows/platform-frontend-ci.ymlindex fb7a55055e..499bb03170 100644--- a/.github/workflows/platform-frontend-ci.yml+++ b/.github/workflows/platform-frontend-ci.yml@@ -128,7 +128,7 @@ jobs:token: ${{ secrets.GITHUB_TOKEN }}exitOnceUploaded: true- test:+ e2e_test:runs-on: big-boineeds: setupstrategy:@@ -258,3 +258,39 @@ jobs:- name: Print Final Docker Compose logsif: always()run: docker compose -f ../docker-compose.yml logs++ integration_test:+ runs-on: ubuntu-latest+ needs: setup++ steps:+ - name: Checkout repository+ uses: actions/checkout@v4+ with:+ submodules: recursive++ - name: Set up Node.js+ uses: actions/setup-node@v4+ with:+ node-version: "22.18.0"++ - name: Enable corepack+ run: corepack enable++ - name: Restore dependencies cache+ uses: actions/cache@v4+ with:+ path: ~/.pnpm-store+ key: ${{ needs.setup.outputs.cache-key }}+ restore-keys: |+ ${{ runner.os }}-pnpm-${{ hashFiles('autogpt_platform/frontend/pnpm-lock.yaml') }}+ ${{ runner.os }}-pnpm-++ - name: Install dependencies+ run: pnpm install --frozen-lockfile++ - name: Generate API client+ run: pnpm generate:api++ - name: Run Integration Tests+ run: pnpm test:unitdiff --git a/autogpt_platform/frontend/src/app/(platform)/marketplace/components/MainMarketplacePage/__tests__/main.test.tsx b/autogpt_platform/frontend/src/app/(platform)/marketplace/components/MainMarketplacePage/__tests__/main.test.tsxnew file mode 100644index 0000000000..bee227a7af--- /dev/null+++ b/autogpt_platform/frontend/src/app/(platform)/marketplace/components/MainMarketplacePage/__tests__/main.test.tsx@@ -0,0 +1,15 @@+import { expect, test } from "vitest";+import { render, screen } from "@/tests/integrations/test-utils";+import { MainMarkeplacePage } from "../MainMarketplacePage";+import { server } from "@/mocks/mock-server";+import { getDeleteV2DeleteStoreSubmissionMockHandler422 } from "@/app/api/__generated__/endpoints/store/store.msw";++// Only for CI testing purpose, will remove it in future PR+test("MainMarketplacePage", async () => {+ server.use(getDeleteV2DeleteStoreSubmissionMockHandler422());++ render(<MainMarkeplacePage />);+ expect(+ await screen.findByText("Featured agents", { exact: false }),+ ).toBeDefined();+});