Skip to content

Instantly share code, notes, and snippets.

@reinskywalker
Created February 23, 2023 08:54
Show Gist options
  • Save reinskywalker/0455bf1f2d2d5d9aa824a5fad24dcac3 to your computer and use it in GitHub Desktop.
Save reinskywalker/0455bf1f2d2d5d9aa824a5fad24dcac3 to your computer and use it in GitHub Desktop.
< reference types = "Cypress" / >
let identity
describe(`Channel Regular ${env.type}`, () => {
it('Restore Access Token', () => {
cy.getAccessToken().then((res) => {
console.log(res.body.access_token)
})
})
it('Generate UUID', () => {
cy.request({
method: 'POST',
url: `${env.url}`,
header: {
'Authorization': `Bearer ${identity}`,
"Content-type": "application/json"
}
})
.then((res) => {
console.log(res)
})
})
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment