Skip to content

Instantly share code, notes, and snippets.

View katagaki's full-sized avatar
🤹
多忙

katagaki

🤹
多忙
  • Tokyo, Japan
  • 17:30 (UTC +09:00)
View GitHub Profile
@katagaki
katagaki / cy.exist conditional testing.js
Created March 24, 2024 22:34 — forked from Phenomite/cy.exist conditional testing.js
cy.exist function to allow existence checking conditional testing
// Anti-pattern conditional testing with Cypress
// Uses jQuery functionality to determine existence
// Add to your support folder
Cypress.Commands.add("exist", (selector) => {
cy.get('body').should('exist').then(($body) => {
return new Cypress.Promise((resolve, reject) => {
if ($body.find(selector).length > 0) {
console.log("cy.exist() - Matching element found in DOM!");
resolve(true);
@katagaki
katagaki / Readme.md
Last active February 11, 2024 08:28 — forked from cunneen/Readme.md
Install Open GApps In Android Emulator

Introduction

This works to install Open GApps into the Android Emulator, working around the issue where the system partition is too small.

With it, I can get Google Play installing into the emulator. Tested on KitKat (API 19), Lollipop (API 21) and Oreo (API 27).

It's tested on MacOS.

Prerequisites