Skip to content

Commit

Permalink
Merge pull request #1925 from NDLANO/film-spec-to-playwright
Browse files Browse the repository at this point in the history
Added film_spec as playwright
  • Loading branch information
MaPoKen authored Aug 2, 2023
2 parents 111c4cf + b6105d4 commit 169785f
Show file tree
Hide file tree
Showing 11 changed files with 120 additions and 63 deletions.
57 changes: 0 additions & 57 deletions cypress/e2e/Film/film_spec.js

This file was deleted.

2 changes: 1 addition & 1 deletion e2e/apiMocks/concept_usage_search.json
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"totalCount":1,"page":1,"pageSize":50,"language":"*","results":[{"id":7,"title":{"title":"Ulike metoder","language":"nb"},"metaDescription":{"metaDescription":"Forskjellige metoder egner seg til å svare på forskjellige typer spørsmål. Her skal vi se på noen av metodene.","language":"nb"},"metaImage":{"url":"https://api.test.ndla.no/image-api/raw/id/4025","alt":"Stor hånd med forstørrelsesglass over liten mann med snakkeboble. Illustrasjon.","language":"nb"},"url":"https://api.test.ndla.no/draft-api/v1/drafts/7","contexts":[{"id":"urn:resource:1:168358","publicId":"urn:resource:1:168358","subject":"123-NYTT-TESTFAG","root":"123-NYTT-TESTFAG","subjectId":"urn:subject:98842c96-fbe3-4acb-92d1-a5eacbaf7c71","rootId":"urn:subject:98842c96-fbe3-4acb-92d1-a5eacbaf7c71","relevance":"Kjernestoff","path":"/subject:98842c96-fbe3-4acb-92d1-a5eacbaf7c71/topic:36296991-a936-472b-8709-d8a433b0d944/topic:e0a01361-6202-4dee-ac8a-3417584a9820/resource:1:168358","breadcrumbs":["123-NYTT-TESTFAG","synnøve emne","synnøve underemne","Ulike metodar"],"learningResourceType":"standard","contextType":"standard","resourceTypes":[{"id":"urn:resourcetype:subjectMaterial","name":"Fagstoff","language":"nb"},{"id":"urn:resourcetype:academicArticle","name":"Fagartikkel","language":"nb"}],"language":"id","isPrimaryConnection":true,"isPrimary":true,"isActive":true},{"id":"urn:resource:1:168358","publicId":"urn:resource:1:168358","subject":"UTGÅTT - Samfunnsfag (LK06)","root":"UTGÅTT - Samfunnsfag (LK06)","subjectId":"urn:subject:1:19dae192-699d-488f-8218-d81535ce3ae3","rootId":"urn:subject:1:19dae192-699d-488f-8218-d81535ce3ae3","relevance":"Kjernestoff","path":"/subject:1:19dae192-699d-488f-8218-d81535ce3ae3/topic:2:179373/topic:2:170165/resource:1:168358","breadcrumbs":["UTGÅTT - Samfunnsfag (LK06)","Utforskeren ","Samfunnsfaglige tenkemåter"],"learningResourceType":"standard","contextType":"standard","resourceTypes":[{"id":"urn:resourcetype:subjectMaterial","name":"Fagstoff","language":"nb"},{"id":"urn:resourcetype:academicArticle","name":"Fagartikkel","language":"nb"}],"language":"id","isPrimaryConnection":false,"isPrimary":false,"isActive":false},{"id":"urn:resource:1:168358","publicId":"urn:resource:1:168358","subject":"Samfunnskunnskap","root":"Samfunnskunnskap","subjectId":"urn:subject:1:470720f9-6b03-40cb-ab58-e3e130803578","rootId":"urn:subject:1:470720f9-6b03-40cb-ab58-e3e130803578","relevance":"Kjernestoff","path":"/subject:1:470720f9-6b03-40cb-ab58-e3e130803578/topic:1:a317f589-7995-43aa-8b68-92182c0b23c6/topic:1:35efa357-acc7-4828-b241-cad5467d1dc6/resource:1:168358","breadcrumbs":["Samfunnskunnskap","Verktøy for utforskning","Samfunnsfaglige metoder"],"learningResourceType":"standard","contextType":"standard","resourceTypes":[{"id":"urn:resourcetype:subjectMaterial","name":"Fagstoff","language":"nb"},{"id":"urn:resourcetype:academicArticle","name":"Fagartikkel","language":"nb"}],"language":"id","isPrimaryConnection":false,"isPrimary":false,"isActive":true},{"id":"urn:resource:1:168358","publicId":"urn:resource:1:168358","subject":"Utvikling (IM-ITK vg2)","root":"Utvikling (IM-ITK vg2)","subjectId":"urn:subject:5e53694a-c8eb-4871-8558-71523941c28e","rootId":"urn:subject:5e53694a-c8eb-4871-8558-71523941c28e","relevance":"Kjernestoff","path":"/subject:5e53694a-c8eb-4871-8558-71523941c28e/topic:fc048919-d357-417f-8515-d3f2dfae9017/resource:1:168358","breadcrumbs":["Utvikling (IM-ITK vg2)","Kartlegge behov med spørreskjema"],"learningResourceType":"standard","contextType":"standard","resourceTypes":[{"id":"urn:resourcetype:subjectMaterial","name":"Fagstoff","language":"nb"},{"id":"urn:resourcetype:academicArticle","name":"Fagartikkel","language":"nb"}],"language":"id","isPrimaryConnection":false,"isPrimary":false,"isActive":true}],"supportedLanguages":["nb","nn"],"learningResourceType":"standard","status":{"current":"PUBLISHED","other":["IMPORTED"]},"traits":[],"score":0.0,"highlights":[{"field":"embedResourcesAndIds.id","matches":["<em>1</em>","<em>1</em>"]},{"field":"embedResourcesAndIds.resource","matches":["<em>concept</em>","<em>concept</em>","<em>concept</em>","<em>concept</em>"]}],"paths":["/subject:1:19dae192-699d-488f-8218-d81535ce3ae3/topic:2:179373/topic:2:170165/resource:1:168358","/subject:1:470720f9-6b03-40cb-ab58-e3e130803578/topic:1:a317f589-7995-43aa-8b68-92182c0b23c6/topic:1:35efa357-acc7-4828-b241-cad5467d1dc6/resource:1:168358","/subject:98842c96-fbe3-4acb-92d1-a5eacbaf7c71/topic:36296991-a936-472b-8709-d8a433b0d944/topic:e0a01361-6202-4dee-ac8a-3417584a9820/resource:1:168358","/subject:5e53694a-c8eb-4871-8558-71523941c28e/topic:fc048919-d357-417f-8515-d3f2dfae9017/resource:1:168358"],"lastUpdated":"2022-05-19T10:14:16Z","license":"CC-BY-SA-4.0","revisions":[{"revisionDate":"2030-01-01T00:00:00Z","note":"Automatisk revisjonsdato satt av systemet.","status":"needs-revision"}],"comments":[],"prioritized":false}],"suggestions":[],"aggregations":[]}
{"totalCount":1,"page":1,"pageSize":50,"language":"*","results":[{"id":7,"title":{"title":"Ulike metoder","language":"nb"},"metaDescription":{"metaDescription":"Forskjellige metoder egner seg til å svare på forskjellige typer spørsmål. Her skal vi se på noen av metodene.","language":"nb"},"metaImage":{"url":"https://api.test.ndla.no/image-api/raw/id/4025","alt":"Stor hånd med forstørrelsesglass over liten mann med snakkeboble. Illustrasjon.","language":"nb"},"url":"https://api.test.ndla.no/draft-api/v1/drafts/7","contexts":[{"id":"urn:resource:1:168358","publicId":"urn:resource:1:168358","subject":"Utvikling (IM-ITK vg2)","root":"Utvikling (IM-ITK vg2)","subjectId":"urn:subject:5e53694a-c8eb-4871-8558-71523941c28e","rootId":"urn:subject:5e53694a-c8eb-4871-8558-71523941c28e","relevance":"Kjernestoff","path":"/subject:5e53694a-c8eb-4871-8558-71523941c28e/topic:fc048919-d357-417f-8515-d3f2dfae9017/resource:1:168358","breadcrumbs":["Utvikling (IM-ITK vg2)","Kartlegge behov med spørreskjema"],"learningResourceType":"standard","contextType":"standard","resourceTypes":[{"id":"urn:resourcetype:subjectMaterial","name":"Fagstoff","language":"nb"},{"id":"urn:resourcetype:academicArticle","name":"Fagartikkel","language":"nb"}],"language":"id","isPrimaryConnection":true,"isPrimary":true,"isActive":true},{"id":"urn:resource:1:168358","publicId":"urn:resource:1:168358","subject":"UTGÅTT - Samfunnsfag (LK06)","root":"UTGÅTT - Samfunnsfag (LK06)","subjectId":"urn:subject:1:19dae192-699d-488f-8218-d81535ce3ae3","rootId":"urn:subject:1:19dae192-699d-488f-8218-d81535ce3ae3","relevance":"Kjernestoff","path":"/subject:1:19dae192-699d-488f-8218-d81535ce3ae3/topic:2:179373/topic:2:170165/resource:1:168358","breadcrumbs":["UTGÅTT - Samfunnsfag (LK06)","Utforskeren ","Samfunnsfaglige tenkemåter"],"learningResourceType":"standard","contextType":"standard","resourceTypes":[{"id":"urn:resourcetype:subjectMaterial","name":"Fagstoff","language":"nb"},{"id":"urn:resourcetype:academicArticle","name":"Fagartikkel","language":"nb"}],"language":"id","isPrimaryConnection":false,"isPrimary":false,"isActive":false},{"id":"urn:resource:1:168358","publicId":"urn:resource:1:168358","subject":"Samfunnskunnskap","root":"Samfunnskunnskap","subjectId":"urn:subject:1:470720f9-6b03-40cb-ab58-e3e130803578","rootId":"urn:subject:1:470720f9-6b03-40cb-ab58-e3e130803578","relevance":"Kjernestoff","path":"/subject:1:470720f9-6b03-40cb-ab58-e3e130803578/topic:1:a317f589-7995-43aa-8b68-92182c0b23c6/topic:1:35efa357-acc7-4828-b241-cad5467d1dc6/resource:1:168358","breadcrumbs":["Samfunnskunnskap","Verktøy for utforskning","Samfunnsfaglige metoder"],"learningResourceType":"standard","contextType":"standard","resourceTypes":[{"id":"urn:resourcetype:subjectMaterial","name":"Fagstoff","language":"nb"},{"id":"urn:resourcetype:academicArticle","name":"Fagartikkel","language":"nb"}],"language":"id","isPrimaryConnection":false,"isPrimary":false,"isActive":true}],"supportedLanguages":["nb","nn"],"learningResourceType":"standard","status":{"current":"PUBLISHED","other":["IMPORTED"]},"traits":[],"score":0.0,"highlights":[{"field":"embedResourcesAndIds.id","matches":["<em>1</em>","<em>1</em>"]},{"field":"embedResourcesAndIds.resource","matches":["<em>concept</em>","<em>concept</em>","<em>concept</em>","<em>concept</em>"]}],"paths":["/subject:1:19dae192-699d-488f-8218-d81535ce3ae3/topic:2:179373/topic:2:170165/resource:1:168358","/subject:1:470720f9-6b03-40cb-ab58-e3e130803578/topic:1:a317f589-7995-43aa-8b68-92182c0b23c6/topic:1:35efa357-acc7-4828-b241-cad5467d1dc6/resource:1:168358","/subject:5e53694a-c8eb-4871-8558-71523941c28e/topic:fc048919-d357-417f-8515-d3f2dfae9017/resource:1:168358"],"lastUpdated":"2022-05-19T10:14:16Z","license":"CC-BY-SA-4.0","revisions":[{"revisionDate":"2030-01-01T00:00:00Z","note":"Automatisk revisjonsdato satt av systemet.","status":"needs-revision"}],"comments":[],"prioritized":false}],"suggestions":[],"aggregations":[]}
2 changes: 1 addition & 1 deletion e2e/apiMocks/concept_user_data.json
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{ "userId": "test_user_id", "latestEditedArticles": ["532"] }
{"userId":"test_user_id","latestEditedArticles":["532"]}
1 change: 1 addition & 0 deletions e2e/apiMocks/concept_zendesk_token.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"token":"test_token"}
1 change: 1 addition & 0 deletions e2e/apiMocks/film_all_movies.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"totalCount":1,"page":1,"pageSize":10,"language":"*","results":[{"id":1062,"title":{"title":"Brukerstøtte","language":"nb"},"metaDescription":{"metaDescription":"«Brukerstøtte» er en humoristisk kortfilm fra 2009. Manus og regi er ved André Øvredal.","language":"nb"},"metaImage":{"url":"https://api.test.ndla.no/image-api/raw/id/46060","alt":"Utsnitt fra filmen Brukerstøtte.","language":"nb"},"url":"https://api.test.ndla.no/article-api/v2/articles/1062","contexts":[{"id":"urn:resource:1:142111","publicId":"urn:resource:1:142111","subject":"NDLA film","root":"NDLA film","subjectId":"urn:subject:20","rootId":"urn:subject:20","relevance":"Tilleggsstoff","path":"/subject:20/topic:1:193720/topic:1:194411/resource:1:142111","breadcrumbs":["NDLA film","Folkehelse og livsmestring","Kommunikasjon"],"learningResourceType":"standard","contextType":"standard","resourceTypes":[{"id":"urn:resourcetype:SourceMaterial","name":"Kildemateriell","language":"nb"},{"id":"urn:resourcetype:shortFilm","name":"Kortfilm","language":"nb"}],"language":"nb","isPrimaryConnection":true,"isPrimary":true,"isActive":true},{"id":"urn:resource:1:142111","publicId":"urn:resource:1:142111","subject":"Bygg og anleggsteknikk","root":"Bygg og anleggsteknikk","subjectId":"urn:programme:97a5a3b0-8b9f-4d05-9248-f4ad526f8ff4","rootId":"urn:programme:97a5a3b0-8b9f-4d05-9248-f4ad526f8ff4","relevance":"Tilleggsstoff","path":"/programme:97a5a3b0-8b9f-4d05-9248-f4ad526f8ff4/programme:1b826174-01d3-4876-81be-8839727da935/programme:995c6c41-bc5e-405a-af01-0ad9233ed3a4/subject:20/topic:1:193720/topic:1:194411/resource:1:142111","breadcrumbs":["Bygg og anleggsteknikk","Vg1","Andre ressurser","NDLA film","Folkehelse og livsmestring","Kommunikasjon"],"learningResourceType":"standard","contextType":"standard","resourceTypes":[{"id":"urn:resourcetype:SourceMaterial","name":"Kildemateriell","language":"nb"},{"id":"urn:resourcetype:shortFilm","name":"Kortfilm","language":"nb"}],"language":"nb","isPrimaryConnection":true,"isPrimary":true,"isActive":true},{"id":"urn:resource:1:142111","publicId":"urn:resource:1:142111","subject":"UTGÅTT - Markedsføring og salg (SS-SSS vg1) (LK06)","root":"UTGÅTT - Markedsføring og salg (SS-SSS vg1) (LK06)","subjectId":"urn:subject:1:6b35c125-5a82-4a30-9d60-0646c31dce32","rootId":"urn:subject:1:6b35c125-5a82-4a30-9d60-0646c31dce32","relevance":"Tilleggsstoff","path":"/subject:1:6b35c125-5a82-4a30-9d60-0646c31dce32/topic:2:183846/topic:2:71425/resource:1:142111","breadcrumbs":["UTGÅTT - Markedsføring og salg (SS-SSS vg1) (LK06)","Salg og service","Servicebegrepet"],"learningResourceType":"standard","contextType":"standard","resourceTypes":[{"id":"urn:resourcetype:SourceMaterial","name":"Kildemateriell","language":"nb"},{"id":"urn:resourcetype:shortFilm","name":"Kortfilm","language":"nb"}],"language":"nb","isPrimaryConnection":false,"isPrimary":false,"isActive":false},{"id":"urn:resource:1:142111","publicId":"urn:resource:1:142111","subject":"UTGÅTT - Kommunikasjon og kultur 1 (LK06)","root":"UTGÅTT - Kommunikasjon og kultur 1 (LK06)","subjectId":"urn:subject:1:18569f4e-5901-472a-96a0-b06c09b201fb","rootId":"urn:subject:1:18569f4e-5901-472a-96a0-b06c09b201fb","relevance":"Tilleggsstoff","path":"/subject:1:18569f4e-5901-472a-96a0-b06c09b201fb/topic:2:185337/topic:2:21798/resource:1:142111","breadcrumbs":["UTGÅTT - Kommunikasjon og kultur 1 (LK06)","Kommunikasjonssteori","Introduksjon til kommunikasjonsbegrepet"],"learningResourceType":"standard","contextType":"standard","resourceTypes":[{"id":"urn:resourcetype:SourceMaterial","name":"Kildemateriell","language":"nb"},{"id":"urn:resourcetype:shortFilm","name":"Kortfilm","language":"nb"}],"language":"nb","isPrimaryConnection":false,"isPrimary":false,"isActive":false}],"supportedLanguages":["nb","nn"],"learningResourceType":"standard","traits":["VIDEO"],"score":185.59666442871094,"highlights":[{"field":"title.nb","matches":["<em>Brukerstøtte</em>"]},{"field":"content.nb","matches":["Når hun ringer <em>brukerstøtte</em>, møter hun en vennlig og hjelpsom servicemedarbeider, som gjør sitt beste"]},{"field":"title.nn","matches":["<em>Brukerstøtte</em>"]},{"field":"contexts.rootId","matches":["<em>urn:subject:20</em>"]},{"field":"introduction.nb","matches":["En kvinne får problemer med å åpne døra, og ringer <em>brukerstøtte</em> for å få hjelp."]},{"field":"tags.nb.decompounded","matches":["<em>brukerstøtte</em>"]},{"field":"tags.nn","matches":["<em>brukerstøtte</em>"]},{"field":"tags.nn.decompounded","matches":["<em>brukerstøtte</em>"]},{"field":"tags.nb","matches":["<em>brukerstøtte</em>"]},{"field":"introduction.nb.decompounded","matches":["En kvinne får problemer med å åpne døra, og ringer <em>brukerstøtte</em> for å få hjelp."]},{"field":"contexts.contextType","matches":["<em>standard</em>","<em>standard</em>","<em>standard</em>","<em>standard</em>"]},{"field":"metaDescription.nb","matches":["«<em>Brukerstøtte</em>» er en humoristisk kortfilm fra 2009. Manus og regi er ved André Øvredal."]}],"paths":["/subject:20/topic:1:193720/topic:1:194411/resource:1:142111","/programme:97a5a3b0-8b9f-4d05-9248-f4ad526f8ff4/programme:1b826174-01d3-4876-81be-8839727da935/programme:995c6c41-bc5e-405a-af01-0ad9233ed3a4/subject:20/topic:1:193720/topic:1:194411/resource:1:142111","/subject:1:6b35c125-5a82-4a30-9d60-0646c31dce32/topic:2:183846/topic:2:71425/resource:1:142111","/subject:1:18569f4e-5901-472a-96a0-b06c09b201fb/topic:2:185337/topic:2:21798/resource:1:142111"],"lastUpdated":"2020-06-17T11:43:07Z","license":"CC-BY-SA-4.0","revisions":[]}],"suggestions":[{"name":"content","suggestions":[{"text":"Brukerstøtte","offset":0,"length":12,"options":[]}]},{"name":"title","suggestions":[{"text":"Brukerstøtte","offset":0,"length":12,"options":[]}]}],"aggregations":[]}
1 change: 1 addition & 0 deletions e2e/apiMocks/film_frontpage.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"name":"Film","about":[{"title":"Om NDLA film","description":"Ndla film er en nettbasert filmtjeneste for elever og lærere i videregående skole. Her finner du spillefilmer, kortfilmer, dokumentarfilmer og TV-serier.","visualElement":{"type":"brightcove","url":"https://players.brightcove.net/4806596774001/BkLm8fT_default/index.html?videoId=5796676276001","alt":"Video: Om NDLA film."},"language":"nb"},{"title":"Om NDLA film","description":"Ndla film er ei nettbasert filmteneste for elevar og lærarar i videregåande opplæring. Her finn du spelefilmar, kortfilmar, dokumentarfilmar og TV-seriar.","visualElement":{"type":"brightcove","url":"https://players.brightcove.net/4806596774001/BkLm8fT_default/index.html?videoId=5796676276001","alt":"Video: Om NDLA film."},"language":"nn"}],"movieThemes":[{"name":[{"name":"Identitet","language":"nb"},{"name":"Identitet","language":"nn"},{"name":"Identity","language":"en"}],"movies":["urn:article:31913","urn:article:28189","urn:article:26219","urn:article:25322","urn:article:25527","urn:article:1303","urn:article:19531","urn:article:19264","urn:article:1302"]},{"name":[{"name":"Menneskerettigheter","language":"nb"},{"name":"Menneskerettar","language":"nn"},{"name":"Human rights","language":"en"}],"movies":["urn:article:35327","urn:article:30811","urn:article:30978","urn:article:26133","urn:article:26066","urn:article:19245","urn:article:19240"]},{"name":[{"name":"Urfolk","language":"nb"},{"name":"Urfolk","language":"nn"},{"name":" Indigenous people","language":"en"}],"movies":["urn:article:35247","urn:article:19665","urn:article:19287","urn:article:19308","urn:article:19280","urn:article:19660","urn:article:19663"]},{"name":[{"name":"Klima og miljø","language":"nb"},{"name":"Klima og miljø","language":"nn"},{"name":"Climate and environment","language":"en"}],"movies":["urn:article:35655","urn:article:26991","urn:article:22015","urn:article:22212","urn:article:19550","urn:article:19540","urn:article:19538","urn:article:21923"]},{"name":[{"name":"Krig og konflikt","language":"nb"},{"name":"Krig og konflikt","language":"nn"},{"name":"War and conflict","language":"en"}],"movies":["urn:article:36818","urn:article:26359","urn:article:19569","urn:article:19580","urn:article:19593","urn:article:7107","urn:article:19602"]}],"slideShow":["urn:article:25527","urn:article:25322","urn:article:30978","urn:article:1302"]}
Loading

0 comments on commit 169785f

Please sign in to comment.