You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
"trueText": "The text that is to be shown when the query result is true, only useful for ASK queries.",
94
-
"falseText": "The text that is to be shown when the query result is true, only useful for ASK queries."
112
+
"trueText": "The text that is to be shown when the query result is true (in ASK queries).",
113
+
"falseText": "The text that is to be shown when the query result is false (in ASK queries)."
95
114
}
96
-
}
97
-
...
115
+
},
116
+
... etc
98
117
]
99
118
}
100
119
```
@@ -166,63 +185,44 @@ They've already got styling matching that of `react-admin` and are easy to use.
166
185
167
186
`Warning` if you change the record object, the changed will still be present in the next render.
168
187
169
-
## Testing with local pods
188
+
## Using the local pods
170
189
171
-
To create a local pod with which you can test for example authentication you can follow the following steps:
190
+
To support the provided example configuration `src/config.json` and the tests, this repo integrates some local pods.
191
+
You can make use of these for your own tests. Follow these steps:
172
192
173
193
- Add your data and `.acl` files in the `initial-pod-data` folder.
174
194
These files will be available in the pod relative to `http://localhost:8080/example/`.
175
-
We already added files to support the example queries in the configuration file.
176
195
- Prepare the pods by executing `npm run prepare:pods`.
177
-
- Start the pods by executing `npm run start:pods`.
178
-
- Add your query as described in [the configuration file section](#configuration-file).
179
-
We already added some example queries in the default configuration file `src/config.json`.
180
-
- Log in with the IDP `http://localhost:8080` and the credentials for the user owning the pod named `example` in the file `seeded-pod-config.json`.
181
-
182
-
## Using a local http proxy
183
-
184
-
To use a local http proxy through which the requests will be rerouted execute the following command:
185
-
186
-
```bash
187
-
npm run start:proxy
188
-
```
189
-
190
-
which will start a proxy on port `8000`.
191
196
192
197
## Testing
193
198
194
-
For testing we use [Cypress](https://www.cypress.io/).
199
+
For testing we use [Cypress](https://www.cypress.io/). To test, follow the next steps:
195
200
196
-
1. Prepare and start the Community Solid Server with the available pods as explained in the [Testing with local pods section](#testing-with-local-pods).
201
+
1. Prepare and start the local pods:
197
202
198
203
```bash
199
204
npm run prepare:pods && npm run start:pods
200
205
```
201
206
202
-
Keep the server running.
203
-
204
-
2. Start the Web application
207
+
2. In a new terminal window, start the Web application:
205
208
206
209
```bash
207
210
npm run dev
208
211
```
209
212
210
-
Also keep this process running.
211
-
3. Start the http proxy
213
+
3. In a new terminal window, start the http proxy:
212
214
213
215
```bash
214
216
npm run start:proxy
215
217
```
216
218
217
-
4.Start a server which denies all cors header
219
+
4.In a new terminal window, start a server which denies all CORS headers:
218
220
219
221
```bash
220
222
npm run start:badCors
221
223
```
222
224
223
-
This process must also be active throughout the tests.
224
-
225
-
5. Finally, you can execute the tests by running
225
+
5. Finally, in a new terminal window, you can execute the tests by running:
0 commit comments