Skip to content

Instantly share code, notes, and snippets.

View stoefln's full-sized avatar

Stephan Petzl stoefln

View GitHub Profile
const path = require('path')
const webpack = require('webpack')
const nodeExternals = require('webpack-node-externals')
const SentryCliPlugin = require('@sentry/webpack-plugin')
const { getConfig } = require('./sentryconf')
const sentryConf = getConfig(require('./package.json').version)
console.log('Sentry conf: ', sentryConf)
const rules = [
const path = require('path')
const webpack = require('webpack')
const nodeExternals = require('webpack-node-externals')
const SentryCliPlugin = require('@sentry/webpack-plugin')
const package = require('./package.json')
const rules = [
{
test: /\.node$/,
use: 'node-loader'
Process: Electron OCR [647]
Path: /Volumes/*/Electron OCR.app/Contents/MacOS/Electron OCR
Identifier: app.electron-ocr
Version: 0.0.1 (0.0.1)
Code Type: X86-64 (Native)
Parent Process: ??? [1]
Responsible: Electron OCR [647]
User ID: 501
Date/Time: 2021-03-12 10:43:07.238 +0100
electron-rebuild rebuilding node-native-ocr with args [
'node',
'node-gyp',
'rebuild',
'--runtime=electron',
'--target=5.0.6',
'--arch=x64',
'--dist-url=https://www.electronjs.org/headers',
'--build-from-source',
'--devdir="/Users/steph/.electron-gyp"',
class HomeListScreenObject : NavigationScreenObject() {
fun clickSearchToolbar(): SearchScreenObject {
clickOn(R.id.toolbar)
return SearchScreenObject()
}
fun assertThat(assertionBlock: HomeListScreenAssertions.() -> Unit): HomeListScreenObject {
HomeListScreenAssertions().assertionBlock()
return this
@Test
fun shouldShowRecommendedOffers_whenComingBackAfterLogin() {
HomeListScreenObject()
.clickSearchToolbar()
.search("Java")
.clickFloatingLoginButton()
.fillCredentialsAndLogIn()
.assertThat { headerContains("10 ofertas recomendadas") }
}
fun shouldPassOnNoInternetScanTest() =
beforeTest {
activityTestRule.launchActivity(null)
}.afterTest {
// cleanup
}.run {
step("Open Next Screen") {
MainScreen {
nextButton {
isVisible()
@Test
fun testFirstFeature() {
mainScreen {
logoutButton {
isVisible()
click()
}
}
}
@Test
fun logout() {
onView(withId(R.id.logoutButton))
.check(ViewAssertions.matches(
ViewMatchers.withEffectiveVisibility(ViewMatchers.Visibility.VISIBLE)))
onView(withId(R.id.logoutButton)).perform(click())
}