Comments (1)
Hi, @readlui! We're sorry, that you find system dialogs interceptor harmful. If you look into it's code you'll find that it checks whether any android system UI elements are present. If so, it tries to close them. Probably, there's a keyboard in your tests (it has the same package as other system UI elements). If so, configure kaspresso to ignore it by setting SystemDialogsSafetyParams
in the kaspresso builder:
class AllureSupportTest : TestCase(
kaspressoBuilder = Kaspresso.Builder.withForcedAllureSupport {
systemDialogsSafetyParams = SystemDialogsSafetyParams(shouldIgnoreKeyboard = true)
}
) {
//...
{
If the issue still presists, then exclude interceptor entirely:
class AllureSupportTest : TestCase(
kaspressoBuilder = Kaspresso.Builder.withForcedAllureSupport().apply {
dataBehaviorInterceptors.removeIf { it is SystemDialogSafetyProvider }
deviceBehaviorInterceptors.removeIf { it is SystemDialogSafetyProvider }
objectBehaviorInterceptors.removeIf { it is SystemDialogSafetyProvider }
webBehaviorInterceptors.removeIf { it is SystemDialogSafetyProvider }
viewBehaviorInterceptors.removeIf { it is SystemDialogSafetyProvider }
}
) {
//...
}
from kaspresso.
Related Issues (20)
- Update Kaspresso version in README and Docs HOT 1
- Use single interface in the screenshot tests
- If adbserver receives two commands at the same time it drops the first one
- Allure tests without videos
- New version of adbserver-dekstop.jar doesnt work and requires modern version HOT 1
- Kaspresso runner doen't hande crashes HOT 1
- Копировать артефакты после завершения теста по таймауту
- Update ui automator
- Can't take screenshot in compose project tests
- Kaspresso rewrite original stack on internal espresso errors
- Easy way to toggle multiple interceptors
- Unresolved reference for flakySafely HOT 1
- Migrate to kotlin 2.0.0 and gradle 8.7
- Missed clean FlakySafeSemanticsBehaviorInterceptor when removing flakySafely intrceptors inside FlakySafeInterceptorScalpel
- com.kaspersky.kaspresso.flakysafety.FlakySafetyProviderGlobalImpl#flakySafely() missing try catch statement
- com.kaspersky.kaspresso.flakysafety.scalpel.ScalpelSwitcher work incorrect with nested flakySafely
- Permissions.allowViaDialog() only works for PERMISSIONS.Button.ALLOW
- Permissions.Button needs additional objects for new options.
- WRITE_EXTERNAL_STORAGE cannot be granted at DocLocScreenshotTestCase for 29+ API devices
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from kaspresso.