Pré-requisitos: Você precisa ter instalado
-> NodeJS
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 timeout = 2000; | |
/// <reference types="cypress" /> | |
describe("Hunt for PS5 in Saturn", () => { | |
it("should visit Saturn and check if PS5 is still out of stock", () => { | |
cy.visit("https://www.saturn.de/de/shop/playstation5.html").then(() => { | |
if (cy.get(".gdpr-cookie-layer__container", { timeout })) { | |
cy.get(".gdpr-cookie-layer__btn--submit--all").click({ timeout }); | |
} |
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 SpeechRecognition = webkitSpeechRecognition; | |
const SpeechGrammarList = webkitSpeechGrammarList; | |
const SpeechRecognitionEvent = webkitSpeechRecognitionEvent; | |
const recognition = new SpeechRecognition(); | |
const speechRecognitionList = new SpeechGrammarList(); | |
recognition.grammars = speechRecognitionList; | |
recognition.lang = 'pl-PL'; | |
recognition.continuous = true; |