Skip to content

Commit

Permalink
Chore: fix wrong test.step usage (RocketChat#26873)
Browse files Browse the repository at this point in the history
  • Loading branch information
ggazzo authored Sep 14, 2022
1 parent 2bb9f22 commit bb37564
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions apps/meteor/tests/e2e/omnichannel-currentChats.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ test.describe.serial('Current Chats', () => {
await page.goto('/omnichannel/current');
});

test.describe('Render Fields', async () => {
test('Render Fields', async () => {
await test.step('expect show guest Field', async () => {
await expect(pageOmnichannelCurrentChats.guestField).toBeVisible();
});
Expand Down Expand Up @@ -42,12 +42,9 @@ test.describe.serial('Current Chats', () => {
});
});

test.describe('Render Options', async () => {
test.beforeEach(async () => {
await pageOmnichannelCurrentChats.doOpenOptions();
});

test('Render Options', async () => {
await test.step('expect show form options button', async () => {
await pageOmnichannelCurrentChats.doOpenOptions();
await expect(pageOmnichannelCurrentChats.formOptions).toBeVisible();
});

Expand All @@ -64,7 +61,7 @@ test.describe.serial('Current Chats', () => {
});
});

test.describe('Render Table', async () => {
test('Render Table', async () => {
await test.step('expect show table', async () => {
await expect(pageOmnichannelCurrentChats.table).toBeVisible();
});
Expand Down

0 comments on commit bb37564

Please sign in to comment.