Skip to content

Commit

Permalink
Modify test that checks if Copilot Capabilities are enabled when the …
Browse files Browse the repository at this point in the history
…privacy notice is "not set" (#1890)

<!-- Thank you for submitting a Pull Request. If you're new to
contributing to BCApps please read our pull request guideline below
* https://github.com/microsoft/BCApps/Contributing.md
-->
#### Summary <!-- Provide a general summary of your changes -->
Modify test that checks if Copilot Capabilities are enabled when the
privacy notice is "not set"

#### Work Item(s) <!-- Add the issue number here after the #. The issue
needs to be open and approved. Submitting PRs with no linked issues or
unapproved issues is highly discouraged. -->
Fixes
[AB#537341](https://dynamicssmb2.visualstudio.com/Dynamics%20SMB/_workitems/edit/537341/)
  • Loading branch information
DenLilleMand authored Aug 27, 2024
1 parent 23c9d98 commit f3bcac9
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ codeunit 132684 "Azure OpenAI Test"

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

[Test]
Expand Down

0 comments on commit f3bcac9

Please sign in to comment.