test(*): Skip tests relying on Azure AI in CI

This commit is contained in:
Josh Creek
2025-04-24 20:42:39 +01:00
parent cf907da7ba
commit cbe12cb7b0
+8 -1
View File
@@ -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.');