Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
28 commits
Select commit Hold shift + click to select a range
e7cadb6
scenarioContext added
AspidDark May 20, 2025
5a4d798
refactoring
AspidDark May 22, 2025
90150a5
eslint
AspidDark May 22, 2025
d6d78df
locators as getters
AspidDark May 23, 2025
3ad2ea9
Merge branch 'main' into main
germanosin May 26, 2025
d97292e
Merge branch 'kafbat:main' into main
AspidDark May 30, 2025
0a84b06
Topic messages
AspidDark May 31, 2025
6977e63
clean
AspidDark May 31, 2025
1e57a6a
Merge branch 'main' into main
germanosin Jun 2, 2025
ca66106
Topics base finished Brokers finished
AspidDark Jun 3, 2025
de47aeb
Merge branch 'kafbat:main' into main
AspidDark Jun 6, 2025
d4f48b6
Ksql first part
AspidDark Jun 6, 2025
4ce59e7
one more
AspidDark Jun 6, 2025
f47a6b9
Ksql finished
AspidDark Jun 11, 2025
3fac03d
Schema registry start
AspidDark Jun 11, 2025
9b678eb
schema registry
AspidDark Jun 18, 2025
971f78a
Topic messages
AspidDark Jun 19, 2025
5b5b14c
Topics finished
AspidDark Jul 1, 2025
13a29bb
Merge branch 'kafbat:main' into main
AspidDark Jul 1, 2025
00b4e38
Merge branch 'main' into main
germanosin Jul 4, 2025
0368fde
Merge branch 'main' into main
germanosin Jul 13, 2025
6bfea30
Merge branch 'kafbat:main' into main
AspidDark Jul 21, 2025
24c2e62
Merge branch 'main' into main
germanosin Jul 24, 2025
867a8cb
Merge branch 'main' into main
germanosin Jul 25, 2025
a94eedc
Merge branch 'kafbat:main' into main
AspidDark Jul 25, 2025
771348b
fix
AspidDark Jul 25, 2025
3da96a4
2 fixes
AspidDark Jul 26, 2025
9a3fad2
Merge branch 'main' into main
AspidDark Jul 27, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 6 additions & 9 deletions e2e-playwright/src/features/TopicsMessages.feature
Original file line number Diff line number Diff line change
Expand Up @@ -47,18 +47,18 @@ Feature: Produce Messages page
When TopicCreate Time to retain data one day
When TopicCreate Create topic clicked
Then Header starts with: "ANewAutoTopic"
Given TopicName menu button clicked
Given TopicName menu button clicked for topic starts with: "ANewAutoTopic"
Then TopicNameMenu clear messages active is: "true"
When TopicNameMenu edit settings clicked
When TopicName cleanup policy set to: "Compact"
When TopicName UpdateTopic button clicked
Then Header starts with: "ANewAutoTopic"
Given TopicName menu button clicked
When TopicNameMenu edit settings clicked
Given TopicName menu button clicked for topic starts with: "ANewAutoTopic"
When TopicNameMenu edit settings clicked
When TopicName cleanup policy set to: "Delete"
When TopicName UpdateTopic button clicked
Then Header starts with: "ANewAutoTopic"
Given TopicName menu button clicked
Given TopicName menu button clicked for topic starts with: "ANewAutoTopic"
Then TopicNameMenu clear messages active is: "true"

Scenario: Produce messages clear messages
Expand Down Expand Up @@ -103,7 +103,7 @@ Feature: Produce Messages page
Given ProduceMessage Headers input key is: "headerKey4", value is: "headerValue4"
Given ProduceMessage Produce Message button clicked
Then TopicName messages count is "2"
When TopicName menu button clicked
When TopicName menu button clicked for topic starts with: "ANewAutoTopic"
When TopicName menu clear messages clicked
Then TopicName messages count is "0"
Given Produce message clicked
Expand All @@ -118,7 +118,7 @@ Feature: Produce Messages page
Given ProduceMessage Headers input key is: "headerKey6", value is: "headerValue6"
Given ProduceMessage Produce Message button clicked
Then TopicName messages count is "2"
When TopicName menu button clicked
When TopicName menu button clicked for topic starts with: "ANewAutoTopic"
When TopicName menu RecreateTopic clicked
Then TopicName messages count is "0"
Given Produce message clicked
Expand Down Expand Up @@ -161,6 +161,3 @@ Feature: Produce Messages page

Then Topics TopicName Messages filter name starts with: "Filter" visible is: "true"
Then Topics TopicName Messages exist is: "false"



Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ export default class TopicsTopickNameLocators {
get headersButton():Locator { return this.page.getByRole('button', { name: 'Headers' }); }
get dotsMenu():Locator {return this.page.locator('#root div').filter({ hasText: 'Edit settingsPay attention!' }).nth(3)}

get menuItemEditSettings():Locator { return this.page.getByRole('menuitem', { name: 'Edit settings Pay attention!' }) }
get menuItemEditSettings():Locator { return this.page.getByText('Pay attention!') }
get menuItemClearMessages():Locator { return this.page.getByText('Clear messagesClearing') }
get menuItemRecreateTopic():Locator { return this.page.getByText('Recreate Topic') }
get confirm():Locator { return this.page.getByRole('button', { name: 'Confirm' }) }
Expand All @@ -39,6 +39,7 @@ export default class TopicsTopickNameLocators {
get editFilter():Locator { return this.page.getByTestId('activeSmartFilter').getByRole('button', { name: 'Edit' }) }
get editFilterButton():Locator { return this.page.getByRole('button', { name: 'Edit Filter' }) }

dotsMenuForTopic(value: string):Locator {return this.page.getByRole('main').locator('div').filter({ hasText: `localTopics${value}Produce Message Edit settingsPay attention!` }).getByLabel('Dropdown Toggle')}
heading(topicName: string): Locator { return this.page.getByText(`Topics${topicName}`); }
partitions(value: string):Locator { return this.page.getByRole('group').getByText(value).first(); }
messageKey(value: string):Locator { return this.page.getByText(value, { exact: true }); }
Expand Down
5 changes: 5 additions & 0 deletions e2e-playwright/src/steps/TopicsCreate.steps.ts
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,11 @@ Then('Header starts with: {string}', async function(this: PlaywrightWorld, prefi
await expect(header).toBeVisible();
});

Given('TopicName menu button clicked for topic starts with: {string}', async function(this: PlaywrightWorld, prefix: string) {
const topicName = this.getValue<string>(`topicName-${prefix}`);
await this.locators.topicTopicName.dotsMenuForTopic(topicName).click();
});

Then('Topic name started with: {string} visible is: {string}', async function(this: PlaywrightWorld, prefix: string, visible: string) {
const topicName = this.getValue<string>(`topicName-${prefix}`);
await expectVisibility(this.locators.topics.nameLink(topicName), visible);
Expand Down
Loading