Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
2 changes: 1 addition & 1 deletion e2e-playwright/src/features/navigation.feature
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ Feature: Navigation panel links
Given Kafka Connect is visible
When click on Kafka Connect link
Then Kafka Connect heading visible
Then the end of current URL should be "connectors"
Then the end of current URL should be "kafka-connect/clusters"

Scenario: Navigate to KSQL DB
Given KSQL DB is visible
Expand Down
6 changes: 2 additions & 4 deletions e2e-playwright/src/pages/Connectors/ConnectorsLocators.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,5 @@ export default class ConnectorsLocators {
this.page = page;
}

get heading(): Locator { return this.page.getByRole('heading', { name: 'Connectors' })};
get searchBox(): Locator { return this.page.getByRole('textbox', { name: 'SSearch by Connect Name' })};
get createConnectorButton(): Locator { return this.page.getByRole('button', { name: 'Create Schema' })};
}
get clustersTab(): Locator { return this.page.getByRole('link', { name: 'Clusters' })};
}
4 changes: 2 additions & 2 deletions e2e-playwright/src/pages/Topics/TopicsCreateLocators.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ export default class TopicCreateLocators {
get minInSyncReplicas(): Locator { return this.page.getByRole('spinbutton', { name: 'Min In Sync Replicas' }); }
get replicationFactor(): Locator { return this.page.getByRole('spinbutton', { name: 'Replication Factor' }); }
get timeToRetainData(): Locator { return this.page.getByRole('spinbutton', { name: 'Time to retain data (in ms)' }); }
get button12Hours(): Locator { return this.page.getByRole('button', { name: 'hours' }); }
get button12Hours(): Locator { return this.page.getByRole('button', { name: '12 hours' }); }
get button1Day(): Locator { return this.page.getByRole('button', { name: '1 day' }); }
get button2Day(): Locator { return this.page.getByRole('button', { name: '2 days' }); }
get button7Day(): Locator { return this.page.getByRole('button', { name: '7 days' }); }
Expand All @@ -27,4 +27,4 @@ export default class TopicCreateLocators {

maxPartitionSizeSelect(value: string): Locator { return this.page.getByRole('option', { name: value }); }
cleanupPolicySelect(value: string): Locator { return this.page.getByRole('list').getByRole('option', { name: value, exact: true }); }
}
}
2 changes: 1 addition & 1 deletion e2e-playwright/src/steps/navigation.steps.ts
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ When('click on Kafka Connect link', async function() {
});

Then('Kafka Connect heading visible', async function() {
await this.locators.connectors.heading.waitFor({ state: 'visible' });
await this.locators.connectors.clustersTab.waitFor({ state: 'visible' });
});

Given('KSQL DB is visible', async function() {
Expand Down
Loading