mirror of
https://github.com/immich-app/immich
synced 2025-11-14 17:36:12 +00:00
parent
37f5e6e2cb
commit
dab4870fed
2 changed files with 1 additions and 2 deletions
|
|
@ -142,7 +142,7 @@ describe(`/oauth`, () => {
|
||||||
it(`should throw an error if the state mismatches`, async () => {
|
it(`should throw an error if the state mismatches`, async () => {
|
||||||
const callbackParams = await loginWithOAuth('oauth-auto-register');
|
const callbackParams = await loginWithOAuth('oauth-auto-register');
|
||||||
const { state } = await loginWithOAuth('oauth-auto-register');
|
const { state } = await loginWithOAuth('oauth-auto-register');
|
||||||
const { status, body } = await request(app)
|
const { status } = await request(app)
|
||||||
.post('/oauth/callback')
|
.post('/oauth/callback')
|
||||||
.send({ ...callbackParams, state });
|
.send({ ...callbackParams, state });
|
||||||
expect(status).toBeGreaterThanOrEqual(400);
|
expect(status).toBeGreaterThanOrEqual(400);
|
||||||
|
|
|
||||||
|
|
@ -55,7 +55,6 @@ test.describe('Shared Links', () => {
|
||||||
await page.goto(`/share/${sharedLink.key}`);
|
await page.goto(`/share/${sharedLink.key}`);
|
||||||
await page.getByRole('heading', { name: 'Test Album' }).waitFor();
|
await page.getByRole('heading', { name: 'Test Album' }).waitFor();
|
||||||
await page.getByRole('button', { name: 'Download' }).click();
|
await page.getByRole('button', { name: 'Download' }).click();
|
||||||
await page.getByText('DOWNLOADING', { exact: true }).waitFor();
|
|
||||||
await page.waitForEvent('download');
|
await page.waitForEvent('download');
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue