Skip to content

Commit

Permalink
allow CI runs to run tests in parallell+ test it on branch
Browse files Browse the repository at this point in the history
  • Loading branch information
Nyeng committed Sep 24, 2024
1 parent 9e588ff commit 0fe261f
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/deploy-at.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ run-name: 'AT environments: ${{ github.sha }}'

on:
push:
branches: ['main']
branches: ['test/rewrite-delegation-tests']

jobs:
containerize:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/template-playwright.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ jobs:
- name: Running yarn tests
working-directory: playwright
run: |
yarn run env:${{ inputs.environment }} --workers=1 --retries=2
yarn run env:${{ inputs.environment }} --retries=2
- uses: actions/upload-artifact@v4
if: always()
with:
Expand Down
6 changes: 3 additions & 3 deletions playwright/e2eTests/api-delegering.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ test.describe.configure({ mode: 'parallel' });

test.describe('API-Delegations to organization user', () => {
test('Delegate api to an organization', async ({ apiDelegations, login }) => {
const user = {
const userThatDelegates = {
id: '12917198150',
reportee: 'AKSEPTABEL MOTLØS TIGER AS',
orgNumber: '213920812',
Expand All @@ -23,8 +23,8 @@ test.describe('API-Delegations to organization user', () => {
orgNumber: '312792680',
};

await login.loginWithUser(user.id);
await login.chooseReportee(user.reportee);
await login.loginWithUser(userThatDelegates.id);
await login.chooseReportee(userThatDelegates.reportee);
await apiDelegations.deleteDelegatedAPIs();

await apiDelegations.delegateAPI(standardApiDetails.name, userToDelegateTo.orgNumber);
Expand Down
1 change: 0 additions & 1 deletion playwright/e2eTests/idPortenLogin.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,5 @@ import { loginWithUser } from 'playwright/pages/loginPage';

test('Login with TestID', async ({ page }) => {
const login = new loginWithUser(page);

await login.loginWithUser('02828698497');
});

0 comments on commit 0fe261f

Please sign in to comment.