Skip to content

Conversation

@shamshodisaev
Copy link
Collaborator

@shamshodisaev shamshodisaev commented Nov 8, 2025

Title of Pull Request

Update react tests task

🤔 This is a

  • ⚙️ Update to an existing task
  • 🐛 Fix in a task or related content

Description

  • restructure react tests task
  • split points across different features
  • features are described in Gherkin syntax

https://github.com/rolling-scopes-school/tasks/blob/feature/react-tests/react/modules/tasks/tests.md

Copy link
Collaborator

@kravaring kravaring left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please, add AC for all features, otherwise looks good!


**Acceptance Criteria:**

- No changes are made to the logic or structure of class components during testing.
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hmm.. We had an issue with such restriction last time, so we had to allow refactoring in this module. I suggest allowing doing the refactoring.

Suggested change
- No changes are made to the logic or structure of class components during testing.
- No major changes are made to the logic or structure of class components during testing.
- Conversion to functional components is not performed.
- Only changes to improve testability are allowed, without altering behavior.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

**Acceptance Criteria:**

- Tests focus on user-visible behavior and component outputs, not internal implementation details.
- Tests remain valid after refactoring to functional components.
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Would be hard to achieve in this module, refactoring will be done in the next one. I suggest removing this line.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@kravaring kravaring merged commit 03be0ab into master Nov 9, 2025
1 check passed
@kravaring kravaring deleted the feature/react-tests branch November 9, 2025 15:44
@shamshodisaev shamshodisaev restored the feature/react-tests branch November 19, 2025 06:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants