Skip to content

Commit 60347d3

Browse files
committed
test: fix error policy spec
1 parent d3b78b2 commit 60347d3

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

packages/test-e2e/tests/e2e/specs/errorPolicy.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,15 +3,15 @@ describe('errorPolicy', () => {
33
cy.visit('/partial-error')
44

55
// All
6-
cy.get('.all .result').should('contain', '{"bad":null,"good":"good"}')
6+
cy.get('.all .result').should('contain', '"good":"good"').should('contain', '"bad":null}')
77
cy.get('.all .error').should('contain', 'Error: GraphQL error: An error')
88

99
// None
10-
cy.get('.none .result').should('not.contain', 'good')
10+
cy.get('.none .result').should('not.contain', 'good').should('not.contain', 'bad')
1111
cy.get('.none .error').should('contain', 'Error: GraphQL error: An error')
1212

1313
// Ignore
14-
cy.get('.ignore .result').should('contain', '{"bad":null,"good":"good"}')
14+
cy.get('.ignore .result').should('contain', '"good":"good"').should('contain', '"bad":null}')
1515
cy.get('.ignore .error').should('not.exist')
1616
})
1717
})

0 commit comments

Comments
 (0)