Skip to content

Commit ded8132

Browse files
Run tests conditionally
Signed-off-by: Luis Valdes <[email protected]>
1 parent 46cd1e1 commit ded8132

File tree

12 files changed

+36
-0
lines changed

12 files changed

+36
-0
lines changed

typescript-sdk/apps/dojo/e2e/tests/mastraAgentLocalTests/agenticChatPage.spec.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@ import {
66
} from "../../test-isolation-helper";
77
import { AgenticChatPage } from "../../featurePages/AgenticChatPage";
88

9+
// Skip all tests in this file when CLOUD_AGENTS is set
10+
test.skip(!!process.env.CLOUD_AGENTS, 'Skipping MastraAgentLocal tests when CLOUD_AGENTS is set');
11+
912
test("[MastraAgentLocal] Agentic Chat sends and receives a message", async ({
1013
page,
1114
}) => {

typescript-sdk/apps/dojo/e2e/tests/mastraAgentLocalTests/sharedStatePage.spec.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
import { test, expect } from "@playwright/test";
22
import { SharedStatePage } from "../../featurePages/SharedStatePage";
33

4+
// Skip all tests in this file when CLOUD_AGENTS is set
5+
test.skip(!!process.env.CLOUD_AGENTS, 'Skipping MastraAgentLocal tests when CLOUD_AGENTS is set');
6+
47
test.describe("Shared State Feature", () => {
58
test("[MastraAgentLocal] should interact with the chat to get a recipe on prompt", async ({
69
page,

typescript-sdk/apps/dojo/e2e/tests/mastraAgentLocalTests/toolBasedGenUIPage.spec.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
import { test, expect } from "@playwright/test";
22
import { ToolBaseGenUIPage } from "../../featurePages/ToolBaseGenUIPage";
33

4+
// Skip all tests in this file when CLOUD_AGENTS is set
5+
test.skip(!!process.env.CLOUD_AGENTS, 'Skipping MastraAgentLocal tests when CLOUD_AGENTS is set');
6+
47
const pageURL =
58
"/mastra-agent-local/feature/tool_based_generative_ui";
69

typescript-sdk/apps/dojo/e2e/tests/middlewareStarterTests/agenticChatPage.spec.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@ import {
66
} from "../../test-isolation-helper";
77
import { AgenticChatPage } from "../../featurePages/AgenticChatPage";
88

9+
// Skip all tests in this file when CLOUD_AGENTS is set
10+
test.skip(!!process.env.CLOUD_AGENTS, 'Skipping Middleware Starter tests when CLOUD_AGENTS is set');
11+
912
test("[Middleware Starter] Testing Agentic Chat", async ({
1013
page,
1114
}) => {

typescript-sdk/apps/dojo/e2e/tests/serverStarterAllFeaturesTests/agenticChatPage.spec.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@ import {
66
} from "../../test-isolation-helper";
77
import { AgenticChatPage } from "../../featurePages/AgenticChatPage";
88

9+
// Skip all tests in this file when CLOUD_AGENTS is set
10+
test.skip(!!process.env.CLOUD_AGENTS, 'Skipping Server Starter all features tests when CLOUD_AGENTS is set');
11+
912
test("[Server Starter all features] Agentic Chat displays countdown from 10 to 1 with tick mark", async ({
1013
page,
1114
}) => {

typescript-sdk/apps/dojo/e2e/tests/serverStarterAllFeaturesTests/agenticGenUI.spec.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
import { test, expect } from "@playwright/test";
22
import { AgenticGenUIPage } from "../../pages/serverStarterAllFeaturesPages/AgenticUIGenPage";
33

4+
// Skip all tests in this file when CLOUD_AGENTS is set
5+
test.skip(!!process.env.CLOUD_AGENTS, 'Skipping Server Starter all features tests when CLOUD_AGENTS is set');
6+
47
test.describe("Agent Generative UI Feature", () => {
58
test("[Server Starter all features] should interact with the chat to get a planner on prompt", async ({
69
page,

typescript-sdk/apps/dojo/e2e/tests/serverStarterAllFeaturesTests/humanInTheLoopPage.spec.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
import { test, expect, waitForAIResponse, retryOnAIFailure } from "../../test-isolation-helper";
22
import { HumanInLoopPage } from "../../pages/serverStarterAllFeaturesPages/HumanInLoopPage";
33

4+
// Skip all tests in this file when CLOUD_AGENTS is set
5+
test.skip(!!process.env.CLOUD_AGENTS, 'Skipping Server Starter all features tests when CLOUD_AGENTS is set');
6+
47
test.describe("Human in the Loop Feature", () => {
58
test(" [Server Starter all features] should interact with the chat using predefined prompts and perform steps", async ({
69
page,

typescript-sdk/apps/dojo/e2e/tests/serverStarterAllFeaturesTests/predictiveStateUpdatePage.spec.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
import { test, expect, retryOnAIFailure, } from "../../test-isolation-helper";
22
import { PredictiveStateUpdatesPage } from "../../pages/serverStarterAllFeaturesPages/PredictiveStateUpdatesPage";
33

4+
// Skip all tests in this file when CLOUD_AGENTS is set
5+
test.skip(!!process.env.CLOUD_AGENTS, 'Skipping Server Starter all features tests when CLOUD_AGENTS is set');
6+
47
test.describe("Predictive Status Updates Feature", () => {
58
test("[Server Starter all features] should interact with agent and approve asked changes", async ({ page, }) => {
69
await retryOnAIFailure(async () => {

typescript-sdk/apps/dojo/e2e/tests/serverStarterAllFeaturesTests/sharedStatePage.spec.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
import { test, expect } from "@playwright/test";
22
import { SharedStatePage } from "../../featurePages/SharedStatePage";
33

4+
// Skip all tests in this file when CLOUD_AGENTS is set
5+
test.skip(!!process.env.CLOUD_AGENTS, 'Skipping Server Starter all features tests when CLOUD_AGENTS is set');
6+
47
test.describe("Shared State Feature", () => {
58
test("[Server Starter all features] should interact with the chat to get a recipe on prompt", async ({
69
page,

typescript-sdk/apps/dojo/e2e/tests/serverStarterAllFeaturesTests/toolBasedGenUIPage.spec.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
import { test, expect } from "@playwright/test";
22
import { ToolBaseGenUIPage } from "../../featurePages/ToolBaseGenUIPage";
33

4+
// Skip all tests in this file when CLOUD_AGENTS is set
5+
test.skip(!!process.env.CLOUD_AGENTS, 'Skipping Server Starter all features tests when CLOUD_AGENTS is set');
6+
47
const pageURL =
58
"/server-starter-all-features/feature/tool_based_generative_ui";
69

0 commit comments

Comments
 (0)