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

Commit b8ab24c

Browse files
Merge pull request #258 from binary-com/ako/DERA-428/use-dws-endpoint
Ako/ use dws endpoint
2 parents 716a52b + 14c1aac commit b8ab24c

File tree

3 files changed

+9
-9
lines changed

3 files changed

+9
-9
lines changed

src/features/Endpoint/Endpoint.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ const EndPoint = () => {
6767
},
6868
})}
6969
name='server_url'
70-
placeholder='e.g. ws.binaryws.com'
70+
placeholder='e.g. ws.derivws.com'
7171
className={styles.textInput}
7272
required
7373
/>

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');

src/utils/constants.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ export const PRODUCTION_APP_ID = '36544';
22
export const STAGING_APP_ID = '36545';
33
export const VERCEL_DEPLOYMENT_APP_ID = '35073';
44
export const LOCALHOST_APP_ID = '35074';
5-
export const DEFAULT_WS_SERVER = 'ws.binaryws.com';
5+
export const DEFAULT_WS_SERVER = 'ws.derivws.com';
66
export const OAUTH_URL = 'oauth.deriv.com';
77

88
export const LOGIN_ACCOUNTS_SESSION_STORAGE_KEY = 'login-accounts';

0 commit comments

Comments
 (0)