Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Testsetup #1029

Merged
merged 13 commits into from
Jul 25, 2023
Merged

Testsetup #1029

merged 13 commits into from
Jul 25, 2023

Conversation

FritzHoing
Copy link
Collaborator

@FritzHoing FritzHoing commented Jul 21, 2023

Fixes the playwright config and adds aria-label as selectors.

@FritzHoing FritzHoing marked this pull request as ready for review July 25, 2023 11:51
e2e-tests/annotation.spec.ts Outdated Show resolved Hide resolved
e2e-tests/auth.setup.ts Outdated Show resolved Hide resolved
src/components/Header/index.tsx Outdated Show resolved Hide resolved
@FritzHoing
Copy link
Collaborator Author

Thank you very much for the review @LukasLohoff !

@FritzHoing FritzHoing merged commit 7bb9644 into main Jul 25, 2023
1 check passed
Comment on lines +8 to +11
process.env.ID;
process.env.HOST;
process.env.ADMIN_LOGIN;
process.env.ADMIN_PASSWORD;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this really needed? IMHO this makes no sense at all?

@@ -17,29 +18,30 @@ export default defineConfig({
open: 'never'
}]],
use: {
baseURL: process.env.HOST,
// das mal ausprobieren:
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This comment can be removed I assume?

import { test } from '@playwright/test';

import { annotations } from '@terrestris/shogun-e2e-tests/dist/shogun-gis-client/toolbox/annotation';
// import {header} from './header'
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This line can be removed.

+ 'code&scope=openid&nonce=6cd0da9a-b45c-4a9e-931d-99b6725a148e');
await page.goto(`https://${process.env.HOST}/auth/realms/SHOGun`
+ '/protocol/openid-connect/auth?client_id=shogun-client'
+ `&redirect_uri=https%3A%2F%2F${process.env.HOST}%2Fclient%2F%3FapplicationId%3D21&state=9a983abe-3b0c-`
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There are some hardcoded parameters, e.g. applicationId. Should we make them configurable?

storageState: 'playwright/.auth/admin.json'
});

test('test', async ({
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We should apply some useful names to the test (here and in all others).

]
"./src",
"e2e-tests/annotation.spec.ts",
"node_modules/@terrestris/shogun-e2e-tests/e2e-tests/shogun-gis-client/header/header",
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this needed?

"./src",
"e2e-tests/annotation.spec.ts",
"node_modules/@terrestris/shogun-e2e-tests/e2e-tests/shogun-gis-client/header/header",
"e2e-tests/annotation.spec.ts"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Duplicate entry. (Is this needed anyway?)

@dnlkoch
Copy link
Member

dnlkoch commented Jul 25, 2023

🎉 This PR is included in version 6.8.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

@dnlkoch dnlkoch deleted the testsetup branch August 14, 2023 12:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants