Skip to content

Commit

Permalink
fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
FuhuXia committed Jul 21, 2023
1 parent 4f0ca14 commit ae058f5
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion e2e/cypress/integration/ckan_extensions.cy.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
describe('CKAN Extensions', () => {
it('Uses CKAN 2.9', () => {
it('Uses CKAN 2.10', () => {
cy.request('/api/action/status_show').should((response) => {
expect(response.body).to.have.property('success', true);
expect(response.body.result).to.have.property('ckan_version', '2.10.1');
Expand Down
10 changes: 5 additions & 5 deletions e2e/cypress/integration/spatial.cy.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,18 +17,18 @@ describe('Spatial', { testIsolation: false }, () => {

it('The map view works and can draw box and search', () => {
cy.visit('/dataset');
cy.get('.leaflet-draw-draw-rectangle').click();
cy.get('#dataset-map-edit-buttons').find('.disabled');
cy.get('#dataset-map-container')
cy.get('.leaflet-control-custom-button').click();
cy.get('.modal-spatial-query .modal-footer').find('.disabled');
cy.get('#draw-map-container')
.trigger('mousedown', { which: 1 })
.trigger('mousemove', { clientX: 500, clientY: 153 })
.trigger('mouseup');
cy.hide_debug_toolbar();
// click the apply button then on the next redirected page find the box
// on the map and content in the body
cy.get('#dataset-map-edit-buttons').find('[class="btn apply btn-primary"]').click();
cy.get('.modal-spatial-query .modal-footer').find('[class="btn btn-primary apply"]').click();
cy.get('#dataset-map-container').find('svg.leaflet-zoom-animated');
cy.contains(/datasets? found/);
cy.contains(/2 datasets found/);
});

it('Can search in the location dropdown', () => {
Expand Down

0 comments on commit ae058f5

Please sign in to comment.