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

Commit

Permalink
chore: fixing test
Browse files Browse the repository at this point in the history
  • Loading branch information
Hubert Koster authored and Hubert Koster committed Aug 24, 2023
1 parent bc80b6a commit 9fa154b
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/features/Endpoint/__tests__/Endpoint.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ describe('Endpoint', () => {
});

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

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

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

await userEvent.clear(server);
await userEvent.type(server, '[email protected]');
Expand All @@ -51,7 +51,7 @@ describe('Endpoint', () => {
});

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

Expand Down Expand Up @@ -89,7 +89,7 @@ describe('Endpoint', () => {
});

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

Expand Down

0 comments on commit 9fa154b

Please sign in to comment.