* Fixed trailing slash * Fixed trailing slash in the name * Fixed the query param * Set up cypress screenshots * Revert "Set up cypress screenshots" This reverts commit 215adcd893ed6f3612fcfca126eda7e857999a8c. * Modify `NB_API_QUERY_URL` in the `compatibility.yaml` * Updated nightly job * Renamed workflow name * Added `Tool version compatibility test` badge to README.md * Fixed the README.md
25 lines
884 B
JavaScript
25 lines
884 B
JavaScript
describe('Full stack e2e', () => {
|
|
it('Query tool', () => {
|
|
cy.visit('http://localhost:3000/')
|
|
cy.get('[data-cy="Neurobagel graph-categorical-field"]').type(
|
|
'local graph 1{downarrow}{enter}'
|
|
);
|
|
cy.get('[data-cy="submit-query-button"]').click();
|
|
cy.get('[data-cy="result-container"]').contains("from Local graph 1",{matchCase: false});
|
|
})
|
|
it('API', () => {
|
|
cy.request("localhost:8000/query").as("query");
|
|
cy.get("@query").should((response) => {
|
|
expect(response.status).to.eq(200);
|
|
});
|
|
});
|
|
it("Federation API", () => {
|
|
cy.request("localhost:8080/query?node_url=http://api:8000").as("query");
|
|
cy.get("@query").should((response) => {
|
|
expect(response.status).to.eq(200);
|
|
});
|
|
})
|
|
it("CLI", () => {
|
|
cy.exec("docker run --rm neurobagel/bagelcli --help").its("stdout").should("contain", "Usage: bagel");
|
|
});
|
|
})
|