Skip to content

Autotests for navbar buttons. - #4982

Draft
Elena Kurakina (solarday) wants to merge 1 commit into
masterfrom
autotests_for_navbar
Draft

Elena Kurakina (solarday) wants to merge 1 commit into
masterfrom
autotests_for_navbar

Conversation

@solarday

Copy link
Copy Markdown
Contributor

No description provided.

@@ -0,0 +1,70 @@
import { test, expect } from '@playwright/test';

test.describe('Navbar buttons', () => {

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

I suggest renaming the test: this part of navigation we call "header".
Also, there is a test in the master branch, api navigation. What do you think about unifying them into one file and calling it header.spec.ts? I would expect to have all the header tests related to it in one place.

});

test('Kotlin logo opens the homepage', async ({ page }) => {
const kotlinLogo = page.locator('.ktl-logo-large-module_link_AOGas');

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

The locators should be change to not use classes and especially classes with hashes like "_AOGas". They may change after an update, and we'll be forced to update the tests.
My suggestion: we need to add data-testid for the header elements.

@nikpachoo
Nikolai Pachkov (nikpachoo) marked this pull request as draft August 6, 2025 14:16
@nikpachoo

Copy link
Copy Markdown
Collaborator

Elena Kurakina (@solarday), i changed the status of PR, until we add the data-selectors to the head

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants