-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
64 changed files
with
4,668 additions
and
3,031 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,6 @@ | ||
{ | ||
"recommendations": ["johnsoncodehk.volar", "editorconfig.editorconfig"] | ||
"recommendations": [ | ||
"vue.volar", | ||
"editorconfig.editorconfig" | ||
] | ||
} |
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
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 |
---|---|---|
@@ -0,0 +1,36 @@ | ||
/// <reference types="Cypress"/> | ||
|
||
describe('The results view', () => { | ||
it('has a visible search bar', () => { | ||
const query = 'test'; | ||
cy.visit(`/?q=${query}`); | ||
cy.get('[data-cy="search-input"]').should('be.visible'); | ||
}); | ||
it('has a visible button for showing the advanced search sidebar', () => { | ||
const query = 'test'; | ||
cy.visit(`/?q=${query}`); | ||
cy.get('[data-cy="advanced-search-results"]').should('be.visible'); | ||
}); | ||
|
||
describe('search bar', () => { | ||
it('remains on the results view after search', () => { | ||
const query = 'covid'; | ||
const query2 = 'test'; | ||
cy.visit(`/?q=${query}`); | ||
cy.fixture('simple_q_test').then((simple_q_test) => { | ||
cy.intercept( | ||
`https://dev-api.iatistandard.org/dss/activity/search?wt=json&fl=id%2Ctitle_narrative%2Ctitle_narrative_xml_lang%2Cdescription_narrative%2Cdescription_narrative_xml_lang%2Ciati_identifier%2Clast_updated_datetime%2Creporting_org_narrative%2Cactivity_date*&start=0&rows=10&hl=true&hl.method=unified&hl.fl=*_narrative&q=${query2}&sort=score+desc`, | ||
simple_q_test | ||
); | ||
cy.intercept( | ||
`https://api.iatistandard.org/dss/activity/search?wt=json&fl=id%2Ctitle_narrative%2Ctitle_narrative_xml_lang%2Cdescription_narrative%2Cdescription_narrative_xml_lang%2Ciati_identifier%2Clast_updated_datetime%2Creporting_org_narrative%2Cactivity_date*&start=0&rows=10&hl=true&hl.method=unified&hl.fl=*_narrative&q=${query2}&sort=score+desc`, | ||
simple_q_test | ||
); | ||
}); | ||
cy.get('[data-cy="search-input"]').clear(); | ||
cy.get('[data-cy="search-input"]').type(query2); | ||
cy.get('[data-cy="search-button"]').click(); | ||
cy.url().should('includes', `/?q=${query2}`); | ||
}); | ||
}); | ||
}); |
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
@@ -1,18 +1,17 @@ | ||
<!DOCTYPE html> | ||
<html lang="en"> | ||
<head> | ||
<meta charset="UTF-8" /> | ||
<link rel="icon" href="/favicon.ico" /> | ||
<meta name="viewport" content="width=device-width, initial-scale=1.0" /> | ||
<title>IATI Datastore Search</title> | ||
<meta name="description" content /> | ||
</head> | ||
|
||
<head> | ||
<meta charset="UTF-8" /> | ||
<link rel="icon" href="/favicon.ico" /> | ||
<meta name="viewport" content="width=device-width, initial-scale=1.0" /> | ||
<title>IATI Datastore Search</title> | ||
<meta name="description" content /> | ||
</head> | ||
|
||
<body class="font-sans text-center antialiased"> | ||
<div id="app"></div> | ||
<div id="modals"></div> | ||
<script type="module" src="/src/main.js"></script> | ||
</body> | ||
|
||
</html> | ||
<body class="font-sans text-center antialiased"> | ||
<div id="app"></div> | ||
<div id="modals"></div> | ||
<div id="searchbar" class="search-bar"></div> | ||
<script type="module" src="/src/main.js"></script> | ||
</body> | ||
</html> |
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
Oops, something went wrong.