Skip to content

Instantly share code, notes, and snippets.

View KarineValenca's full-sized avatar
🐿️

Karine Valença KarineValenca

🐿️
  • Paris
View GitHub Profile
var express = require('express')
var router = express.Router()
router.get('/', (req, res) => {
res.send("hello")
})
module.exports = router
/**
* Sample React Native App
* https://github.com/facebook/react-native
*
* @format
* @flow
* @lint-ignore-every XPLATJSCOPYRIGHT1
*/
import React, {Component} from 'react';
const wd = require('wd');
const assert = require('assert');
const { Before, Given, When, Then, After } = require('cucumber');
const PORT = 4723;
const config = {
platformName: 'Android',
deviceName: 'Android Emulator',
app: './android/app/build/outputs/apk/debug/app-debug.apk', // relative to root of project
Feature: Appium
Scenario: Successful render alert
Given I am in app home page
When I click on "Pressione" button
Then I see the alert
{
"name": "CucumberTutorial",
"version": "0.0.1",
"private": true,
"scripts": {
"start": "node node_modules/react-native/local-cli/cli.js start",
"test": "jest",
"appium": "appium",
"appium-doctor": "appium-doctor",
"cucumber": "cucumber-js"