Skip to content

Commit fb6f4b5

Browse files
committed
update to cypress 13
1 parent ccab987 commit fb6f4b5

File tree

4 files changed

+2
-10
lines changed

4 files changed

+2
-10
lines changed

cypress/e2e/nav_authent.cy.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ describe('Logout', () => {
5454
});
5555

5656
it('Logout', () => {
57-
cy.visit('/');
57+
cy.visit('/path/list/');
5858
cy.url().should('include', '/path/list/');
5959
cy.get("a.dropdown-toggle").contains('admin').click();
6060
cy.get("a[href='/logout/']").click();

cypress/e2e/nav_create_path.cy.js

+1-7
Original file line numberDiff line numberDiff line change
@@ -10,13 +10,7 @@ describe('Create path', () => {
1010
cy.visit('/path/list');
1111
cy.wait('@tiles');
1212
cy.get("a.btn-success[href='/path/add/']").contains('Add a new path').click();
13-
cy.get("a.leaflet-draw-draw-polyline").click();
14-
cy.get('.leaflet-map-pane')
15-
.click(390, 250)
16-
.click(400, 50)
17-
.click(450, 50)
18-
.click(450, 150)
19-
.click(450, 150);
13+
cy.get("#id_geom").type("{\"geom\":\"{\"type\":\"LineString\",\"coordinates\":[[-7.279815673828125,43.35713822211053],[1.553192138671875,42.4234565179383]]}\",\"snap\":[null,null]}", {force: true, parseSpecialCharSequences: false});
2014
cy.get("input[name='name']").type('Path number 1');
2115
cy.get('#save_changes').click();
2216
cy.url().should('not.include', '/path/add/');

cypress/e2e/nav_create_trek.cy.js

-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@ describe('Create trek', () => {
1515

1616
it('Create trek', () => {
1717
cy.wait('@tiles');
18-
cy.server();
1918
cy.get("a.btn-success[href='/trek/add/']").contains('Add a new trek').click();
2019
cy.get("input[id='id_duration']").type('100');
2120
cy.get("input[name='name_en']").type('Trek number 1');

cypress/support/commands.js

-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,6 @@ Cypress.Commands.add('loginByCSRF', (username, password) => {
2626
validate() {
2727
cy.request('/').its('status').should('eq', 200);
2828
},
29-
cacheAcrossSpecs: true
3029
}
3130
);
3231
});

0 commit comments

Comments
 (0)