All Downloads are FREE. Search and download functionalities are using the official Maven repository.

androidAndroidTest.tech.skot.core.components.TestSKWebView.kt Maven / Gradle / Ivy

There is a newer version: 1.2.9
Show newest version
package tech.skot.core.components

import kotlinx.coroutines.delay
import org.junit.Test
import tech.skot.core.SKLog
import tech.skot.view.tests.SKTestView
import tech.skot.view.tests.testComponent

class TestSKWebView : SKTestView() {

    @Test
    fun testRedirection() {
        val proxy = SKWebViewViewProxy(
            openUrlInitial = SKWebViewVC.OpenUrl(
                url = "https://www.casinomax.fr/actualites/casino-max-extra",
                onFinished = {
                    SKLog.d("@@@@@@@ finished !!!")
                }
            )
        )

        testComponent(proxy) {

            SKLog.d("@@@@  loading   !!")
            delay(4000)
            proxy.requestReload()
        }

    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy