Skip to content

Commit 62e2f01

Browse files
committed
validate
1 parent 324bad9 commit 62e2f01

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

tests/e2e/login.spec.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ test.describe('Login page', () => {
1717
await login.fillValidInputs();
1818
await login.submit();
1919
await expect(login.elements().errorToast()).toContainText(
20-
'Get Nonce: ' + i18n.t('__TOAST_GENERIC_ERROR_MESSAGE')
20+
`Get Nonce: ${i18n.t('__TOAST_GENERIC_ERROR_MESSAGE')}`
2121
);
2222
});
2323
test('shows a generic error toast whenever wpapi login responds with a 403', async ({
@@ -28,7 +28,7 @@ test.describe('Login page', () => {
2828
await login.fillValidInputs();
2929
await login.submit();
3030
await expect(login.elements().errorToast()).toContainText(
31-
'Login: ' + i18n.t('__TOAST_GENERIC_ERROR_MESSAGE')
31+
`Login: ${i18n.t('__TOAST_GENERIC_ERROR_MESSAGE')}`
3232
);
3333
});
3434
});

tests/fixtures/pages/Login.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
import { type Page } from '@playwright/test';
22
import { UnguessPage } from '../UnguessPage';
3-
import { error } from 'console';
43

54
export class Login extends UnguessPage {
65
readonly page: Page;

0 commit comments

Comments
 (0)