Skip to content

[WIP][ST] Remove fixed css selectors, utilize components from PW and OUIA ids - #2805

Draft
jankalinic wants to merge 2 commits into
streamshub:mainfrom
jankalinic:sts-selectors-rework-part-1
Draft

[WIP][ST] Remove fixed css selectors, utilize components from PW and OUIA ids#2805
jankalinic wants to merge 2 commits into
streamshub:mainfrom
jankalinic:sts-selectors-rework-part-1

Conversation

@jankalinic

@jankalinic jankalinic commented Jul 27, 2026

Copy link
Copy Markdown
Contributor

This PR does following:

  • adds a new ouia ids in the api/webui for a certain elements that are checked during the tests
  • refactors CssSelectors so instead of using only constants with full css path it uses Roles, element types, ids, ouia etc.

The changes made in this PR get rid of the long CssSelectors and it's classes, but keeps the overall logic of -> for groups page in tests - get selectors from GroupsPage..... for topics page from TopicsPage etc, so that it's clear where lies what. Adding some common constants used throughout the tests and selectors, separated OUIA constants for easier lookup.

This refactor needs followup PRs with changes touching the PwUtils, but it should work without it as well.

Assisted by: Sonnet 5

Signed-off-by: jkalinic <jkalinic@redhat.com>
@jankalinic jankalinic added the do not merge Do not merge just yet. Work is still in progress label Jul 27, 2026
@jankalinic

Copy link
Copy Markdown
Contributor Author

/systemtests run --profile=regression --install-type=olm --retry-count=2

Signed-off-by: jkalinic <jkalinic@redhat.com>
@sonarqubecloud

Copy link
Copy Markdown

@jankalinic

Copy link
Copy Markdown
Contributor Author

/systemtests run --profile=regression --install-type=olm --retry-count=2

@streamshub-bot

Copy link
Copy Markdown

❌ Systemtests run finished - failure ❌

Test Summary:

  • TOTAL: 36
  • PASS: 3
  • FAIL: 30
  • SKIP: 3

Used parameters:

  • TEST_CASE:
  • PROFILE: regression
  • INSTALL_TYPE: olm
  • RETRY_COUNT: 2
  • ENVS:

Test Failures:

  • com.github.streamshub.systemtests.consumers.GroupsST#testVariableConsumerGroupNames
  • com.github.streamshub.systemtests.consumers.GroupsST#testResetConsumerOffsetSpecificTopic(int
  • ResetOffsetType
  • ResetOffsetDateTimeType
  • String)[1]
  • com.github.streamshub.systemtests.consumers.GroupsST#testResetConsumerOffsetSpecificTopic(int
  • ResetOffsetType
  • ResetOffsetDateTimeType
  • String)[2]
  • com.github.streamshub.systemtests.consumers.GroupsST#testResetConsumerOffsetSpecificTopic(int
  • ResetOffsetType
  • ResetOffsetDateTimeType
  • String)[3]
  • com.github.streamshub.systemtests.consumers.GroupsST#testResetConsumerOffsetSpecificTopic(int
  • ResetOffsetType
  • ResetOffsetDateTimeType
  • String)[4]
  • com.github.streamshub.systemtests.consumers.GroupsST#testResetConsumerOffsetAllTopicsAllPartitions(int
  • ResetOffsetType
  • ResetOffsetDateTimeType
  • String)[1]
  • com.github.streamshub.systemtests.consumers.GroupsST#testResetConsumerOffsetAllTopicsAllPartitions(int
  • ResetOffsetType
  • ResetOffsetDateTimeType
  • String)[2]
  • com.github.streamshub.systemtests.consumers.GroupsST#testResetConsumerOffsetAllTopicsAllPartitions(int
  • ResetOffsetType
  • ResetOffsetDateTimeType
  • String)[3]
  • com.github.streamshub.systemtests.consumers.GroupsST#testResetConsumerOffsetAllTopicsAllPartitions(int
  • ResetOffsetType
  • ResetOffsetDateTimeType
  • String)[4]
  • com.github.streamshub.systemtests.consumers.GroupsST#testResetConsumerOffsetAllTopicsAllPartitions(int
  • ResetOffsetType
  • ResetOffsetDateTimeType
  • String)[5]
  • com.github.streamshub.systemtests.consumers.GroupsST#testResetConsumerOffsetAllTopicsAllPartitions(int
  • ResetOffsetType
  • ResetOffsetDateTimeType
  • String)[6]
  • com.github.streamshub.systemtests.consumers.GroupsST#testResetConsumerOffsetAllTopicsAllPartitions(int
  • ResetOffsetType
  • ResetOffsetDateTimeType
  • String)[7]
  • com.github.streamshub.systemtests.consumers.GroupsST#testResetConsumerOffsetAllTopicsAllPartitions(int
  • ResetOffsetType
  • ResetOffsetDateTimeType
  • String)[8]
  • com.github.streamshub.systemtests.kafka.ConnectST#testFilterKafkaConnectClustersAndConnectors
  • com.github.streamshub.systemtests.kafka.RebalanceST#testKafkaRebalance
  • com.github.streamshub.systemtests.messages.MessagesST#testMessageSearchUsingQueries(int
  • String
  • Map)[1]
  • com.github.streamshub.systemtests.messages.MessagesST#testMessageSearchUsingQueries(int
  • String
  • Map)[2]
  • com.github.streamshub.systemtests.messages.MessagesST#testMessageSearchUsingQueries(int
  • String
  • Map)[3]
  • com.github.streamshub.systemtests.messages.MessagesST#testMessageSearchUsingQueries(int
  • String
  • Map)[4]
  • com.github.streamshub.systemtests.messages.MessagesST#testMessageSearchUsingQueries(int
  • String
  • Map)[6]
  • com.github.streamshub.systemtests.messages.MessagesST#testFilterMessagesUsingUIForm
  • com.github.streamshub.systemtests.topics.TopicST#testSortTopics
  • com.github.streamshub.systemtests.topics.TopicST#testFilterTopics
  • com.github.streamshub.systemtests.topics.TopicST#testPaginationWithManyTopics
  • com.github.streamshub.systemtests.topics.TopicST#testRecentlyViewedTopics
  • com.github.streamshub.systemtests.users.UsersST#testVariousKafkaUsersAcls(String)[1]
  • com.github.streamshub.systemtests.users.UsersST#testVariousKafkaUsersAcls(String)[2]
  • com.github.streamshub.systemtests.users.UsersST#testVariousKafkaUsersAcls(String)[3]
  • com.github.streamshub.systemtests.auth.KafkaCredentialsST#testUserLoginKafkaCredentials
  • com.github.streamshub.systemtests.auth.KafkaCredentialsST

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

do not merge Do not merge just yet. Work is still in progress

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants