Skip to content

Commit 5f439f3

Browse files
authored
E2E: Playwright tests fixes according new changes (#1317)
1 parent e3ba25f commit 5f439f3

File tree

4 files changed

+6
-8
lines changed

4 files changed

+6
-8
lines changed

e2e-playwright/src/features/navigation.feature

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ Feature: Navigation panel links
2828
Given Kafka Connect is visible
2929
When click on Kafka Connect link
3030
Then Kafka Connect heading visible
31-
Then the end of current URL should be "connectors"
31+
Then the end of current URL should be "kafka-connect/clusters"
3232

3333
Scenario: Navigate to KSQL DB
3434
Given KSQL DB is visible

e2e-playwright/src/pages/Connectors/ConnectorsLocators.ts

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,5 @@ export default class ConnectorsLocators {
77
this.page = page;
88
}
99

10-
get heading(): Locator { return this.page.getByRole('heading', { name: 'Connectors' })};
11-
get searchBox(): Locator { return this.page.getByRole('textbox', { name: 'SSearch by Connect Name' })};
12-
get createConnectorButton(): Locator { return this.page.getByRole('button', { name: 'Create Schema' })};
13-
}
10+
get clustersTab(): Locator { return this.page.getByRole('link', { name: 'Clusters' })};
11+
}

e2e-playwright/src/pages/Topics/TopicsCreateLocators.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ export default class TopicCreateLocators {
1414
get minInSyncReplicas(): Locator { return this.page.getByRole('spinbutton', { name: 'Min In Sync Replicas' }); }
1515
get replicationFactor(): Locator { return this.page.getByRole('spinbutton', { name: 'Replication Factor' }); }
1616
get timeToRetainData(): Locator { return this.page.getByRole('spinbutton', { name: 'Time to retain data (in ms)' }); }
17-
get button12Hours(): Locator { return this.page.getByRole('button', { name: 'hours' }); }
17+
get button12Hours(): Locator { return this.page.getByRole('button', { name: '12 hours' }); }
1818
get button1Day(): Locator { return this.page.getByRole('button', { name: '1 day' }); }
1919
get button2Day(): Locator { return this.page.getByRole('button', { name: '2 days' }); }
2020
get button7Day(): Locator { return this.page.getByRole('button', { name: '7 days' }); }
@@ -27,4 +27,4 @@ export default class TopicCreateLocators {
2727

2828
maxPartitionSizeSelect(value: string): Locator { return this.page.getByRole('option', { name: value }); }
2929
cleanupPolicySelect(value: string): Locator { return this.page.getByRole('list').getByRole('option', { name: value, exact: true }); }
30-
}
30+
}

e2e-playwright/src/steps/navigation.steps.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ When('click on Kafka Connect link', async function() {
6767
});
6868

6969
Then('Kafka Connect heading visible', async function() {
70-
await this.locators.connectors.heading.waitFor({ state: 'visible' });
70+
await this.locators.connectors.clustersTab.waitFor({ state: 'visible' });
7171
});
7272

7373
Given('KSQL DB is visible', async function() {

0 commit comments

Comments
 (0)