This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var express = require('express') | |
var router = express.Router() | |
router.get('/', (req, res) => { | |
res.send("hello") | |
}) | |
module.exports = router |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Sample React Native App | |
* https://github.com/facebook/react-native | |
* | |
* @format | |
* @flow | |
* @lint-ignore-every XPLATJSCOPYRIGHT1 | |
*/ | |
import React, {Component} from 'react'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Feature: Appium | |
Scenario: Successful render alert | |
Given I am in app home page | |
When I click on "Pressione" button | |
Then I see the alert |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"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" |