This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: QA Smoke Tests | |
on: | |
schedule: | |
- cron: '0 7 * * *' # 7 AM EST | |
push: | |
branches: [main] | |
jobs: | |
smoke: | |
runs-on: ubuntu-latest | |
steps: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { test, expect } from '../fixtures'; | |
test('API: Handle invalid or large payload', async ({ apiHelper }) => { | |
const result = await apiHelper.createUser({ | |
name: 'Invalid User', | |
}); | |
expect(result.status).toBe(201); | |
expect(result.body).not.toHaveProperty('email'); | |
expect(result.body).toHaveProperty('name', 'Invalid User'); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { test, expect } from '../fixtures'; | |
test('API: GET user policy data and POST email validation', async ({ apiHelper }) => { | |
const getResult = await apiHelper.getUser('2'); | |
expect(getResult.status).toBe(200); | |
expect(getResult.body.data).toHaveProperty('email', 'test.auto@reqres.in'); | |
expect(getResult.body.data).toHaveProperty('first_name', 'test'); | |
const postResult = await apiHelper.createUser({ |