Skip to content

Commit

Permalink
fix: Versioning test - always login regardless of skip test (#3424)
Browse files Browse the repository at this point in the history
  • Loading branch information
kyle-ssg committed Feb 15, 2024
1 parent b68cb43 commit a04aafb
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions frontend/e2e/tests/versioning-tests.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,13 +20,13 @@ import Project from '../../common/project';
export default async () => {
await flagsmith.init({fetch,environmentID:Project.flagsmith,api:Project.flagsmithClientAPI})
const hasFeature = flagsmith.hasFeature("feature_versioning")
log('Login')
await login(E2E_USER, PASSWORD)
if(!hasFeature) {
console.log("Skipping version test, feature not enabled.")
log("Skipping version test, feature not enabled.")
return
}

log('Login')
await login(E2E_USER, PASSWORD)
await createOrganisationAndProject('Flagsmith Versioning Org', 'Flagsmith Versioning Project')
await waitForElementVisible(byId('features-page'))
await click('#env-settings-link')
Expand Down

0 comments on commit a04aafb

Please sign in to comment.