import React, { useState } from 'react';
const RegisterPage = () => {
  const [name, setName] = useState('');
  const [email, setEmail] = useState('');
  const [cpf, setCpf] = useState('');
  
    
      This file contains hidden or 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 express = require('express'); | |
| const axios = require('axios'); | |
| const cheerio = require('cheerio'); | |
| const app = express(); | |
| app.get('/', (req, res) => { | |
| res.send('Hello World!'); | |
| }); | |
| app.get('/scrape', (req, res) => { | 
  
    
      This file contains hidden or 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
    
  
  
    
  | describe('Login e registro de usuário usando o alura-pic', () => { | |
| beforeEach(() => { | |
| cy.visit('http://alura-fotos.herokuapp.com') | |
| }) | |
| it('verifica mensagens validacao ', () => { | |
| cy.contains('a','Register now').click(); | |
| cy.wait(1000) | 
  
    
      This file contains hidden or 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
    
  
  
    
  | /* | |
| Vai achar todas as palavras que começarem com "km" dentro do texto "str" e então exibir 6 caracteres a partir do | |
| indice (index) da palavra. | |
| */ | |
| var str = 'Congestionamento no km 205 da BR-101 e deslizamento no km 559 da br-367 ' | |
| str = str.trim() // tira os espaço em branco antes e depois | |
| var palavraEscolhida = 'km' | |
| var tamanhoDaPalavraEscolhida = palavraEscolhida.length | 
  
    
      This file contains hidden or 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 livros = [ | |
| {nome: 'Liderança em Design ', id : 1, src: ''}, | |
| {nome: 'Javascript assertivo ', id : 2, src: ''}, | |
| {nome: 'Cangeceiro em Javascript ', id : 3, src: ''}, | |
| {nome: 'Aventureiros do Java ', id : 4, src: ''}, | |
| ] | |
| var textoDigitado = 'Lid' | |
| const resultadoPesquisa = livros.filter( livro => livro.nome.includes(textoDigitado) ) | 
NewerOlder
        