Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
44 commits
Select commit Hold shift + click to select a range
9f3da2e
Scaffold API to seed using admin JWT
Strift Oct 1, 2025
b057ced
Add user login
Strift Oct 3, 2025
a3346dd
test: user without access wannot see plugin
Strift Oct 3, 2025
bdca4d7
Add todos for improving session validation
Strift Oct 3, 2025
3aed9a7
Extract setup login as functions
Strift Oct 8, 2025
ad7799f
Don't ignore playground
Strift Oct 8, 2025
6394a87
Update gitignore
Strift Oct 8, 2025
c004ac4
Update seeding
Strift Oct 8, 2025
0103f65
Add pre-seeded database
Strift Oct 8, 2025
ec53795
Update passwords
Strift Oct 8, 2025
1d6db06
Refactor tests using preseeded db
Strift Oct 8, 2025
e70e1c4
Fix plugin access
Strift Oct 8, 2025
9ef3ba2
update tests for read access
Strift Oct 8, 2025
3040b4a
Refactor indexing test
Strift Oct 8, 2025
a1f0f6f
Add tests for collection.create permission
Strift Oct 8, 2025
cc4de5e
Update database
Strift Oct 8, 2025
595bae4
Refactor tests for updating permission
Strift Oct 8, 2025
3c28450
Refactor tests for collections.delete permission
Strift Oct 8, 2025
3e8af29
Update database
Strift Oct 8, 2025
0c7ab8c
Refactor admin permission tests
Strift Oct 8, 2025
e3c6c5f
Cleanup preseeded db
Strift Oct 8, 2025
b2aedbf
Remove old tests
Strift Oct 8, 2025
03f5aa2
Update email and permission names
Strift Oct 9, 2025
3a9ab5b
Add collection indexing tests
Strift Oct 9, 2025
51dc0ef
Add indexed documents test
Strift Oct 9, 2025
3b7724f
Add comment
Strift Oct 9, 2025
b201e0d
Add editor role to can-manage user
Strift Oct 9, 2025
cf0660c
Add test for adding documents
Strift Oct 9, 2025
c7df168
Add test for reindexing after removal
Strift Oct 9, 2025
16cece8
Add test for disabling collection indexing
Strift Oct 9, 2025
a0f31b2
Update test for disabling collection indexing
Strift Oct 9, 2025
58114bb
Add indexing test for single content types
Strift Oct 9, 2025
68c23e9
Add test for empty host
Strift Oct 9, 2025
c0a3ce4
Add test about invalid host
Strift Oct 9, 2025
28fc9bd
Remove old test file
Strift Oct 9, 2025
f7168ff
Run tests only against Node v20.x
Strift Oct 9, 2025
6df24e8
Update node version for style checks
Strift Oct 9, 2025
77d332a
Seed database before running cypress tests
Strift Oct 17, 2025
38b8fab
Records tests to Cypress Cloud
Strift Oct 17, 2025
5b7a7a7
Run tests in parallel, add cypress record key
Strift Oct 17, 2025
51de80f
Add GH secret
Strift Oct 17, 2025
94c1210
Add projectId
Strift Oct 20, 2025
cef3d7b
Run tests sequentially
Strift Oct 20, 2025
b2c959d
Remove assertion chaining
Strift Oct 20, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions .cursor/rules/cypress.mdc
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
globs: cypress/**.*
alwaysApply: false
---

- The playground is already running, you don't need to start it
7 changes: 7 additions & 0 deletions .cursor/rules/general.mdc
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
description:
globs:
alwaysApply: true
---

- This project uses `ni` as package manager; use `nlx` to execute packages
8 changes: 4 additions & 4 deletions .github/workflows/beta-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,16 +4,16 @@ name: Beta tests
# Will only run for PRs and pushes to *-beta
on:
push:
branches: ['**-beta', '!bump-meilisearch-v[0-9]*.[0-9]*.[0-9]*-beta']
branches: ["**-beta", "!bump-meilisearch-v[0-9]*.[0-9]*.[0-9]*-beta"]
pull_request:
branches: ['**-beta', '!bump-meilisearch-v[0-9]*.[0-9]*.[0-9]*-beta']
branches: ["**-beta", "!bump-meilisearch-v[0-9]*.[0-9]*.[0-9]*-beta"]

jobs:
integration_tests:
runs-on: ubuntu-latest
strategy:
matrix:
node: ['18', '20']
node: ["20"]
name: integration-tests (Node.js ${{ matrix.node }})
steps:
- uses: actions/checkout@v4
Expand All @@ -30,7 +30,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
node: ['18', '20']
node: ["20"]
name: playground-build (Node.js ${{ matrix.node }})
steps:
- uses: actions/checkout@v4
Expand Down
18 changes: 14 additions & 4 deletions .github/workflows/cypress.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,18 +12,18 @@ jobs:
meilisearch:
image: getmeili/meilisearch:latest
env:
MEILI_MASTER_KEY: 'masterKey'
MEILI_NO_ANALYTICS: 'true'
MEILI_MASTER_KEY: "masterKey"
MEILI_NO_ANALYTICS: "true"
ports:
- '7700:7700'
- "7700:7700"

steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup node
uses: actions/setup-node@v4
with:
node-version: '20.x'
node-version: "20.x"
cache: yarn
- name: Cache dependencies
uses: actions/cache@v3
Expand All @@ -46,13 +46,23 @@ jobs:
cd ..
yarn --cwd ./playground install

- name: Seed playground database
run: |
mkdir -p playground/.tmp
yarn playground:setup

- name: Run e2e browser tests
uses: cypress-io/github-action@v6
with:
build: yarn playground:build
start: yarn playground:dev
env: env=ci
browser: chrome
record: true
env:
CYPRESS_RECORD_KEY: ${{ secrets.CYPRESS_RECORD_KEY }}
# Allows Cypress to detect new build vs re-run build
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}

- uses: actions/upload-artifact@v4
if: failure()
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/pre-release-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
node: ['18', '20']
node: ["20"]
name: integration-tests (Node.js ${{ matrix.node }})
steps:
- uses: actions/checkout@v4
Expand All @@ -30,7 +30,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
node: ['18', '20']
node: ["20"]
name: playground-build (Node.js ${{ matrix.node }})
steps:
- uses: actions/checkout@v4
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
node: ['18', '20']
node: ["20"]
name: integration-tests (Node.js ${{ matrix.node }})
steps:
- uses: actions/checkout@v4
Expand All @@ -39,7 +39,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
node: ['18', '20']
node: ["20"]
name: playground-build (Node.js ${{ matrix.node }})
steps:
- uses: actions/checkout@v4
Expand Down Expand Up @@ -71,7 +71,7 @@ jobs:
- name: Setup node
uses: actions/setup-node@v4
with:
node-version: '18.x'
node-version: "20.x"
- name: Cache dependencies
uses: actions/cache@v3
with:
Expand Down
11 changes: 4 additions & 7 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ $RECYCLE.BIN/
# Logs and databases
############################

# .tmp
.tmp
*.log
*.sql
*.sqlite
Expand Down Expand Up @@ -125,11 +125,6 @@ cypress/videos
cypress/plugins
cypress/fixtures

playground/src/plugins

# Sqlite Database from the playground
data.db

############################
# Local
############################
Expand All @@ -138,5 +133,7 @@ data.db
.prettierrc.js
.vscode

dist

dist
# Keep the sqlite database for tests
!playground/.tmp/data.db
1 change: 1 addition & 0 deletions cypress.config.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
const { defineConfig } = require('cypress')

module.exports = defineConfig({
projectId: 'vu3oo5',
env: {
user: {
email: '[email protected]',
Expand Down
Loading
Loading