-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
C365610: Verify that "Change session locale" is rendered as a link (f…
…irebird) (TaaS) (#2502) * test created * change tags to text * delete unused imports * fix test file name * change Permissions import
- Loading branch information
1 parent
24ca93b
commit 4e57da7
Showing
1 changed file
with
41 additions
and
0 deletions.
There are no files selected for viewing
41 changes: 41 additions & 0 deletions
41
cypress/e2e/settings/tenant/verify-change-session-locale-link.cy.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
import { Permissions } from '../../../support/dictionary'; | ||
import Users from '../../../support/fragments/users/users'; | ||
import SettingsMenu from '../../../support/fragments/settingsMenu'; | ||
import TenantPane, { TENANTS } from '../../../support/fragments/settings/tenant/tenantPane'; | ||
import { Localization } from '../../../support/fragments/settings/tenant/general'; | ||
import TemporarySessionLocale from '../../../support/fragments/settings/developer/session-locale/temporarySessionLocale'; | ||
|
||
describe('Tenant', () => { | ||
const testData = {}; | ||
|
||
before('Create test data', () => { | ||
cy.createTempUser([ | ||
Permissions.uiSettingsDeveloperSessionLocale.gui, | ||
Permissions.settingsTenantEditLanguageLocationAndCurrency.gui, | ||
]).then((userProperties) => { | ||
testData.user = userProperties; | ||
|
||
cy.login(testData.user.username, testData.user.password, { | ||
path: SettingsMenu.tenantPath, | ||
waiter: TenantPane.waitLoading, | ||
}); | ||
}); | ||
}); | ||
|
||
after('Delete test data', () => { | ||
cy.getAdminToken(); | ||
Users.deleteViaApi(testData.user.userId); | ||
}); | ||
|
||
it( | ||
'C365610 Verify that "Change session locale" is rendered as a link (firebird) (TaaS)', | ||
{ tags: ['extendedPath', 'firebird'] }, | ||
() => { | ||
TenantPane.selectTenant(TENANTS.LANGUAGE_AND_LOCALIZATION); | ||
Localization.checkPaneContent(); | ||
Localization.clickChangeSessionLocalLanguage(); | ||
TemporarySessionLocale.waitLoading(); | ||
TemporarySessionLocale.verifyTitleOfPaneHeader('TEMPORARY Session locale'); | ||
}, | ||
); | ||
}); |