Skip to content
Snippets Groups Projects
Commit 2fe6174a authored by Mohamed Amine Ben Salah's avatar Mohamed Amine Ben Salah
Browse files

fixes user and multiusers automated test

parent 9ae345bb
No related branches found
No related tags found
No related merge requests found
......@@ -3,11 +3,16 @@ const Status = require('./user/status');
const MultiUsers = require('./user/multiusers');
describe('User', () => {
beforeEach(() => {
jest.setTimeout(30000);
});
test('Change status', async () => {
const test = new Status();
let response;
try {
await test.init(Page.getArgs());
await test.closeAudioModal();
response = await test.test();
} catch (e) {
console.log(e);
......@@ -22,11 +27,13 @@ describe('User', () => {
let response;
try {
await test.init();
await test.page1.closeAudioModal();
await test.page2.closeAudioModal();
response = await test.test();
} catch (err) {
console.log(err);
} finally {
await test.close();
await test.close(test.page1, test.page2);
}
expect(response).toBe(true);
});
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment