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

Commit 14c1aac

Browse files
test: change the endpoints in the test
1 parent fafdccb commit 14c1aac

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

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

Lines changed: 7 additions & 7 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. ws.binaryws.com');
24+
const server = screen.getByPlaceholderText('e.g. ws.derivws.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. ws.binaryws.com');
43+
const server = screen.getByPlaceholderText('e.g. ws.derivws.com');
4444

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

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

5858
await userEvent.clear(server);
59-
await userEvent.type(server, 'blue.binaryws.com');
59+
await userEvent.type(server, 'blue.derivws.com');
6060

6161
await userEvent.clear(app_id);
6262
await userEvent.type(app_id, '31063');
@@ -65,7 +65,7 @@ describe('Endpoint', () => {
6565
fireEvent.submit(form);
6666
});
6767

68-
expect(server).toHaveValue('blue.binaryws.com');
68+
expect(server).toHaveValue('blue.derivws.com');
6969
expect(app_id).toHaveValue('31063');
7070
});
7171

@@ -89,12 +89,12 @@ 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. ws.binaryws.com');
92+
const server = screen.getByPlaceholderText('e.g. ws.derivws.com');
9393
const app_id = screen.getByPlaceholderText('e.g. 9999');
9494
const submit_button = screen.getByRole('button', { name: /submit/i });
9595

9696
await userEvent.clear(server);
97-
await userEvent.type(server, 'blue.binaryws.com');
97+
await userEvent.type(server, 'blue.derivws.com');
9898

9999
await userEvent.clear(app_id);
100100
await userEvent.type(app_id, '31063');

0 commit comments

Comments
 (0)