-
Notifications
You must be signed in to change notification settings - Fork 6
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
Testsetup #1029
Conversation
src/e2e-tests/test-results/auth.setup.ts-authenticate-as-admin-setup-retry1/trace.zip
Outdated
Show resolved
Hide resolved
Thank you very much for the review @LukasLohoff ! |
process.env.ID; | ||
process.env.HOST; | ||
process.env.ADMIN_LOGIN; | ||
process.env.ADMIN_PASSWORD; |
There was a problem hiding this comment.
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: |
There was a problem hiding this comment.
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' |
There was a problem hiding this comment.
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-` |
There was a problem hiding this comment.
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 ({ |
There was a problem hiding this comment.
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", |
There was a problem hiding this comment.
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" |
There was a problem hiding this comment.
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?)
🎉 This PR is included in version 6.8.0 🎉 The release is available on: Your semantic-release bot 📦🚀 |
Fixes the playwright config and adds aria-label as selectors.