This repository has been archived by the owner on May 13, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 31
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #242 from hubert-deriv/update_sandbox_endpoint
- Loading branch information
Showing
19 changed files
with
24 additions
and
24 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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'); | ||
|
||
|
@@ -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]'); | ||
|
@@ -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'); | ||
|
||
|
@@ -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 }); | ||
|
||
|
ab1484d
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Successfully deployed to the following URLs:
deriv-api-docs – ./
deriv-api-docs.binary.sx
deriv-api-docs-git-master.binary.sx