Skip to content

Instantly share code, notes, and snippets.

@miggitymac
miggitymac / docker-compose-wp.yml
Created September 21, 2024 03:30
A docker compose file for wordpress:latest, wp-cli, and mariadb
services:
wp:
container_name: ${NAME}-wp
depends_on:
- db
image: wordpress:latest
user: 1000:1000
volumes:
- plugins:/var/www/html/wp-content/plugins
- mu-plugins:/var/www/html/wp-content/mu-plugins
@miggitymac
miggitymac / capybara cheat sheet
Created December 13, 2016 21:30 — forked from zhengjia/capybara cheat sheet
capybara cheat sheet
=Navigating=
visit('/projects')
visit(post_comments_path(post))
=Clicking links and buttons=
click_link('id-of-link')
click_link('Link Text')
click_button('Save')
click('Link Text') # Click either a link or a button
click('Button Value')