1
0
mirror of https://github.com/Unleash/unleash.git synced 2024-12-22 19:07:54 +01:00
unleash.unleash/frontend/cypress/oss/feature/feature.spec.ts
Tymoteusz Czech 828ecf8d63
fix: migrations e2e test (#8965)
Onboarding changed e2e test that should run before migration.
2024-12-12 11:19:03 +01:00

26 lines
636 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.contains('a', featureToggleName).click();
cy.url().should('include', featureToggleName);
});
});