https://github.com/codeinwp/otter-blocks-qa-templates
https://github.com/codeinwp/otter-blocks-qa-templates
Last synced: 4 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/codeinwp/otter-blocks-qa-templates
- Owner: Codeinwp
- Created: 2022-03-03T10:14:56.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2022-11-08T14:46:41.000Z (over 2 years ago)
- Last Synced: 2024-05-30T16:53:42.025Z (about 1 year ago)
- Language: HTML
- Size: 508 KB
- Stars: 0
- Watchers: 2
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: readme.md
Awesome Lists containing this project
README
# Otter Tool Testing
> This tool insert blocks exports into the page.## Getting started
Use together with [Query Engine](https://github.com/Codeinwp/otter-query-engine)
You can use the chrome browser extension to add the script in every page. You can add the folder `chrome-extension` via [Developer Mode](https://developer.chrome.com/docs/extensions/mv3/faq/#:~:text=You%20can%20start%20by%20turning,a%20packaged%20extension,%20and%20more.)
## Concepts
Every folder in the `blocks` represent a source/database from which we can get the exported blocks. Every folder that is used a source/database must have `index.json` in which we list the available files and their features. See `blocks/index.json` as example.
The folders `sites` will contain exported sites, which will help to test mode advance blocks like Posts, Comparison Review.
## Offline support
We can host this folder to localhost on port 8085. When using the Query Engine, set `offline` as source.
Docker
```bash
docker run -d -v "$PWD:/web" -p 8085:8080 halverneus/static-file-server:latest
```## Chrome Extension Instally
#### Steps
1. Enable developer mode in **Tools > Extensions**. The toggle is in the top-right corner.

2. Load the extensions via **Load unpacked**

3. Select the **chrome-extension** folder
