mirror of
https://github.com/elyby/accounts-frontend.git
synced 2025-05-31 14:11:58 +05:30
Migrate from flow to typescript
This commit is contained in:
@@ -1,3 +1,4 @@
|
||||
/// <reference types="cypress" />
|
||||
describe('/dev/applications - guest', () => {
|
||||
it('should render login button', () => {
|
||||
cy.visit('/dev/applications');
|
@@ -1,10 +1,12 @@
|
||||
/// <reference types="cypress" />
|
||||
|
||||
describe('/dev/applications - user', () => {
|
||||
before(() => {
|
||||
cy.login({ account: 'default' }).then(({ user }) => {
|
||||
cy.visit('/dev/applications');
|
||||
|
||||
// remove all previousely added apps
|
||||
cy.window().then(async ({ oauthApi }) => {
|
||||
cy.window().then(async (/** @type {any} */ { oauthApi }) => {
|
||||
const apps = await oauthApi.getAppsByUser(user.id);
|
||||
|
||||
await Promise.all(apps.map(app => oauthApi.delete(app.clientId)));
|
Reference in New Issue
Block a user