Skip to content

Conversation

annafalileeva
Copy link
Contributor

YouTrack task: #APPS-3640

Description:
refactor ui tests

@annafalileeva annafalileeva requested a review from ivan-magda May 26, 2022 08:23
@annafalileeva annafalileeva self-assigned this May 26, 2022
@github-actions github-actions bot added the main label May 26, 2022
Copy link
Member

@ivan-magda ivan-magda left a comment

Choose a reason for hiding this comment

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

@annafalileeva

Ты не против, если бы я сделал shared файл между приложением и UI тестами, где были бы описаны все константы accessibility идентификаторов. Кажется так будет меньше шанс ошибиться и нужно будет указать строку идентификатора только в одном месте. Пример как будет выглядеть использование такого API:

в приложении

self.actionButton.accessibilityIdentifier = AccessibilityIdentifiers.loginButton

в UI тестах

app.buttons[AccessibilityIdentifiers.loginButton]

Ещё у нас имеется линтер и автоматические исправления в соответствии code style.

  1. Запусти автоматические исправления в командной строке ./autocorrect.sh StepicUITests
  2. Запусти линтер, чтобы увидеть замечания в командной строке ./lint.sh StepicUITests. Если не удастся исправить все замечания, то я пофиксю.
  3. Ознакомься с Code Style Stepik.

@annafalileeva annafalileeva requested a review from ivan-magda June 7, 2022 11:09
Copy link
Member

@ivan-magda ivan-magda left a comment

Choose a reason for hiding this comment

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

@annafalileeva все ОК 👍

Я еще немножко причесал тесты c17d9e6 и весь код поместил в папку Sources.

@ivan-magda ivan-magda merged commit 2ff270c into dev Jun 7, 2022
@ivan-magda ivan-magda deleted the ui-test-refactoring branch June 7, 2022 15:11
@ivan-magda ivan-magda added this to the 1.218 milestone Feb 24, 2023
@ivan-magda ivan-magda mentioned this pull request Apr 3, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants