1
0
mirror of https://github.com/Unleash/unleash.git synced 2024-10-28 19:06:12 +01:00
unleash.unleash/frontend/cypress/oss/feature/feature.spec.ts
2024-05-22 08:20:11 +03:00

25 lines
583 B
TypeScript

///<reference path="../../global.d.ts" />
describe('feature', () => {
const randomId = String(Math.random()).split('.')[1];
const featureToggleName = `unleash-e2e-${randomId}`;
before(() => {
cy.runBefore();
});
after(() => {
cy.deleteFeature_API(featureToggleName);
});
beforeEach(() => {
cy.login_UI();
cy.visit('/features');
});
it('can create a feature flag', () => {
cy.createFeature_UI(featureToggleName, true, 'default', true);
cy.url().should('include', featureToggleName);
});
});