import { Direction, ErrorName, Permission, PermissionState, Speed, Tag, describe, expect, test } from '@quiesco/vitest';
test(`the back button closes the sheet ${Tag.android}`, async ({ app }) => {
await app.pressBack();
});
test('Face ID login', { tags: [Tag.native, Tag.hardReset] }, async ({ app }) => {
await app.device.setPermission(Permission.camera, PermissionState.grant);
await app.swipe('card', Direction.left, { speed: Speed.fast });
});
describe(`settings ${Tag.native}`, () => {
test('a terminated app cannot be tapped', async ({ app }) => {
await app.device.terminate();
await expect(app.tap('save')).rejects.toMatchObject({ errorName: ErrorName.APP_NOT_RUNNING });
});
});