Image assertion (Vision)

You can assert image using these functions.

functions

function
imageIs

Sample code

Getting samples

AssertingImage1.kt

(src/test/kotlin/tutorial/basic/AssertingImage1.kt)

    @Test
    @Order(10)
    fun imageIs() {

        scenario {
            case(1) {
                condition {
                    it.macro("[Android Settings Top Screen]")
                }.action {
                    v1 = it.detect("Network & internet")
                        .leftItem()
                }.expectation {
                    v1.imageIs("[Network & internet Icon]")
                }
            }
        }
    }

Link