[legal-api-links] Load Terms of Use and Privacy Policy from Atomenta API
Terms and Privacy screens now fetch the real PediFoods customer PDFs from the backend instead of showing static placeholder text. Also surfaces both links on the Profile screen below the version label, not just during registration.
This commit is contained in:
12
Tests/PediFoodsTests/LegalDocumentTests.swift
Normal file
12
Tests/PediFoodsTests/LegalDocumentTests.swift
Normal file
@@ -0,0 +1,12 @@
|
||||
import Testing
|
||||
@testable import PediFoods
|
||||
|
||||
@Test("Terms URL points to PediFoods customer terms endpoint")
|
||||
func termsURL() {
|
||||
#expect(LegalDocument.terms.url.absoluteString == "https://atomenta.com.br/api/public/pedi-foods-customer/terms")
|
||||
}
|
||||
|
||||
@Test("Privacy policy URL points to PediFoods customer privacy-policy endpoint")
|
||||
func privacyPolicyURL() {
|
||||
#expect(LegalDocument.privacyPolicy.url.absoluteString == "https://atomenta.com.br/api/public/pedi-foods-customer/privacy-policy")
|
||||
}
|
||||
Reference in New Issue
Block a user