Skip to content

Commit

Permalink
fix: broken tests
Browse files Browse the repository at this point in the history
  • Loading branch information
dougfabris committed Jul 28, 2022
1 parent 545ae1e commit a315ecb
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 7 deletions.
3 changes: 3 additions & 0 deletions apps/meteor/tests/e2e/09-channel.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@ test.describe('Channel', () => {
await pageHomeChannel.tabs.btnTabInfo.click();
await pageHomeChannel.tabs.editNameBtn.click();

await pageHomeChannel.tabs.editTopicTextInput.click({ clickCount: 3 });
await pageHomeChannel.tabs.editTopicTextInput.fill('TOPIC EDITED');
await pageHomeChannel.tabs.editNameSave.click();

Expand All @@ -77,6 +78,7 @@ test.describe('Channel', () => {
await pageHomeChannel.tabs.btnTabInfo.click();
await pageHomeChannel.tabs.editNameBtn.click();

await pageHomeChannel.tabs.editAnnouncementTextInput.click({ clickCount: 3 });
await pageHomeChannel.tabs.editAnnouncementTextInput.type('ANNOUNCEMENT EDITED');
await pageHomeChannel.tabs.editNameSave.click();

Expand All @@ -87,6 +89,7 @@ test.describe('Channel', () => {
await pageHomeChannel.tabs.btnTabInfo.click();
await pageHomeChannel.tabs.editNameBtn.click();

await pageHomeChannel.tabs.editDescriptionTextInput.click({ clickCount: 3 });
await pageHomeChannel.tabs.editDescriptionTextInput.type('DESCRIPTION EDITED');
await pageHomeChannel.tabs.editNameSave.click();
await pageHomeChannel.tabs.mainSideBarBack.click();
Expand Down
14 changes: 7 additions & 7 deletions apps/meteor/tests/e2e/11-admin.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -104,19 +104,19 @@ test.describe('Administration', () => {
});

test.describe('Users', () => {
test.beforeAll(async () => {
test.beforeEach(async () => {
await pageAdmin.usersLink.click();
});

test.describe('Filter text', async () => {
test.beforeEach(async () => {
test.beforeEach(async ({ page }) => {
await pageAdmin.usersFilter.click({ clickCount: 3 });
await pageAdmin.usersFilter.type('');
await page.keyboard.press('Backspace');
});

test.afterAll(async () => {
test.afterAll(async ({ page }) => {
await pageAdmin.usersFilter.click({ clickCount: 3 });
await pageAdmin.usersFilter.type('');
await page.keyboard.press('Backspace');
});

test('expect show rocket.cat user item', async () => {
Expand All @@ -131,7 +131,7 @@ test.describe('Administration', () => {
});

test.describe('User info', () => {
test.beforeAll(async () => {
test.beforeEach(async () => {
await pageAdmin.usersFilter.type('rocket.cat');
});

Expand All @@ -148,7 +148,7 @@ test.describe('Administration', () => {
});

test.describe('Create user', () => {
test.beforeAll(async () => {
test.beforeEach(async () => {
await pageAdmin.tabs.usersAddUserTab.click();
});

Expand Down

0 comments on commit a315ecb

Please sign in to comment.