Skip to content

Commit

Permalink
Test call result only after preferences are discarded
Browse files Browse the repository at this point in the history
  • Loading branch information
pmerlet-at-didomi committed Jan 15, 2025
1 parent 7a711e5 commit e559cbe
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions test/ios/DidomiUITests/DidomiUITests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,6 @@ class DidomiUITests: XCTestCase {

tapButton(in: app, name: "reset")
tapButton(in: app, name: "showPreferences Purposes")
assertResult(in: app, name: "showPreferences Purposes", expected: "showPreferences Purposes-OK")

// Check opening of preferences
let preferencesButton = app.staticTexts["Agree to all"]
Expand All @@ -164,6 +163,7 @@ class DidomiUITests: XCTestCase {
// Close notice
preferencesButton.tap()

assertResult(in: app, name: "showPreferences Purposes", expected: "showPreferences Purposes-OK")
testLastEvent(app: app, name:"on_hide_notice")
}

Expand All @@ -172,7 +172,6 @@ class DidomiUITests: XCTestCase {

tapButton(in: app, name: "reset")
tapButton(in: app, name: "showPreferences Vendors")
assertResult(in: app, name: "showPreferences Vendors", expected: "showPreferences Vendors-OK")

// Check opening of vendors
let vendorsButton = app.staticTexts["Save"]
Expand All @@ -186,7 +185,8 @@ class DidomiUITests: XCTestCase {
let preferencesButton = app.staticTexts["Agree to all"]
preferencesButton.wait()
preferencesButton.tap()


assertResult(in: app, name: "showPreferences Vendors", expected: "showPreferences Vendors-OK")
testLastEvent(app: app, name:"on_hide_notice")
}

Expand Down

0 comments on commit e559cbe

Please sign in to comment.