Skip to content

Commit

Permalink
Chore: Tests intermitences (#26464)
Browse files Browse the repository at this point in the history
  • Loading branch information
weslley543 authored Aug 4, 2022
1 parent a97e926 commit 1cb8101
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 10 deletions.
6 changes: 3 additions & 3 deletions apps/meteor/playwright.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,9 @@ export default {
outputDir: 'tests/e2e/.playwright',
reporter: process.env.CI ? 'github' : 'list',
testDir: 'tests/e2e',
workers: process.env.CI ? 2 : undefined,
timeout: process.env.CI ? 2000_000 : 600_000,
workers: 1,
retries: process.env.CI ? 2 : undefined,
globalTimeout: 2000_000,
timeout: 60 * 1000,
globalTimeout: 40 * 60 * 1000,
maxFailures: process.env.CI ? 5 : undefined,
} as PlaywrightTestConfig;
7 changes: 1 addition & 6 deletions apps/meteor/tests/e2e/administration.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -61,14 +61,9 @@ test.describe.parallel('administration', () => {
});

test.describe('Settings', () => {
test.beforeEach(async () => {
await poAdmin.sidenav.linkSettings.click();
});

test.describe('General', () => {
test.beforeEach(async ({ page }) => {
await poAdmin.inputSearchSettings.type('general');
await page.locator('[data-qa-id="General"] >> text="Open"').click();
await page.goto('/admin/settings/General');
});

test('expect be abble to reset a setting after a change', async () => {
Expand Down
2 changes: 1 addition & 1 deletion apps/meteor/tests/e2e/file-upload.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ test.describe.serial('file-upload', () => {

test('expect send file with name/description updated', async () => {
await poHomeChannel.content.dragAndDropFile();
await poHomeChannel.content.descriptionInput.type('any_description');
await poHomeChannel.content.descriptionInput.fill('any_description');
await poHomeChannel.content.fileNameInput.fill('any_file1.txt');
await poHomeChannel.content.btnModalConfirm.click();

Expand Down

0 comments on commit 1cb8101

Please sign in to comment.