Skip to content
This repository was archived by the owner on May 13, 2024. It is now read-only.

Commit 9fa154b

Browse files
Hubert KosterHubert Koster
authored andcommitted
chore: fixing test
1 parent bc80b6a commit 9fa154b

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/features/Endpoint/__tests__/Endpoint.test.tsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ describe('Endpoint', () => {
2121
});
2222

2323
it('should have default values in input fields', () => {
24-
const server = screen.getByPlaceholderText('e.g. frontend.binaryws.com');
24+
const server = screen.getByPlaceholderText('e.g. ws.binaryws.com');
2525
const app_id = screen.getByPlaceholderText('e.g. 9999');
2626
expect(server).toHaveValue('oauth.deriv.com');
2727

@@ -40,7 +40,7 @@ describe('Endpoint', () => {
4040
});
4141

4242
it('validate user inputs, and provides error messages for server field', async () => {
43-
const server = screen.getByPlaceholderText('e.g. frontend.binaryws.com');
43+
const server = screen.getByPlaceholderText('e.g. ws.binaryws.com');
4444

4545
await userEvent.clear(server);
4646
await userEvent.type(server, 'qa10@deriv.com');
@@ -51,7 +51,7 @@ describe('Endpoint', () => {
5151
});
5252

5353
it('should validate submit button functionality', async () => {
54-
const server = screen.getByPlaceholderText('e.g. frontend.binaryws.com');
54+
const server = screen.getByPlaceholderText('e.g. ws.binaryws.com');
5555
const app_id = screen.getByPlaceholderText('e.g. 9999');
5656
const form = screen.getByRole('form');
5757

@@ -89,7 +89,7 @@ describe('Endpoint', () => {
8989
});
9090

9191
it('Should have submit button enabled with no errors on the from', async () => {
92-
const server = screen.getByPlaceholderText('e.g. frontend.binaryws.com');
92+
const server = screen.getByPlaceholderText('e.g. ws.binaryws.com');
9393
const app_id = screen.getByPlaceholderText('e.g. 9999');
9494
const submit_button = screen.getByRole('button', { name: /submit/i });
9595

0 commit comments

Comments
 (0)