Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update locators #314

Merged
merged 5 commits into from
Nov 21, 2024
Merged
Changes from 1 commit
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
Prev Previous commit
Next Next commit
Fix selectors
KuznetsovNikita committed Nov 21, 2024

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
commit db72d4c237ea0fda55b6b99618dc2361eda0483f
11 changes: 3 additions & 8 deletions tests/playwright/tests/NegativeCases/Negative.spec.ts
Original file line number Diff line number Diff line change
@@ -26,7 +26,7 @@ test('Incorrect seed phrase ', async ({ page }) => {
await expect(page.getByRole('button', { name: 'Get started' })).toBeVisible();
});

//incorrect password to enter 2 times, error Passwords do not match +
//incorrect password to enter 2 times, error Passwords do not match +
//correct password to enter + delete wallet

test('Incorrect password', async ({ page }) => {
@@ -37,13 +37,8 @@ test('Incorrect password', async ({ page }) => {
await page.getByLabel('1:', { exact: true }).fill(process.env.TON_MNEMONIC_12);
await page.getByRole('button', { name: 'Continue' }).click();
await page.getByRole('button', { name: 'Continue' }).click();
await page
.locator('div')
.filter({ hasText: /^Password$/ })
.getByRole('textbox')
.fill('123456');
await page.getByRole('textbox').nth(1).click();
await page.getByRole('textbox').nth(1).fill('123457');
await page.locator('#create-password').fill('123456');
await page.locator('#create-password-confirm').fill('123457');
await page.getByRole('button', { name: 'Continue' }).click();
await expect(page.getByText('Passwords do not match.')).toBeVisible();
await expect(page.locator('form')).toContainText('Passwords do not match.');
Loading