feat(UI): added specific label for MacOS check-code button (#54276)

Co-authored-by: Huyen Nguyen <25715018+huyenltnguyen@users.noreply.github.com>
Co-authored-by: Tomas Bern <bekjon_98@mail.ru>
This commit is contained in:
Giovanni Ruberto
2024-04-05 08:49:32 +02:00
committed by GitHub
parent 387f938975
commit c82a57e1d3
4 changed files with 24 additions and 23 deletions
+1 -10
View File
@@ -1,5 +1,4 @@
import { expect, test, type Page } from '@playwright/test';
import translations from '../client/i18n/locales/english/translations.json';
let page: Page;
@@ -36,15 +35,7 @@ test.describe('Progress bar component', () => {
'<html><body><h1>CatPhotoApp</h1><h2>Cat Photos</h2></body></html>'
);
if (isMobile) {
await page
.getByRole('button', { name: translations.buttons['check-code-2'] })
.click();
} else {
await page
.getByRole('button', { name: translations.buttons['check-code'] })
.click();
}
await page.getByRole('button', { name: 'Check Your Code' }).click();
const progressBarContainer = page.getByTestId('progress-bar-container');
await expect(progressBarContainer).toContainText(