Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[AI] Fix test and reenable some tests #2185

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@ codeunit 132684 "Azure OpenAI Test"
DeploymentTxt: Label 'deploymentid', Locked = true;

[Test]
[HandlerFunctions('HandleCopilotNotAvailable')]
procedure TestIsEnabledRejectPrivacyNotice()
var
PrivacyNotice: Codeunit "Privacy Notice";
Expand All @@ -38,7 +37,7 @@ codeunit 132684 "Azure OpenAI Test"
RegisterCapability(Enum::"Copilot Capability"::"Text Capability");

// [WHEN] IsEnabled is called
// [THEN] IsEnabled opens "Copilot Not Available" page and also returns false
// [THEN] IsEnabled returns true
LibraryAssert.IsTrue(AzureOpenAI.IsEnabled(Enum::"Copilot Capability"::"Text Capability"), 'IsEnabled should return true when privacy notice is "Not Set" and not in geo.');
end;

Expand Down
18 changes: 0 additions & 18 deletions src/System Application/Test/DisabledTests/AzureOpenAITest.json
Original file line number Diff line number Diff line change
@@ -1,22 +1,4 @@
[
{
"bug": "488815",
"codeunitId": 132684,
"CodeunitName": "Azure OpenAI Test",
"Method": "TestIsEnabledRejectPrivacyNotice"
},
{
"bug": "488815",
"codeunitId": 132684,
"CodeunitName": "Azure OpenAI Test",
"Method": "TestIsEnabledPrivacyNoticeAccepted"
},
{
"bug": "488815",
"codeunitId": 132684,
"CodeunitName": "Azure OpenAI Test",
"Method": "TestIsEnabledPrivacyNoticeDisagreed"
},
{
"bug": "488815",
"codeunitId": 132684,
Expand Down
Loading