mirror of
https://github.com/Alfresco/alfresco-content-app.git
synced 2025-07-31 17:38:28 +00:00
use randomly generated names for users, nodes
This commit is contained in:
@@ -29,20 +29,17 @@ describe('Logout', () => {
|
||||
|
||||
const peopleApi = new RepoClient().people;
|
||||
|
||||
const johnDoe = {
|
||||
username: 'john.doe',
|
||||
password: 'john.doe'
|
||||
};
|
||||
const johnDoe = `user-${Utils.random()}`;
|
||||
|
||||
beforeAll((done) => {
|
||||
peopleApi
|
||||
.createUser(johnDoe.username, johnDoe.password)
|
||||
.createUser(johnDoe)
|
||||
.then(done);
|
||||
});
|
||||
|
||||
beforeEach((done) => {
|
||||
loginPage.load()
|
||||
.then(() => loginPage.loginWith(johnDoe.username, johnDoe.password))
|
||||
.then(() => loginPage.loginWith(johnDoe))
|
||||
.then(done);
|
||||
});
|
||||
|
||||
@@ -59,13 +56,6 @@ describe('Logout', () => {
|
||||
});
|
||||
});
|
||||
|
||||
xit('redirects to Login page when logging out by URL', () => {
|
||||
browser.get(APP_ROUTES.LOGOUT)
|
||||
.then(() => {
|
||||
expect(browser.getCurrentUrl()).toContain(APP_ROUTES.LOGIN);
|
||||
});
|
||||
});
|
||||
|
||||
it('redirects to Login page when pressing browser Back after logout', () => {
|
||||
page.signOut()
|
||||
.then(() => browser.driver.navigate().back())
|
||||
|
Reference in New Issue
Block a user