From cbe12cb7b0f0427115df5a676cd1c3733a6c7546 Mon Sep 17 00:00:00 2001 From: Josh Creek <8179928+jcreek@users.noreply.github.com> Date: Thu, 24 Apr 2025 20:42:39 +0100 Subject: [PATCH] test(*): Skip tests relying on Azure AI in CI --- tests/bdd/steps/agentic_progress.steps.ts | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/tests/bdd/steps/agentic_progress.steps.ts b/tests/bdd/steps/agentic_progress.steps.ts index 54f55ef..77c66a9 100644 --- a/tests/bdd/steps/agentic_progress.steps.ts +++ b/tests/bdd/steps/agentic_progress.steps.ts @@ -1,7 +1,14 @@ -import { Given, When, Then } from '@cucumber/cucumber'; +import { Given, When, Then, Before } from '@cucumber/cucumber'; import { expect } from '@playwright/test'; import { UploadPage } from '../pages/UploadPage.ts'; +Before(function () { + if (process.env.AI_FOUNDRY_PROJECT_CONNECTION_STRING === 'test') { + console.log('Skipping in CI'); + return this.skip(); + } +}); + Given('I have submitted an assignment for assessment', async function () { await this.uploadPage.navigateTo(); await this.uploadPage.setTaskDescription('Write a short essay about climate change.');