chore(e2e): change e2e ports to some not used by immich-dev ()

use port not taken by immich-dev for e2e
This commit is contained in:
Jonathan Jogenfors 2024-08-30 14:04:02 +02:00 committed by GitHub
parent fa9b2219f8
commit aa04ded311
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
9 changed files with 18 additions and 18 deletions
e2e/src/api/specs

View file

@ -92,14 +92,14 @@ describe(`/oauth`, () => {
it('should return a redirect uri', async () => {
const { status, body } = await request(app)
.post('/oauth/authorize')
.send({ redirectUri: 'http://127.0.0.1:2283/auth/login' });
.send({ redirectUri: 'http://127.0.0.1:2285/auth/login' });
expect(status).toBe(201);
expect(body).toEqual({ url: expect.stringContaining(`${authServer.internal}/auth?`) });
const params = new URL(body.url).searchParams;
expect(params.get('client_id')).toBe('client-default');
expect(params.get('response_type')).toBe('code');
expect(params.get('redirect_uri')).toBe('http://127.0.0.1:2283/auth/login');
expect(params.get('redirect_uri')).toBe('http://127.0.0.1:2285/auth/login');
expect(params.get('state')).toBeDefined();
});
});