Sebastian Martinez
205fc814bc
Bring reactions to comments and issues
...
Signed-off-by: Sebastian Martinez <me@sebastinez.dev >
2023-07-12 15:36:02 +02:00
Sebastian Martinez
28718ba0cf
Add --alias to rad auth
...
To avoid the popping up of a terminal input field during the
globalFixture setup, we need to pass the wanted alias as a flag.
Signed-off-by: Sebastian Martinez <me@sebastinez.dev >
2023-07-12 15:36:02 +02:00
Sebastian Martinez
6e3bcc1998
Update heartwood version
...
Signed-off-by: Sebastian Martinez <me@sebastinez.dev >
2023-07-12 15:36:02 +02:00
Thomas Scholtes
d0a280be02
Simplify project route resolving
...
Signed-off-by: Thomas Scholtes <geigerzaehler@axiom.fm >
2023-07-12 15:24:06 +02:00
Sebastian Martinez
9294e23ea4
Update patch review schemas
...
To address changes to patch code review,
implemented in Heartwood in commit 45e87a6.
Signed-off-by: Sebastian Martinez <me@sebastinez.dev >
2023-07-11 13:59:23 +02:00
Sebastian Martinez
145169d03d
Changes necessary for heartwood update
...
Signed-off-by: Sebastian Martinez <me@sebastinez.dev >
2023-07-11 13:59:23 +02:00
Thomas Scholtes
f3e5b47124
Don’t replace path on internal navigation
...
We don’t replace the path when we navigate internally. This means we
keep the hash part of the URL even if it is not part of the route and we
can remove the workaround for that.
This also means that we keep the original URL if the parsed route would
result in a different URL. This change is visible through a slight
adjustments in the tests.
Signed-off-by: Thomas Scholtes <geigerzaehler@axiom.fm >
2023-07-09 14:46:26 +02:00
Sebastian Martinez
db94969f8a
Allow httpd API ports to be generated randomly.
...
To avoid port collisions between tests that can eventually run in
parallel, we need to be able to generate random port numbers.
This commit generates random httpd port numbers for inline tests,
while keeping the current palm seed with the default port number 8080.
Signed-off-by: Sebastian Martinez <me@sebastinez.dev >
2023-07-09 14:19:47 +02:00
Thomas Scholtes
999a3a4c30
Use non-dev port for webserver during end-to-end tests
...
The end-to-end tests no run against the app served on port 3001 so that
we don’t need to shut down the development server.
Signed-off-by: Thomas Scholtes <geigerzaehler@axiom.fm >
2023-07-09 13:54:24 +02:00
Thomas Scholtes
d7442d23ae
Add tests for projectRouteToPath
...
Signed-off-by: Thomas Scholtes <geigerzaehler@axiom.fm >
2023-07-09 13:34:11 +02:00
Thomas Scholtes
092f8ad774
Don’t leave line selected when switching blobs
...
Fixes #906
Signed-off-by: Thomas Scholtes <geigerzaehler@axiom.fm >
2023-07-07 07:41:51 +02:00
Sebastian Martinez
91f5abafd3
Add a UI test flow for issues
...
Tests:
- Authentication
- Issue creation
- Title editing
- Commenting
- Reply to comment
- Issue state change
Signed-off-by: Sebastian Martinez <me@sebastinez.dev >
2023-07-05 13:48:42 +02:00
Sebastian Martinez
555d4da30c
Fix some style regressions in patch view
...
Signed-off-by: Sebastian Martinez <me@sebastinez.dev >
2023-07-04 16:33:17 +02:00
Sebastian Martinez
e0261fe69e
Add more comments and replies and a rejected review to the test fixtures
...
Signed-off-by: Sebastian Martinez <me@sebastinez.dev >
2023-07-04 14:52:51 +02:00
Sebastian Martinez
0cd42908e5
Add error handling for issue creation and commenting
...
Signed-off-by: Sebastian Martinez <me@sebastinez.dev >
2023-07-04 14:14:29 +02:00
Sebastian Martinez
3e797a2d08
Make a globalSetup for the httpd-client tests
...
Signed-off-by: Sebastian Martinez <me@sebastinez.dev >
2023-07-04 09:56:23 +02:00
Sebastian Martinez
78663937d1
Add ability to stop test nodes and httpds
...
Signed-off-by: Sebastian Martinez <me@sebastinez.dev >
2023-07-04 09:56:23 +02:00
Sebastian Martinez
e5dccba3ff
Teardown hanging processes in Vitest
...
After setting up the global env for the httpd:api tests, there were
tests hanging until the timeout of 10 seconds killed them.
By returning an async function from the globalSetup we can kill them
preemptively.
Signed-off-by: Sebastian Martinez <me@sebastinez.dev >
2023-07-04 09:56:23 +02:00
Thomas Scholtes
c6afc56beb
Test that route building and parsing leave routes invariant
...
We replace the tests for `routeToPath` with a test that calls
`pathToRoute(routeToPath(route))`. These test do not only cover the
assertions of the previous tests but also check an important invariant
for route parsing and building.
I’m not using `test.each` here because this makes the tests less
readable.
Signed-off-by: Thomas Scholtes <geigerzaehler@axiom.fm >
2023-07-03 13:24:00 +02:00
Sebastian Martinez
9f40fd85b7
Sort projects in seed project listing visual test
...
Signed-off-by: Sebastian Martinez <me@sebastinez.dev >
2023-06-30 10:02:02 +02:00
Sebastian Martinez
c04d399cf3
Revert HTML tag escaping
...
Signed-off-by: Sebastian Martinez <me@sebastinez.dev >
2023-06-30 10:01:14 +02:00
Sebastian Martinez
dbad9ddeef
Remove hack for happy-dom
...
The update to happy-dom 8.0 did remove the need to do the assignment
hack in `setupVitest`
source: https://github.com/vitest-dev/vitest/issues/2305#issuecomment-1396387954
Signed-off-by: Sebastian Martinez <me@sebastinez.dev >
2023-06-30 07:24:30 +02:00
Thomas Scholtes
40f2b3e516
Tests automatically use heartwood binaries from local test folder
...
It’s not necessary anymore to add the folder with the heartwood test
binaries to `PATH` before running the end-to-end tests.
Signed-off-by: Thomas Scholtes <geigerzaehler@axiom.fm >
2023-06-29 11:34:53 +02:00
Rūdolfs Ošiņš
4c101c2567
Move Blob loading into router
...
Signed-off-by: Rūdolfs Ošiņš <rudolfs@osins.org >
2023-06-28 17:07:04 +02:00
Sebastian Martinez
742a8eb1ef
Add spec for expanding commit message
...
Signed-off-by: Sebastian Martinez <me@sebastinez.dev >
2023-06-28 15:45:01 +02:00
Sebastian Martinez
f971d777f2
Add missing moved and copied file operations to Changeset
...
Signed-off-by: Sebastian Martinez <me@sebastinez.dev >
2022-11-17 17:50:19 +01:00
Rūdolfs Ošiņš
3f7a58c489
Handle app URL translation into seed BaseUrl in one place
...
To make the code easier to reason about we handle all app URL encoding
and decoding and the related seed BaseUrl extraction in a single place.
Signed-off-by: Rūdolfs Ošiņš <rudolfs@osins.org >
2023-06-28 10:51:59 +02:00
Sebastian Martinez
0e6be19373
Add patch reviewers in sidebar
...
Signed-off-by: Sebastian Martinez <me@sebastinez.dev >
2023-06-27 17:23:37 +02:00
Sebastian Martinez
31be78144f
Fix padding issues of project headers on mobile
...
Signed-off-by: Sebastian Martinez <me@sebastinez.dev >
2023-06-27 10:19:56 +02:00
Sebastian Martinez
ba57506d6d
Update svelte to version 4
...
Signed-off-by: Sebastian Martinez <me@sebastinez.dev >
2023-06-26 14:13:22 +02:00
Sebastian Martinez
ecabe9b7a8
Escape html tags in marked found outside of code blocks
...
Signed-off-by: Sebastian Martinez <me@sebastinez.dev >
2023-06-26 13:00:20 +02:00
Sebastian Martinez
2c886ea274
Add margin between comment threads in issue view
...
Adds also a root level comment to the cobFixture to avoid margin
regressions between root level comments
Signed-off-by: Sebastian Martinez <me@sebastinez.dev >
2023-06-19 14:07:43 +02:00
Sebastian Martinez
6fbc453fd4
Update heartwood-version
...
Signed-off-by: Sebastian Martinez <me@sebastinez.dev >
2023-06-19 13:33:40 +02:00
Sebastian Martinez
4df9810088
Rename hostnamePort to hostAndPort
...
Signed-off-by: Sebastian Martinez <me@sebastinez.dev >
2023-06-14 16:19:05 +02:00
Sebastian Martinez
52cece4680
Handle custom httpd port
...
We only supported fetching the default httpd port (8080).
This commit removes navigation to `radicle.local` which represents
`0.0.0.0:8080`, and prepares the app for defining custom port.
Signed-off-by: Sebastian Martinez <me@sebastinez.dev >
2023-06-14 16:17:21 +02:00
Sebastian Martinez
4fcb7373a3
Add more tests to revision selector
...
Signed-off-by: Sebastian Martinez <me@sebastinez.dev >
2023-06-14 09:21:09 +02:00
Rūdolfs Ošiņš and Thomas Scholtes
a331721c9f
Move project source browsing loading into the router
...
Co-authored-by: Thomas Scholtes <geigerzaehler@axiom.fm >
Signed-off-by: Rūdolfs Ošiņš <rudolfs@osins.org >
2023-06-13 14:24:27 +02:00
Sebastian Martinez
107696c3c9
Add a cobs fixture and issue and patch tests
...
Signed-off-by: Sebastian Martinez <me@sebastinez.dev >
2023-06-08 11:13:28 +02:00
Rūdolfs Ošiņš
28ea7724d3
Fix build
...
I broke it in https://github.com/radicle-dev/radicle-interface/pull/804 .
Signed-off-by: Rūdolfs Ošiņš <rudolfs@osins.org >
2023-06-06 10:07:50 +02:00
Sebastian Martinez
889b13303b
Extract markdown from source-browsing fixture
...
Signed-off-by: Sebastian Martinez <me@sebastinez.dev >
2023-06-05 15:08:32 +02:00
xphoniex
c3346575ee
Show number of nodes tracking a repo
...
Signed-off-by: xphoniex <dj.2dixx@gmail.com >
2023-06-02 13:11:27 +00:00
Sebastian Martinez
2c11e9e520
Display a seed URL that matches isLocal as radicle.local
...
Signed-off-by: Sebastian Martinez <me@sebastinez.dev >
2023-06-02 10:29:41 +02:00
Sebastian Martinez and Rūdolfs Ošiņš
c230731ce0
Redesign Connect button to reflect httpd status
...
Co-authored-by: Rūdolfs Ošiņš <rudolfs@osins.org >
Signed-off-by: Sebastian Martinez <me@sebastinez.dev >
Signed-off-by: Rūdolfs Ošiņš <rudolfs@osins.org >
2023-06-01 14:49:22 +02:00
Sebastian Martinez
99f27350c1
Fix out-of-state commit listing when refreshing page after push
...
Signed-off-by: Sebastian Martinez <me@sebastinez.dev >
2023-06-01 10:09:12 +02:00
Sebastian Martinez
277c8d23fd
Add peerManager to e2e tests fixture
...
Signed-off-by: Sebastian Martinez <me@sebastinez.dev >
2023-06-01 10:03:36 +02:00
Rūdolfs Ošiņš
17a8696c34
Update dependencies
...
Signed-off-by: Rūdolfs Ošiņš <rudolfs@osins.org >
2023-05-31 15:03:03 +02:00
Sebastian Martinez
d5d665f070
Reduce e2e tests flakiness
...
Signed-off-by: Sebastian Martinez <me@sebastinez.dev >
2023-05-23 10:56:47 +02:00
Sebastian Martinez
bb9ea851fc
Use Raw button to navigate to raw file
...
For toggling Markdown view, we add a button that either shows `Plain` or
`Markdown`.
Signed-off-by: Sebastian Martinez <me@sebastinez.dev >
2023-05-17 12:15:29 +02:00
Rūdolfs Ošiņš
e41a12d663
Separate global project header from source browsing header
...
Signed-off-by: Rūdolfs Ošiņš <rudolfs@osins.org >
2023-05-15 17:07:48 +02:00
Sebastian Martinez
ab139cea8d
Add more sleep to branch creations
...
Signed-off-by: Sebastian Martinez <me@sebastinez.dev >
2023-05-15 12:17:37 +02:00