Skip to content

Commit 966983e

Browse files
authored
fix: add a test for a long request to see the scroll (#186)
1 parent 5bffc17 commit 966983e

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed

cypress/e2e/shows-credentials.cy.ts

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,4 +24,28 @@ describe('cy.api', () => {
2424
})
2525
},
2626
)
27+
28+
it(
29+
'show very long credentials',
30+
{
31+
env: {
32+
API_SHOW_CREDENTIALS: true,
33+
},
34+
},
35+
() => {
36+
cy.api({
37+
url: '/',
38+
auth: {
39+
bearer: Cypress._.repeat('bearer_', 30),
40+
username: 'login',
41+
password: 'password',
42+
},
43+
}).then((response) => {
44+
expect(response.status).eq(200)
45+
cy.contains('"bearer": "bearer_bearer_')
46+
cy.contains('"password": "password"')
47+
// you should be able to scroll the container horizontally
48+
})
49+
},
50+
)
2751
})

0 commit comments

Comments
 (0)