Skip to content

Commit

Permalink
TET: test issue
Browse files Browse the repository at this point in the history
  • Loading branch information
sirtawast committed Aug 11, 2023
1 parent d81acc8 commit 7049e35
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
2 changes: 2 additions & 0 deletions frontend/tet/admin/browser-tests/login/login.testcafe.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,9 @@ fixture('Frontpage')
);

test('user can authenticate and log out', async (t) => {
//await doEmployerLogin(t, 'fi');
const header = new Header(translationsApi);
await header.userIsLoggedOut();
const loginLink = Selector('button').withAttribute('data-testid', 'oidcLoginButton');
await t.click(loginLink);
const suomiFiData = await doLogin(t, 'fi');
Expand Down
2 changes: 1 addition & 1 deletion frontend/tet/admin/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
"test:coverage": "yarn test:debug-dom --verbose --coverage",
"test:debug-nock": "cross-env DEBUG=nock.* yarn test",
"browser-test": "cross-env LOCAL_TEST_RUN=1 testcafe 'chrome --allow-insecure-localhost --ignore-certificate-errors --ignore-urlfetcher-cert-requests --window-size=\"1249,720\"' browser-tests/ --experimental-proxyless",
"browser-test:ci": "testcafe 'chrome:headless --disable-gpu --window-size=\"1249,720\" --ignore-certificate-errors-spki-list=\"8sg/cl7YabrOFqSqH+Bu0e+P27Av33gWgi8Lq28DW1I=,gJt+wt/T3afCRkxtMMSjXcl/99sgzWc2kk1c1PC9tG0=,zrQI2/1q8i2SRPmMZ1sMntIkG+lMW0legPFokDo3nrY=\"' --screenshots path=report --video report --reporter spec,custom,html:report/index.html browser-tests/ --experimental-proxyless",
"browser-test:ci": "testcafe 'chrome:headless --disable-gpu --window-size=\"1249,720\" --ignore-certificate-errors-spki-list=\"8sg/cl7YabrOFqSqH+Bu0e+P27Av33gWgi8Lq28DW1I=,gJt+wt/T3afCRkxtMMSjXcl/99sgzWc2kk1c1PC9tG0=,zrQI2/1q8i2SRPmMZ1sMntIkG+lMW0legPFokDo3nrY=\"' --screenshots path=report --video report --reporter spec,custom,html:report/index.html browser-tests/",
"lint": "eslint --ext js,ts,tsx src"
},
"dependencies": {
Expand Down
1 change: 0 additions & 1 deletion frontend/tet/admin/src/components/header/Header.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,6 @@ const Header: React.FC = () => {
}
: undefined
}
hideLogin={isLoginPage}
/>
);
};
Expand Down

0 comments on commit 7049e35

Please sign in to comment.