Skip to content

Commit

Permalink
Fix / update tests (#122)
Browse files Browse the repository at this point in the history
* update vendor detail

* update CurrentUserStatus content

* update github action versions
  • Loading branch information
nicolas-chaix-didomi authored Jul 15, 2024
1 parent 996c160 commit 141bddb
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -105,12 +105,12 @@ jobs:

# Authenticate Cloud SDK
- id: 'auth'
uses: 'google-github-actions/auth@v1'
uses: 'google-github-actions/auth@v2'
with:
credentials_json: ${{ secrets.GCP_CREDENTIALS }}

- name: Setup Cloud SDK
uses: google-github-actions/setup-gcloud@v1
uses: google-github-actions/setup-gcloud@v2
with:
project_id: ${{ secrets.FIREBASE_PROJECT_ID }}

Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -105,12 +105,12 @@ jobs:

# Authenticate Cloud SDK
- id: 'auth'
uses: 'google-github-actions/auth@v1'
uses: 'google-github-actions/auth@v2'
with:
credentials_json: ${{ secrets.GCP_CREDENTIALS }}

- name: Setup Cloud SDK
uses: google-github-actions/setup-gcloud@v1
uses: google-github-actions/setup-gcloud@v2
with:
project_id: ${{ secrets.FIREBASE_PROJECT_ID }}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ class UIGettersParamsTest: BaseUITest() {
assertTextContains("\"id\":\"ipromote\"")
assertTextContains("\"name\":\"2KDirect, Inc. (dba iPromote)\"")
assertTextContains("\"purposeIds\":[\"cookies\",\"create_ads_profile\",\"select_personalized_ads\"")
assertTextContains("\"specialPurposeIds\":[\"1\",\"2\"]")
assertTextContains("\"specialPurposeIds\":[\"1\",\"2\",\"3\"]")
}

@Test
Expand Down
4 changes: 2 additions & 2 deletions testApp/ios/DidomiExampleUITests/DidomiExampleUITests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -351,8 +351,8 @@ class DidomiExampleUITests: XCTestCase {
XCTAssertTrue(actual.contains("\"addtl_consent\":\"\""))
XCTAssertTrue(actual.contains("\"consent_string\":\""))
XCTAssertTrue(actual.contains("\"purposes\":{\""))
XCTAssertTrue(actual.contains("\"measure_content_performance\":")) // Key
XCTAssertTrue(actual.contains("\"id\":\"measure_content_performance\"")) // Value - id only because id/enabled can change position
XCTAssertTrue(actual.contains("\"measure_ad_performance\":")) // Key
XCTAssertTrue(actual.contains("\"id\":\"measure_ad_performance\"")) // Value - id only because id/enabled can change position
XCTAssertTrue(actual.contains("\"vendors\":{\""))
XCTAssertTrue(actual.contains("\"ipromote\":")) // Key
XCTAssertTrue(actual.contains("\"id\":\"ipromote\"")) // Value - id only because id/enabled can change position
Expand Down

0 comments on commit 141bddb

Please sign in to comment.