Skip to content

Commit

Permalink
update config + remove console logs from onboarding tests
Browse files Browse the repository at this point in the history
  • Loading branch information
IvanKiral committed Sep 28, 2023
1 parent 776f745 commit 916d4fa
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 8 deletions.
13 changes: 12 additions & 1 deletion playwright.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,10 +32,21 @@ export default defineConfig({
/* Configure projects for major browsers */
projects: [
{
name: 'onBoarding chromium',
name: 'onboarding',
use: {...devices['Desktop Chrome']},
testMatch: /onboarding.spec\.ts/,
teardown: 'teardown',
},
{
name: 'tests',
use: {
...devices['Desktop Chrome'],
storageState: 'playwright/.auth/user.json',
},
testMatch: '*playwright/*.spec.ts',
testIgnore: /onboarding.spec\.ts/,
dependencies: ['onboarding'],
},
{
name: 'teardown',
testMatch: /global.teardown\.ts/,
Expand Down
7 changes: 0 additions & 7 deletions playwright/onboarding.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -84,9 +84,6 @@ test('On boarding path', async ({page, request}) => {
loginFormData.append('userName', userEmail);
loginFormData.append('password', userPassword);

// eslint-disable-next-line no-console
console.log(userEmail);

const loginReponse = await request.post('http://localhost:8080/lumeer-engine/rest/users/login', {
headers: {
'Content-Type': 'application/x-www-form-urlencoded',
Expand All @@ -102,10 +99,6 @@ test('On boarding path', async ({page, request}) => {
},
});

// eslint-disable-next-line no-console
console.log(x.status);
// eslint-disable-next-line no-console
console.log(await x.text());
await page.waitForTimeout(10000);

if (await page.locator('button[type=button]:has-text("Reload")').isVisible()) {
Expand Down

0 comments on commit 916d4fa

Please sign in to comment.