-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Account Settings Cleanup - Support / FAQ / Email (2U) (#198)
* chore: add faq, open in browser screen * chore: merge develop to branch * chore: add new links Cookie Policy, Do Not Sell my Personal Information and refactor * chore: add folder subviews to profile * chore: add support language to support urls * chore: add create button * chore: add tests * chore: fix language local * chore: changes PR feedback * chore: change strings * chore: change strings * chore: changes from PR feedback * chore: add progress to web browser * chore: show always progress when web page loading * chore: add show progress param to web browser
- Loading branch information
1 parent
7647134
commit e58a7cd
Showing
12 changed files
with
567 additions
and
314 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
// | ||
// AgreementConfigTests.swift | ||
// CoreTests | ||
// | ||
// Created by Eugene Yatsenko on 14.12.2023. | ||
// | ||
|
||
import XCTest | ||
@testable import Core | ||
|
||
class AgreementConfigTests: XCTestCase { | ||
|
||
private let privacy = "https://www.example.com/privacy" | ||
private let tos = "https://www.example.com/tos" | ||
private let dataSellContent = "https://www.example.com/sell" | ||
private let cookie = "https://www.example.com/cookie" | ||
private let supportedLanguages = ["es"] | ||
|
||
private lazy var properties: [String: Any] = [ | ||
"AGREEMENT_URLS": [ | ||
"PRIVACY_POLICY_URL": privacy, | ||
"TOS_URL": tos, | ||
"DATA_SELL_CONSENT_URL": dataSellContent, | ||
"COOKIE_POLICY_URL": cookie, | ||
"SUPPORTED_LANGUAGES": supportedLanguages | ||
] | ||
] | ||
|
||
func testAgreementConfigInitialization() { | ||
let config = Config(properties: properties) | ||
|
||
XCTAssertEqual(config.agreement.privacyPolicyURL, URL(string: privacy)) | ||
XCTAssertEqual(config.agreement.tosURL, URL(string: tos)) | ||
XCTAssertEqual(config.agreement.cookiePolicyURL, URL(string: cookie)) | ||
XCTAssertEqual(config.agreement.dataSellContentURL, URL(string: dataSellContent)) | ||
XCTAssertEqual(config.agreement.supportedLanguages, supportedLanguages) | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.