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
it('has introduction text', async () => { | |
// Use the browser selector method to get the heading | |
// See docs for details https://webdriver.io/docs/selectors.html | |
const paragraph = await browser.$('p') | |
await expect(paragraph.getText()).resolves.toEqual('Edit src/App.js and save to reload.') | |
}) |
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
import React, { Component } from 'react' | |
const todosUrl = 'http://localhost:3001/todos' | |
function Todo ({ number, todo }) { | |
return ( | |
<li>{number}. { todo.title }</li> | |
) | |
} |
OlderNewer