-
Notifications
You must be signed in to change notification settings - Fork 3
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 #23 from DoughFin/feature/df-100-debug-income-dupl…
…ication-rendering-error Change uri in appolo client to use localhost instead of render
- Loading branch information
Showing
3 changed files
with
33 additions
and
3 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
import BasicSelect from "../../src/components/CashFlow/BasicSelect"; | ||
|
||
|
||
// it("should have a main container", () => { | ||
// cy.get(".cashflow").should("exist"); | ||
// }); | ||
|
||
|
||
describe('CashFlow', () => { | ||
beforeEach(() => { | ||
cy.intercept("POST", "http://localhost:3000/graphql", { | ||
statusCode: 401, | ||
fixture: "data" | ||
}); | ||
cy.visit("http://localhost:3003"); | ||
}) | ||
// Visit the page or component containing the CashFlow component | ||
}); | ||
|
||
it('renders the CashFlow component with correct elements', () => { | ||
// Check if the CashFlow component is rendered | ||
cy.get('.cashflow').should('exist'); | ||
|
||
// Check if the header elements are rendered | ||
cy.get('.cashflow-header').should('exist'); | ||
cy.get('.cashflow-h1').should('exist').and('have.text', 'Cash Flow'); | ||
cy.get('.cashflow-header-income').should('have.length', 2); // Check for two income headers | ||
cy.get('.cashflow-header-text').should('have.length', 2); // Check for two header texts | ||
cy.get('.cashflow-header-income img').should('have.length', 2); // Check for two income header images | ||
}); |
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