Skip to content

Commit

Permalink
PB-878: More cy.log to see the failed layer.
Browse files Browse the repository at this point in the history
  • Loading branch information
ismailsunni committed Oct 2, 2024
1 parent cec2946 commit f297b8c
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion tests/cypress/tests-e2e/print.cy.js
Original file line number Diff line number Diff line change
Expand Up @@ -335,7 +335,8 @@ describe('Testing print', () => {
const layers = mapAttributes.layers
expect(layers).to.be.an('array')
cy.log('Layers:', layers)
cy.log('Layer 1:', layers[0]['type'])
cy.log('Layer 0:', layers[0]['type'])

expect(layers).to.have.length(2)
expect(layers[0]['type']).to.equals('geojson')
expect(layers[0]['geoJson']['features']).to.have.length(1)
Expand Down Expand Up @@ -420,6 +421,8 @@ describe('Testing print', () => {

const layers = mapAttributes.layers
expect(layers).to.be.an('array')
cy.log('Layers:', layers)
cy.log('Layer 0:', layers[0]['type'])
expect(layers).to.have.length(2)

// In this GPX layer, htere are two features (a line and a point).
Expand Down Expand Up @@ -474,6 +477,8 @@ describe('Testing print', () => {
const layers = mapAttributes.layers

expect(layers).to.be.an('array')
cy.log('Layers:', layers)
cy.log('Layer 0:', layers[0]['type'])
expect(layers).to.have.length(2)

const geoJsonLayer = layers[0]
Expand Down Expand Up @@ -561,6 +566,8 @@ describe('Testing print', () => {
const layers = mapAttributes.layers

expect(layers).to.be.an('array')
cy.log('Layers:', layers)
cy.log('Layer 0:', layers[0]['type'])
expect(layers).to.have.length(2)

const geoJsonLayer = layers[0]
Expand Down

0 comments on commit f297b8c

Please sign in to comment.