Fix e2e tests for pricing page
- Update selectors to use input indices instead of labels (labels not associated) - Fix validation error status expectation (400 instead of 422) - Update exchange.spec.ts to check new config fields (eur_min_buy, etc.)
This commit is contained in:
parent
2ee27cf5b2
commit
7f547d667d
3 changed files with 173 additions and 36 deletions
|
|
@ -339,8 +339,10 @@ test.describe("Exchange API", () => {
|
|||
expect(priceResponse.status()).toBe(200);
|
||||
const priceData = await priceResponse.json();
|
||||
expect(priceData.config).toBeDefined();
|
||||
expect(priceData.config.eur_min).toBeDefined();
|
||||
expect(priceData.config.eur_max).toBeDefined();
|
||||
expect(priceData.config.eur_min_buy).toBeDefined();
|
||||
expect(priceData.config.eur_max_buy).toBeDefined();
|
||||
expect(priceData.config.eur_min_sell).toBeDefined();
|
||||
expect(priceData.config.eur_max_sell).toBeDefined();
|
||||
|
||||
// Test regular user can get trades
|
||||
const tradesResponse = await request.get(`${getBackendUrl()}/api/trades`, {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue