- Популярные видео
- Авто
- Видео-блоги
- ДТП, аварии
- Для маленьких
- Еда, напитки
- Животные
- Закон и право
- Знаменитости
- Игры
- Искусство
- Комедии
- Красота, мода
- Кулинария, рецепты
- Люди
- Мото
- Музыка
- Мультфильмы
- Наука, технологии
- Новости
- Образование
- Политика
- Праздники
- Приколы
- Природа
- Происшествия
- Путешествия
- Развлечения
- Ржач
- Семья
- Сериалы
- Спорт
- Стиль жизни
- ТВ передачи
- Танцы
- Технологии
- Товары
- Ужасы
- Фильмы
- Шоу-бизнес
- Юмор
Solve Phrasle Using Cypress
In this video, I test the Phrasle.com game using Cypress test runner. I pull the answer to the daily Phrasle from the Remix context object, then enter the letters into the game, and then check that it was solved.
cy.visit('/')
.its('__remixContext.routeData.routes/index.answer')
.then(function (answer) {
const letters = answer
.split('')
.filter(function (c) { return c.match(/[a-z]/) })
letters.forEach(function (letter) {
cy.contains('.Key', letter).click()
})
})
cy.contains('.stat-todaysGame-info', 'PERFECT').should(
'be.visible',
)
Find the source code in https://github.com/bahmutov/cypress-react-app-actions/pull/1 For more, see my other videos about solving the Wordle game using Cypress and check out repo https://github.com/bahmutov/cypress-wordle
Видео Solve Phrasle Using Cypress канала gleb bahmutov
cy.visit('/')
.its('__remixContext.routeData.routes/index.answer')
.then(function (answer) {
const letters = answer
.split('')
.filter(function (c) { return c.match(/[a-z]/) })
letters.forEach(function (letter) {
cy.contains('.Key', letter).click()
})
})
cy.contains('.stat-todaysGame-info', 'PERFECT').should(
'be.visible',
)
Find the source code in https://github.com/bahmutov/cypress-react-app-actions/pull/1 For more, see my other videos about solving the Wordle game using Cypress and check out repo https://github.com/bahmutov/cypress-wordle
Видео Solve Phrasle Using Cypress канала gleb bahmutov
Комментарии отсутствуют
Информация о видео
7 февраля 2022 г. 22:59:58
00:05:10
Другие видео канала




















