Skip to content

Commit

Permalink
cleanup comments, add details
Browse files Browse the repository at this point in the history
  • Loading branch information
ola-9 committed Jun 5, 2023
1 parent 52299f0 commit 4f0b335
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
4 changes: 2 additions & 2 deletions backend/__tests__/auth.e2e-spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,8 @@ describe('AuthController (e2e)', () => {
let usersData: Users[];
let jwtService: JwtService;

// все тесты проходят если beforeEach
// FIXME: все тесты проходят если beforeEach
// заново полный setup -> надо перенести в хуки сброс аппа между тестами
// beforeEach(async () => {
beforeAll(async () => {
moduleFixture = await Test.createTestingModule({
Expand Down Expand Up @@ -68,7 +69,6 @@ describe('AuthController (e2e)', () => {
const { body } = await request(app.getHttpServer())
.post(`/login`)
.send(testData.loginUpperCase)
// .send({ email: '[email protected]', password: 'NotFound404' })
.expect(201);
expect(body.token).toBeDefined();
});
Expand Down
3 changes: 2 additions & 1 deletion tests/workflow.spec.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import { test, expect } from '@playwright/test';

/* TODO: Тесты каждый раз создают пользователя...? */
/* TODO: Тесты каждый раз создают пользователя в приложении,
все должно происходит в тестовом окружении */
test('work', async ({ page }) => {
const randomNum = Math.round(Math.random() * 1000 + Math.random() * 100);
await page.goto('http://localhost:3000');
Expand Down

0 comments on commit 4f0b335

Please sign in to comment.