diff --git a/frontend/tet/admin/browser-tests/login/login.testcafe.ts b/frontend/tet/admin/browser-tests/login/login.testcafe.ts index 92e92b5a71..b576d86dc9 100644 --- a/frontend/tet/admin/browser-tests/login/login.testcafe.ts +++ b/frontend/tet/admin/browser-tests/login/login.testcafe.ts @@ -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'); diff --git a/frontend/tet/admin/package.json b/frontend/tet/admin/package.json index 6ddf168219..6b233118b1 100644 --- a/frontend/tet/admin/package.json +++ b/frontend/tet/admin/package.json @@ -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": { diff --git a/frontend/tet/admin/src/components/header/Header.tsx b/frontend/tet/admin/src/components/header/Header.tsx index eb9d5dfe77..8ceac21bec 100644 --- a/frontend/tet/admin/src/components/header/Header.tsx +++ b/frontend/tet/admin/src/components/header/Header.tsx @@ -63,7 +63,6 @@ const Header: React.FC = () => { } : undefined } - hideLogin={isLoginPage} /> ); };