Skip to content

Commit

Permalink
Improved approach to handle maestro crash
Browse files Browse the repository at this point in the history
  • Loading branch information
amddg44 committed Oct 3, 2024
1 parent e0c6a10 commit 1f3da19
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 8 deletions.
8 changes: 0 additions & 8 deletions .maestro/release_tests/password-management.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -49,14 +49,6 @@ tags:

- tapOn: "Save"
- tapOn: "Passwords"

# Dismiss Sync Promo if visible
- runFlow:
when:
visible: "No Thanks"
commands:
- tapOn: "No Thanks"

- tapOn: "Settings"
- tapOn: "Done"

Expand Down
11 changes: 11 additions & 0 deletions DuckDuckGo/SyncPromoView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -24,13 +24,16 @@ import DuckUI
struct SyncPromoView: View {

let viewModel: SyncPromoViewModel
@State private var isAccessibilityHidden = true

var body: some View {
ZStack(alignment: .topTrailing) {
VStack(spacing: 8) {
Group {
Image(viewModel.image)
.scaledToFit()
.accessibilityHidden(true)

Text(viewModel.title)
.padding(.top, 4)
.frame(maxWidth: .infinity)
Expand Down Expand Up @@ -83,13 +86,21 @@ struct SyncPromoView: View {
.alignmentGuide(.top) { dimension in
dimension[.top]
}
.accessibilityHidden(true)
}
.background(
RoundedRectangle(cornerRadius: 8)
.foregroundColor(Color(designSystemColor: .surface))
)
.padding(.horizontal, 20)
.padding(.bottom, 12)
.accessibilityHidden(isAccessibilityHidden)
.onAppear {
// Delay accessibility activation for maestro
DispatchQueue.main.asyncAfter(deadline: .now() + 1.0) {
isAccessibilityHidden = false
}
}
}
}

Expand Down

0 comments on commit 1f3da19

Please sign in to comment.