707 lines
63 KiB
Plaintext
707 lines
63 KiB
Plaintext
|
|
> job-tracker-ui@0.1.0 test
|
|
> jest --runInBand job-discovery.test.tsx -t search before filters
|
|
|
|
node.exe : FAIL src/job-discovery.test.tsx
|
|
At line:1 char:1
|
|
+ & "C:\Program Files\nodejs/node.exe" "C:\Program Files\nodejs/node_mo ...
|
|
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
+ CategoryInfo : NotSpecified: (FAIL src/job-discovery.test.tsx:String) [], RemoteException
|
|
+ FullyQualifiedErrorId : NativeCommandError
|
|
|
|
● keeps en search before filters and results with keyboard jump/return and no automatic provider search
|
|
|
|
TestingLibraryElementError: Unable to find an accessible element with the role "form" and name "Search NAV"
|
|
|
|
Here are the accessible roles:
|
|
|
|
alert:
|
|
|
|
Name "":
|
|
[36m<div[39m
|
|
[33mclass[39m=[32m"MuiPaper-root MuiPaper-elevation MuiPaper-rounded MuiPaper-elevation0 MuiAlert-root
|
|
MuiAlert-colorInfo MuiAlert-outlinedInfo MuiAlert-outlined css-fwlou5-MuiPaper-root-MuiAlert-root"[39m
|
|
[33mrole[39m=[32m"alert"[39m
|
|
[33mstyle[39m=[32m"--Paper-shadow: none;"[39m
|
|
[36m/>[39m
|
|
|
|
--------------------------------------------------
|
|
complementary:
|
|
|
|
Name "Search filters":
|
|
[36m<aside[39m
|
|
[33maria-label[39m=[32m"Search filters"[39m
|
|
[33mclass[39m=[32m"MuiBox-root css-4ymi2n"[39m
|
|
[36m/>[39m
|
|
|
|
--------------------------------------------------
|
|
banner:
|
|
|
|
Name "":
|
|
[36m<header[39m
|
|
[33mclass[39m=[32m"MuiBox-root css-163u82n"[39m
|
|
[36m/>[39m
|
|
|
|
Name "":
|
|
[36m<header[39m
|
|
[33mclass[39m=[32m"MuiBox-root css-163u82n"[39m
|
|
[36m/>[39m
|
|
|
|
--------------------------------------------------
|
|
heading:
|
|
|
|
Name "Search filters":
|
|
[36m<h2[39m
|
|
[33mclass[39m=[32m"MuiTypography-root MuiTypography-sectionTitle css-uf4832-MuiTypography-root"[39m
|
|
[36m/>[39m
|
|
|
|
Name "Saved searches":
|
|
[36m<h2[39m
|
|
[33mclass[39m=[32m"MuiTypography-root MuiTypography-sectionTitle css-z2uw0f-MuiTypography-root"[39m
|
|
[36m/>[39m
|
|
|
|
Name "Search results":
|
|
[36m<h2[39m
|
|
[33mclass[39m=[32m"MuiTypography-root MuiTypography-sectionTitle css-uf4832-MuiTypography-root"[39m
|
|
[36m/>[39m
|
|
|
|
--------------------------------------------------
|
|
button:
|
|
|
|
Name "Jump to results":
|
|
[36m<button[39m
|
|
[33mclass[39m=[32m"MuiButtonBase-root MuiButton-root MuiButton-text MuiButton-textPrimary
|
|
MuiButton-sizeMedium MuiButton-textSizeMedium MuiButton-colorPrimary MuiButton-root MuiButton-text
|
|
MuiButton-textPrimary MuiButton-sizeMedium MuiButton-textSizeMedium MuiButton-colorPrimary
|
|
css-1dn15bh-MuiButtonBase-root-MuiButton-root"[39m
|
|
[33mtabindex[39m=[32m"0"[39m
|
|
[33mtype[39m=[32m"button"[39m
|
|
[36m/>[39m
|
|
|
|
Name "Search NAV":
|
|
[36m<button[39m
|
|
[33mclass[39m=[32m"MuiButtonBase-root MuiButton-root MuiButton-contained MuiButton-containedPrimary
|
|
MuiButton-sizeMedium MuiButton-containedSizeMedium MuiButton-colorPrimary MuiButton-root MuiButton-contained
|
|
MuiButton-containedPrimary MuiButton-sizeMedium MuiButton-containedSizeMedium MuiButton-colorPrimary
|
|
css-83fk99-MuiButtonBase-root-MuiButton-root"[39m
|
|
[33mtabindex[39m=[32m"0"[39m
|
|
[33mtype[39m=[32m"submit"[39m
|
|
[36m/>[39m
|
|
|
|
Name "Save search":
|
|
[36m<button[39m
|
|
[33mclass[39m=[32m"MuiButtonBase-root MuiButton-root MuiButton-outlined MuiButton-outlinedPrimary
|
|
MuiButton-sizeMedium MuiButton-outlinedSizeMedium MuiButton-colorPrimary MuiButton-root MuiButton-outlined
|
|
MuiButton-outlinedPrimary MuiButton-sizeMedium MuiButton-outlinedSizeMedium MuiButton-colorPrimary
|
|
css-1g6yn02-MuiButtonBase-root-MuiButton-root"[39m
|
|
[33mtabindex[39m=[32m"0"[39m
|
|
[33mtype[39m=[32m"button"[39m
|
|
[36m/>[39m
|
|
|
|
Name "Return to search filters":
|
|
[36m<button[39m
|
|
[33mclass[39m=[32m"MuiButtonBase-root MuiButton-root MuiButton-text MuiButton-textPrimary
|
|
MuiButton-sizeMedium MuiButton-textSizeMedium MuiButton-colorPrimary MuiButton-root MuiButton-text
|
|
MuiButton-textPrimary MuiButton-sizeMedium MuiButton-textSizeMedium MuiButton-colorPrimary
|
|
css-1dn15bh-MuiButtonBase-root-MuiButton-root"[39m
|
|
[33mtabindex[39m=[32m"0"[39m
|
|
[33mtype[39m=[32m"button"[39m
|
|
[36m/>[39m
|
|
|
|
--------------------------------------------------
|
|
form:
|
|
|
|
Name "Search filters":
|
|
[36m<form[39m
|
|
[33maria-label[39m=[32m"Search filters"[39m
|
|
[33mclass[39m=[32m"MuiBox-root css-19hynio"[39m
|
|
[36m/>[39m
|
|
|
|
--------------------------------------------------
|
|
textbox:
|
|
|
|
Name "Role or company":
|
|
[36m<input[39m
|
|
[33maria-invalid[39m=[32m"false"[39m
|
|
[33mclass[39m=[32m"MuiInputBase-input MuiOutlinedInput-input
|
|
css-hafeiy-MuiInputBase-input-MuiOutlinedInput-input"[39m
|
|
[33mid[39m=[32m"_r_4_"[39m
|
|
[33mtype[39m=[32m"text"[39m
|
|
[33mvalue[39m=[32m""[39m
|
|
[36m/>[39m
|
|
|
|
Name "Municipality":
|
|
[36m<input[39m
|
|
[33maria-invalid[39m=[32m"false"[39m
|
|
[33mclass[39m=[32m"MuiInputBase-input MuiOutlinedInput-input
|
|
css-hafeiy-MuiInputBase-input-MuiOutlinedInput-input"[39m
|
|
[33mid[39m=[32m"_r_5_"[39m
|
|
[33mtype[39m=[32m"text"[39m
|
|
[33mvalue[39m=[32m""[39m
|
|
[36m/>[39m
|
|
|
|
Name "Search name":
|
|
[36m<input[39m
|
|
[33maria-invalid[39m=[32m"false"[39m
|
|
[33mclass[39m=[32m"MuiInputBase-input MuiOutlinedInput-input MuiInputBase-inputSizeSmall
|
|
css-111x7or-MuiInputBase-input-MuiOutlinedInput-input"[39m
|
|
[33mid[39m=[32m"_r_7_"[39m
|
|
[33mtype[39m=[32m"text"[39m
|
|
[33mvalue[39m=[32m""[39m
|
|
[36m/>[39m
|
|
|
|
--------------------------------------------------
|
|
paragraph:
|
|
|
|
Name "":
|
|
[36m<p[39m
|
|
[33mclass[39m=[32m"MuiTypography-root MuiTypography-body2 css-1qf9eb3-MuiTypography-root"[39m
|
|
[36m/>[39m
|
|
|
|
Name "":
|
|
[36m<p[39m
|
|
[33mclass[39m=[32m"MuiTypography-root MuiTypography-body2 css-1qf9eb3-MuiTypography-root"[39m
|
|
[36m/>[39m
|
|
|
|
Name "":
|
|
[36m<p[39m
|
|
[33mclass[39m=[32m"MuiTypography-root MuiTypography-body1 css-3yi46c-MuiTypography-root"[39m
|
|
[36m/>[39m
|
|
|
|
--------------------------------------------------
|
|
region:
|
|
|
|
Name "Search results":
|
|
[36m<div[39m
|
|
[33maria-busy[39m=[32m"false"[39m
|
|
[33maria-label[39m=[32m"Search results"[39m
|
|
[33mclass[39m=[32m"MuiBox-root css-4ymi2n"[39m
|
|
[33mrole[39m=[32m"region"[39m
|
|
[33mtabindex[39m=[32m"-1"[39m
|
|
[36m/>[39m
|
|
|
|
--------------------------------------------------
|
|
status:
|
|
|
|
Name "":
|
|
[36m<span[39m
|
|
[33maria-atomic[39m=[32m"true"[39m
|
|
[33maria-live[39m=[32m"polite"[39m
|
|
[33mclass[39m=[32m"MuiBox-root css-ty8jgw"[39m
|
|
[33mrole[39m=[32m"status"[39m
|
|
[36m/>[39m
|
|
|
|
--------------------------------------------------
|
|
|
|
Ignored nodes: comments, script, style
|
|
[36m<body>[39m
|
|
[36m<div>[39m
|
|
[36m<div[39m
|
|
[33mclass[39m=[32m"MuiStack-root css-en3wmb-MuiStack-root"[39m
|
|
[36m>[39m
|
|
[36m<div[39m
|
|
[33mclass[39m=[32m"MuiPaper-root MuiPaper-elevation MuiPaper-rounded MuiPaper-elevation0 MuiAlert-root
|
|
MuiAlert-colorInfo MuiAlert-outlinedInfo MuiAlert-outlined css-fwlou5-MuiPaper-root-MuiAlert-root"[39m
|
|
[33mrole[39m=[32m"alert"[39m
|
|
[33mstyle[39m=[32m"--Paper-shadow: none;"[39m
|
|
[36m>[39m
|
|
[36m<div[39m
|
|
[33mclass[39m=[32m"MuiAlert-icon css-1wrdnka-MuiAlert-icon"[39m
|
|
[36m>[39m
|
|
[36m<svg[39m
|
|
[33maria-hidden[39m=[32m"true"[39m
|
|
[33mclass[39m=[32m"MuiSvgIcon-root MuiSvgIcon-fontSizeInherit css-1ckov0h-MuiSvgIcon-root"[39m
|
|
[33mdata-testid[39m=[32m"InfoOutlinedIcon"[39m
|
|
[33mfocusable[39m=[32m"false"[39m
|
|
[33mviewBox[39m=[32m"0 0 24 24"[39m
|
|
[36m>[39m
|
|
[36m<path[39m
|
|
[33md[39m=[32m"M11,9H13V7H11M12,20C7.59,20 4,16.41 4,12C4,7.59 7.59,4 12,4C16.41,4 20,7.59 20,
|
|
12C20,16.41 16.41,20 12,20M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10, 10 0 0,0
|
|
12,2M11,17H13V11H11V17Z"[39m
|
|
[36m/>[39m
|
|
[36m</svg>[39m
|
|
[36m</div>[39m
|
|
[36m<div[39m
|
|
[33mclass[39m=[32m"MuiAlert-message css-zioonp-MuiAlert-message"[39m
|
|
[36m>[39m
|
|
[0mOfficial Norwegian vacancies from NAV. FINN, Indeed and LinkedIn jobs can still be captured by
|
|
URL.[0m
|
|
[36m</div>[39m
|
|
[36m</div>[39m
|
|
[36m<div[39m
|
|
[33mclass[39m=[32m"MuiBox-root css-1agdxl9"[39m
|
|
[33mdata-discovery-layout[39m=[32m"true"[39m
|
|
[36m>[39m
|
|
[36m<aside[39m
|
|
[33maria-label[39m=[32m"Search filters"[39m
|
|
[33mclass[39m=[32m"MuiBox-root css-4ymi2n"[39m
|
|
[36m>[39m
|
|
[36m<header[39m
|
|
[33mclass[39m=[32m"MuiBox-root css-163u82n"[39m
|
|
[36m>[39m
|
|
[36m<div[39m
|
|
[33mclass[39m=[32m"MuiBox-root css-14m33b5"[39m
|
|
[36m>[39m
|
|
[36m<h2[39m
|
|
[33mclass[39m=[32m"MuiTypography-root MuiTypography-sectionTitle
|
|
css-uf4832-MuiTypography-root"[39m
|
|
[36m>[39m
|
|
[0mSearch filters[0m
|
|
[36m</h2>[39m
|
|
[36m</div>[39m
|
|
[36m<div[39m
|
|
[33mclass[39m=[32m"MuiBox-root css-li2ax9"[39m
|
|
[36m>[39m
|
|
[36m<button[39m
|
|
[33mclass[39m=[32m"MuiButtonBase-root MuiButton-root MuiButton-text MuiButton-textPrimary
|
|
MuiButton-sizeMedium MuiButton-textSizeMedium MuiButton-colorPrimary MuiButton-root MuiButton-text
|
|
MuiButton-textPrimary MuiButton-sizeMedium MuiButton-textSizeMedium MuiButton-colorPrimary
|
|
css-1dn15bh-MuiButtonBase-root-MuiButton-root"[39m
|
|
[33mtabindex[39m=[32m"0"[39m
|
|
[33mtype[39m=[32m"button"[39m
|
|
[36m>[39m
|
|
[0mJump to results[0m
|
|
[36m</button>[39m
|
|
[36m</div>[39m
|
|
[36m</header>[39m
|
|
[36m<form[39m
|
|
[33maria-label[39m=[32m"Search filters"[39m
|
|
[33mclass[39m=[32m"MuiBox-root css-19hynio"[39m
|
|
[36m>[39m
|
|
[36m<div[39m
|
|
[33mclass[39m=[32m"MuiFormControl-root MuiTextField-root
|
|
css-1xp5r68-MuiFormControl-root-MuiTextField-root"[39m
|
|
[36m>[39m
|
|
[36m<label[39m
|
|
[33mclass[39m=[32m"MuiFormLabel-root MuiInputLabel-root MuiInputLabel-formControl
|
|
MuiInputLabel-animated MuiInputLabel-outlined MuiFormLabel-colorPrimary MuiInputLabel-root MuiInputLabel-formControl
|
|
MuiInputLabel-animated MuiInputLabel-outlined css-10i8ezf-MuiFormLabel-root-MuiInputLabel-root"[39m
|
|
[33mdata-shrink[39m=[32m"false"[39m
|
|
[33mfor[39m=[32m"_r_4_"[39m
|
|
[33mid[39m=[32m"_r_4_-label"[39m
|
|
[36m>[39m
|
|
[0mRole or company[0m
|
|
[36m</label>[39m
|
|
[36m<div[39m
|
|
[33mclass[39m=[32m"MuiInputBase-root MuiOutlinedInput-root MuiInputBase-colorPrimary
|
|
MuiInputBase-formControl css-1tft0rd-MuiInputBase-root-MuiOutlinedInput-root"[39m
|
|
[36m>[39m
|
|
[36m<input[39m
|
|
[33maria-invalid[39m=[32m"false"[39m
|
|
[33mclass[39m=[32m"MuiInputBase-input MuiOutlinedInput-input
|
|
css-hafeiy-MuiInputBase-input-MuiOutlinedInput-input"[39m
|
|
[33mid[39m=[32m"_r_4_"[39m
|
|
[33mtype[39m=[32m"text"[39m
|
|
[33mvalue[39m=[32m""[39m
|
|
[36m/>[39m
|
|
[36m<fieldset[39m
|
|
[33maria-hidden[39m=[32m"true"[39m
|
|
[33mclass[39m=[32m"MuiOutlinedInput-notchedOutline
|
|
css-18p5xg2-MuiNotchedOutlined-root-MuiOutlinedInput-notchedOutline"[39m
|
|
[36m>[39m
|
|
[36m<legend[39m
|
|
[33mclass[39m=[32m"css-1n64csd-MuiNotchedOutlined-root"[39m
|
|
[36m>[39m
|
|
[36m<span>[39m
|
|
[0mRole or company[0m
|
|
[36m</span>[39m
|
|
[36m</legend>[39m
|
|
[36m</fieldset>[39m
|
|
[36m</div>[39m
|
|
[36m</div>[39m
|
|
[36m<div[39m
|
|
[33mclass[39m=[32m"MuiFormControl-root MuiTextField-root
|
|
css-1xp5r68-MuiFormControl-root-MuiTextField-root"[39m
|
|
[36m>[39m
|
|
[36m<label[39m
|
|
[33mclass[39m=[32m"MuiFormLabel-root MuiInputLabel-root MuiInputLabel-formControl
|
|
MuiInputLabel-animated MuiInputLabel-outlined MuiFormLabel-colorPrimary MuiInputLabel-root MuiInputLabel-formControl
|
|
MuiInputLabel-animated MuiInputLabel-outlined css-10i8ezf-MuiFormLabel-root-MuiInputLabel-root"[39m
|
|
[33mdata-shrink[39m=[32m"false"[39m
|
|
[33mfor[39m=[32m"_r_5_"[39m
|
|
[33mid[39m=[32m"_r_5_-label"[39m
|
|
[36m>[39m
|
|
[0mMunicipality[0m
|
|
[36m</label>[39m
|
|
[36m<div[39m
|
|
[33mclass[39m=[32m"MuiInputBase-root MuiOutlinedInput-root MuiInputBase-colorPrimary
|
|
MuiInputBase-formControl css-1tft0rd-MuiInputBase-root-MuiOutlinedInput-root"[39m
|
|
[36m>[39m
|
|
[36m<input[39m
|
|
[33maria-invalid[39m=[32m"false"[39m
|
|
[33mclass[39m=[32m"MuiInputBase-input MuiOutlinedInput-input
|
|
css-hafeiy-MuiInputBase-input-MuiOutlinedInput-input"[39m
|
|
[33mid[39m=[32m"_r_5_"[39m
|
|
[33mtype[39m=[32m"text"[39m
|
|
[33mvalue[39m=[32m""[39m
|
|
[36m/>[39m
|
|
[36m<fieldset[39m
|
|
[33maria-hidden[...
|
|
|
|
32 | await screen.findByText(translations[language].jobDiscoveryNoSavedSearches);
|
|
33 | const filters = screen.getByRole('complementary', { name: filtersName });
|
|
> 34 | const form = screen.getByRole('form', { name: translations[language].jobDiscoverySearchNav });
|
|
| ^
|
|
35 | const query = within(form).getByRole('textbox', { name: translations[language].jobDiscoveryRoleCompany });
|
|
36 | const municipality = within(filters).getByRole('textbox', { name:
|
|
translations[language].jobDiscoveryMunicipality }) as HTMLInputElement;
|
|
37 | const results = screen.getByRole('region', { name: translations[language].jobDiscoveryResults });
|
|
|
|
at Object.getElementError (node_modules/@testing-library/dom/dist/config.js:37:19)
|
|
at node_modules/@testing-library/dom/dist/query-helpers.js:76:38
|
|
at node_modules/@testing-library/dom/dist/query-helpers.js:52:17
|
|
at node_modules/@testing-library/dom/dist/query-helpers.js:95:19
|
|
at getByRole (src/job-discovery.test.tsx:34:23)
|
|
|
|
● keeps nb search before filters and results with keyboard jump/return and no automatic provider search
|
|
|
|
TestingLibraryElementError: Unable to find an accessible element with the role "form" and name "Søk i NAV"
|
|
|
|
Here are the accessible roles:
|
|
|
|
alert:
|
|
|
|
Name "":
|
|
[36m<div[39m
|
|
[33mclass[39m=[32m"MuiPaper-root MuiPaper-elevation MuiPaper-rounded MuiPaper-elevation0 MuiAlert-root
|
|
MuiAlert-colorInfo MuiAlert-outlinedInfo MuiAlert-outlined css-fwlou5-MuiPaper-root-MuiAlert-root"[39m
|
|
[33mrole[39m=[32m"alert"[39m
|
|
[33mstyle[39m=[32m"--Paper-shadow: none;"[39m
|
|
[36m/>[39m
|
|
|
|
--------------------------------------------------
|
|
complementary:
|
|
|
|
Name "Søkefiltre":
|
|
[36m<aside[39m
|
|
[33maria-label[39m=[32m"Søkefiltre"[39m
|
|
[33mclass[39m=[32m"MuiBox-root css-4ymi2n"[39m
|
|
[36m/>[39m
|
|
|
|
--------------------------------------------------
|
|
banner:
|
|
|
|
Name "":
|
|
[36m<header[39m
|
|
[33mclass[39m=[32m"MuiBox-root css-163u82n"[39m
|
|
[36m/>[39m
|
|
|
|
Name "":
|
|
[36m<header[39m
|
|
[33mclass[39m=[32m"MuiBox-root css-163u82n"[39m
|
|
[36m/>[39m
|
|
|
|
--------------------------------------------------
|
|
heading:
|
|
|
|
Name "Søkefiltre":
|
|
[36m<h2[39m
|
|
[33mclass[39m=[32m"MuiTypography-root MuiTypography-sectionTitle css-uf4832-MuiTypography-root"[39m
|
|
[36m/>[39m
|
|
|
|
Name "Lagrede søk":
|
|
[36m<h2[39m
|
|
[33mclass[39m=[32m"MuiTypography-root MuiTypography-sectionTitle css-z2uw0f-MuiTypography-root"[39m
|
|
[36m/>[39m
|
|
|
|
Name "Søkeresultater":
|
|
[36m<h2[39m
|
|
[33mclass[39m=[32m"MuiTypography-root MuiTypography-sectionTitle css-uf4832-MuiTypography-root"[39m
|
|
[36m/>[39m
|
|
|
|
--------------------------------------------------
|
|
button:
|
|
|
|
Name "Gå til resultater":
|
|
[36m<button[39m
|
|
[33mclass[39m=[32m"MuiButtonBase-root MuiButton-root MuiButton-text MuiButton-textPrimary
|
|
MuiButton-sizeMedium MuiButton-textSizeMedium MuiButton-colorPrimary MuiButton-root MuiButton-text
|
|
MuiButton-textPrimary MuiButton-sizeMedium MuiButton-textSizeMedium MuiButton-colorPrimary
|
|
css-1dn15bh-MuiButtonBase-root-MuiButton-root"[39m
|
|
[33mtabindex[39m=[32m"0"[39m
|
|
[33mtype[39m=[32m"button"[39m
|
|
[36m/>[39m
|
|
|
|
Name "Søk i NAV":
|
|
[36m<button[39m
|
|
[33mclass[39m=[32m"MuiButtonBase-root MuiButton-root MuiButton-contained MuiButton-containedPrimary
|
|
MuiButton-sizeMedium MuiButton-containedSizeMedium MuiButton-colorPrimary MuiButton-root MuiButton-contained
|
|
MuiButton-containedPrimary MuiButton-sizeMedium MuiButton-containedSizeMedium MuiButton-colorPrimary
|
|
css-83fk99-MuiButtonBase-root-MuiButton-root"[39m
|
|
[33mtabindex[39m=[32m"0"[39m
|
|
[33mtype[39m=[32m"submit"[39m
|
|
[36m/>[39m
|
|
|
|
Name "Lagre søk":
|
|
[36m<button[39m
|
|
[33mclass[39m=[32m"MuiButtonBase-root MuiButton-root MuiButton-outlined MuiButton-outlinedPrimary
|
|
MuiButton-sizeMedium MuiButton-outlinedSizeMedium MuiButton-colorPrimary MuiButton-root MuiButton-outlined
|
|
MuiButton-outlinedPrimary MuiButton-sizeMedium MuiButton-outlinedSizeMedium MuiButton-colorPrimary
|
|
css-1g6yn02-MuiButtonBase-root-MuiButton-root"[39m
|
|
[33mtabindex[39m=[32m"0"[39m
|
|
[33mtype[39m=[32m"button"[39m
|
|
[36m/>[39m
|
|
|
|
Name "Tilbake til søkefiltre":
|
|
[36m<button[39m
|
|
[33mclass[39m=[32m"MuiButtonBase-root MuiButton-root MuiButton-text MuiButton-textPrimary
|
|
MuiButton-sizeMedium MuiButton-textSizeMedium MuiButton-colorPrimary MuiButton-root MuiButton-text
|
|
MuiButton-textPrimary MuiButton-sizeMedium MuiButton-textSizeMedium MuiButton-colorPrimary
|
|
css-1dn15bh-MuiButtonBase-root-MuiButton-root"[39m
|
|
[33mtabindex[39m=[32m"0"[39m
|
|
[33mtype[39m=[32m"button"[39m
|
|
[36m/>[39m
|
|
|
|
--------------------------------------------------
|
|
form:
|
|
|
|
Name "Søkefiltre":
|
|
[36m<form[39m
|
|
[33maria-label[39m=[32m"Søkefiltre"[39m
|
|
[33mclass[39m=[32m"MuiBox-root css-19hynio"[39m
|
|
[36m/>[39m
|
|
|
|
--------------------------------------------------
|
|
textbox:
|
|
|
|
Name "Rolle eller bedrift":
|
|
[36m<input[39m
|
|
[33maria-invalid[39m=[32m"false"[39m
|
|
[33mclass[39m=[32m"MuiInputBase-input MuiOutlinedInput-input
|
|
css-hafeiy-MuiInputBase-input-MuiOutlinedInput-input"[39m
|
|
[33mid[39m=[32m"_r_g_"[39m
|
|
[33mtype[39m=[32m"text"[39m
|
|
[33mvalue[39m=[32m""[39m
|
|
[36m/>[39m
|
|
|
|
Name "Kommune":
|
|
[36m<input[39m
|
|
[33maria-invalid[39m=[32m"false"[39m
|
|
[33mclass[39m=[32m"MuiInputBase-input MuiOutlinedInput-input
|
|
css-hafeiy-MuiInputBase-input-MuiOutlinedInput-input"[39m
|
|
[33mid[39m=[32m"_r_h_"[39m
|
|
[33mtype[39m=[32m"text"[39m
|
|
[33mvalue[39m=[32m""[39m
|
|
[36m/>[39m
|
|
|
|
Name "Navn på søket":
|
|
[36m<input[39m
|
|
[33maria-invalid[39m=[32m"false"[39m
|
|
[33mclass[39m=[32m"MuiInputBase-input MuiOutlinedInput-input MuiInputBase-inputSizeSmall
|
|
css-111x7or-MuiInputBase-input-MuiOutlinedInput-input"[39m
|
|
[33mid[39m=[32m"_r_j_"[39m
|
|
[33mtype[39m=[32m"text"[39m
|
|
[33mvalue[39m=[32m""[39m
|
|
[36m/>[39m
|
|
|
|
--------------------------------------------------
|
|
paragraph:
|
|
|
|
Name "":
|
|
[36m<p[39m
|
|
[33mclass[39m=[32m"MuiTypography-root MuiTypography-body2 css-1qf9eb3-MuiTypography-root"[39m
|
|
[36m/>[39m
|
|
|
|
Name "":
|
|
[36m<p[39m
|
|
[33mclass[39m=[32m"MuiTypography-root MuiTypography-body2 css-1qf9eb3-MuiTypography-root"[39m
|
|
[36m/>[39m
|
|
|
|
Name "":
|
|
[36m<p[39m
|
|
[33mclass[39m=[32m"MuiTypography-root MuiTypography-body1 css-3yi46c-MuiTypography-root"[39m
|
|
[36m/>[39m
|
|
|
|
--------------------------------------------------
|
|
region:
|
|
|
|
Name "Søkeresultater":
|
|
[36m<div[39m
|
|
[33maria-busy[39m=[32m"false"[39m
|
|
[33maria-label[39m=[32m"Søkeresultater"[39m
|
|
[33mclass[39m=[32m"MuiBox-root css-4ymi2n"[39m
|
|
[33mrole[39m=[32m"region"[39m
|
|
[33mtabindex[39m=[32m"-1"[39m
|
|
[36m/>[39m
|
|
|
|
--------------------------------------------------
|
|
status:
|
|
|
|
Name "":
|
|
[36m<span[39m
|
|
[33maria-atomic[39m=[32m"true"[39m
|
|
[33maria-live[39m=[32m"polite"[39m
|
|
[33mclass[39m=[32m"MuiBox-root css-ty8jgw"[39m
|
|
[33mrole[39m=[32m"status"[39m
|
|
[36m/>[39m
|
|
|
|
--------------------------------------------------
|
|
|
|
Ignored nodes: comments, script, style
|
|
[36m<body>[39m
|
|
[36m<div>[39m
|
|
[36m<div[39m
|
|
[33mclass[39m=[32m"MuiStack-root css-en3wmb-MuiStack-root"[39m
|
|
[36m>[39m
|
|
[36m<div[39m
|
|
[33mclass[39m=[32m"MuiPaper-root MuiPaper-elevation MuiPaper-rounded MuiPaper-elevation0 MuiAlert-root
|
|
MuiAlert-colorInfo MuiAlert-outlinedInfo MuiAlert-outlined css-fwlou5-MuiPaper-root-MuiAlert-root"[39m
|
|
[33mrole[39m=[32m"alert"[39m
|
|
[33mstyle[39m=[32m"--Paper-shadow: none;"[39m
|
|
[36m>[39m
|
|
[36m<div[39m
|
|
[33mclass[39m=[32m"MuiAlert-icon css-1wrdnka-MuiAlert-icon"[39m
|
|
[36m>[39m
|
|
[36m<svg[39m
|
|
[33maria-hidden[39m=[32m"true"[39m
|
|
[33mclass[39m=[32m"MuiSvgIcon-root MuiSvgIcon-fontSizeInherit css-1ckov0h-MuiSvgIcon-root"[39m
|
|
[33mdata-testid[39m=[32m"InfoOutlinedIcon"[39m
|
|
[33mfocusable[39m=[32m"false"[39m
|
|
[33mviewBox[39m=[32m"0 0 24 24"[39m
|
|
[36m>[39m
|
|
[36m<path[39m
|
|
[33md[39m=[32m"M11,9H13V7H11M12,20C7.59,20 4,16.41 4,12C4,7.59 7.59,4 12,4C16.41,4 20,7.59 20,
|
|
12C20,16.41 16.41,20 12,20M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10, 10 0 0,0
|
|
12,2M11,17H13V11H11V17Z"[39m
|
|
[36m/>[39m
|
|
[36m</svg>[39m
|
|
[36m</div>[39m
|
|
[36m<div[39m
|
|
[33mclass[39m=[32m"MuiAlert-message css-zioonp-MuiAlert-message"[39m
|
|
[36m>[39m
|
|
[0mOffisielle norske stillinger fra NAV. Stillinger fra FINN, Indeed og LinkedIn kan fortsatt hentes
|
|
inn via nettadresse.[0m
|
|
[36m</div>[39m
|
|
[36m</div>[39m
|
|
[36m<div[39m
|
|
[33mclass[39m=[32m"MuiBox-root css-1agdxl9"[39m
|
|
[33mdata-discovery-layout[39m=[32m"true"[39m
|
|
[36m>[39m
|
|
[36m<aside[39m
|
|
[33maria-label[39m=[32m"Søkefiltre"[39m
|
|
[33mclass[39m=[32m"MuiBox-root css-4ymi2n"[39m
|
|
[36m>[39m
|
|
[36m<header[39m
|
|
[33mclass[39m=[32m"MuiBox-root css-163u82n"[39m
|
|
[36m>[39m
|
|
[36m<div[39m
|
|
[33mclass[39m=[32m"MuiBox-root css-14m33b5"[39m
|
|
[36m>[39m
|
|
[36m<h2[39m
|
|
[33mclass[39m=[32m"MuiTypography-root MuiTypography-sectionTitle
|
|
css-uf4832-MuiTypography-root"[39m
|
|
[36m>[39m
|
|
[0mSøkefiltre[0m
|
|
[36m</h2>[39m
|
|
[36m</div>[39m
|
|
[36m<div[39m
|
|
[33mclass[39m=[32m"MuiBox-root css-li2ax9"[39m
|
|
[36m>[39m
|
|
[36m<button[39m
|
|
[33mclass[39m=[32m"MuiButtonBase-root MuiButton-root MuiButton-text MuiButton-textPrimary
|
|
MuiButton-sizeMedium MuiButton-textSizeMedium MuiButton-colorPrimary MuiButton-root MuiButton-text
|
|
MuiButton-textPrimary MuiButton-sizeMedium MuiButton-textSizeMedium MuiButton-colorPrimary
|
|
css-1dn15bh-MuiButtonBase-root-MuiButton-root"[39m
|
|
[33mtabindex[39m=[32m"0"[39m
|
|
[33mtype[39m=[32m"button"[39m
|
|
[36m>[39m
|
|
[0mGå til resultater[0m
|
|
[36m</button>[39m
|
|
[36m</div>[39m
|
|
[36m</header>[39m
|
|
[36m<form[39m
|
|
[33maria-label[39m=[32m"Søkefiltre"[39m
|
|
[33mclass[39m=[32m"MuiBox-root css-19hynio"[39m
|
|
[36m>[39m
|
|
[36m<div[39m
|
|
[33mclass[39m=[32m"MuiFormControl-root MuiTextField-root
|
|
css-1xp5r68-MuiFormControl-root-MuiTextField-root"[39m
|
|
[36m>[39m
|
|
[36m<label[39m
|
|
[33mclass[39m=[32m"MuiFormLabel-root MuiInputLabel-root MuiInputLabel-formControl
|
|
MuiInputLabel-animated MuiInputLabel-outlined MuiFormLabel-colorPrimary MuiInputLabel-root MuiInputLabel-formControl
|
|
MuiInputLabel-animated MuiInputLabel-outlined css-10i8ezf-MuiFormLabel-root-MuiInputLabel-root"[39m
|
|
[33mdata-shrink[39m=[32m"false"[39m
|
|
[33mfor[39m=[32m"_r_g_"[39m
|
|
[33mid[39m=[32m"_r_g_-label"[39m
|
|
[36m>[39m
|
|
[0mRolle eller bedrift[0m
|
|
[36m</label>[39m
|
|
[36m<div[39m
|
|
[33mclass[39m=[32m"MuiInputBase-root MuiOutlinedInput-root MuiInputBase-colorPrimary
|
|
MuiInputBase-formControl css-1tft0rd-MuiInputBase-root-MuiOutlinedInput-root"[39m
|
|
[36m>[39m
|
|
[36m<input[39m
|
|
[33maria-invalid[39m=[32m"false"[39m
|
|
[33mclass[39m=[32m"MuiInputBase-input MuiOutlinedInput-input
|
|
css-hafeiy-MuiInputBase-input-MuiOutlinedInput-input"[39m
|
|
[33mid[39m=[32m"_r_g_"[39m
|
|
[33mtype[39m=[32m"text"[39m
|
|
[33mvalue[39m=[32m""[39m
|
|
[36m/>[39m
|
|
[36m<fieldset[39m
|
|
[33maria-hidden[39m=[32m"true"[39m
|
|
[33mclass[39m=[32m"MuiOutlinedInput-notchedOutline
|
|
css-18p5xg2-MuiNotchedOutlined-root-MuiOutlinedInput-notchedOutline"[39m
|
|
[36m>[39m
|
|
[36m<legend[39m
|
|
[33mclass[39m=[32m"css-1n64csd-MuiNotchedOutlined-root"[39m
|
|
[36m>[39m
|
|
[36m<span>[39m
|
|
[0mRolle eller bedrift[0m
|
|
[36m</span>[39m
|
|
[36m</legend>[39m
|
|
[36m</fieldset>[39m
|
|
[36m</div>[39m
|
|
[36m</div>[39m
|
|
[36m<div[39m
|
|
[33mclass[39m=[32m"MuiFormControl-root MuiTextField-root
|
|
css-1xp5r68-MuiFormControl-root-MuiTextField-root"[39m
|
|
[36m>[39m
|
|
[36m<label[39m
|
|
[33mclass[39m=[32m"MuiFormLabel-root MuiInputLabel-root MuiInputLabel-formControl
|
|
MuiInputLabel-animated MuiInputLabel-outlined MuiFormLabel-colorPrimary MuiInputLabel-root MuiInputLabel-formControl
|
|
MuiInputLabel-animated MuiInputLabel-outlined css-10i8ezf-MuiFormLabel-root-MuiInputLabel-root"[39m
|
|
[33mdata-shrink[39m=[32m"false"[39m
|
|
[33mfor[39m=[32m"_r_h_"[39m
|
|
[33mid[39m=[32m"_r_h_-label"[39m
|
|
[36m>[39m
|
|
[0mKommune[0m
|
|
[36m</label>[39m
|
|
[36m<div[39m
|
|
[33mclass[39m=[32m"MuiInputBase-root MuiOutlinedInput-root MuiInputBase-colorPrimary
|
|
MuiInputBase-formControl css-1tft0rd-MuiInputBase-root-MuiOutlinedInput-root"[39m
|
|
[36m>[39m
|
|
[36m<input[39m
|
|
[33maria-invalid[39m=[32m"false"[39m
|
|
[33mclass[39m=[32m"MuiInputBase-input MuiOutlinedInput-input
|
|
css-hafeiy-MuiInputBase-input-MuiOutlinedInput-input"[39m
|
|
[33mid[39m=[32m"_r_h_"[39m
|
|
[33mtype[39m=[32m"text"[39m
|
|
[33mvalue[39m=[32m""[39m
|
|
[36m/>[39m
|
|
[36m<fieldset[39m
|
|
[33ma...
|
|
|
|
32 | await screen.findByText(translations[language].jobDiscoveryNoSavedSearches);
|
|
33 | const filters = screen.getByRole('complementary', { name: filtersName });
|
|
> 34 | const form = screen.getByRole('form', { name: translations[language].jobDiscoverySearchNav });
|
|
| ^
|
|
35 | const query = within(form).getByRole('textbox', { name: translations[language].jobDiscoveryRoleCompany });
|
|
36 | const municipality = within(filters).getByRole('textbox', { name:
|
|
translations[language].jobDiscoveryMunicipality }) as HTMLInputElement;
|
|
37 | const results = screen.getByRole('region', { name: translations[language].jobDiscoveryResults });
|
|
|
|
at Object.getElementError (node_modules/@testing-library/dom/dist/config.js:37:19)
|
|
at node_modules/@testing-library/dom/dist/query-helpers.js:76:38
|
|
at node_modules/@testing-library/dom/dist/query-helpers.js:52:17
|
|
at node_modules/@testing-library/dom/dist/query-helpers.js:95:19
|
|
at getByRole (src/job-discovery.test.tsx:34:23)
|
|
|
|
Test Suites: 1 failed, 1 total
|
|
Tests: 2 failed, 21 skipped, 23 total
|
|
Snapshots: 0 total
|
|
Time: 3.778 s, estimated 7 s
|
|
Ran all test suites matching job-discovery.test.tsx with tests matching "search before filters".
|