@@ -10,10 +10,10 @@ const MediaType = {
10
10
} ;
11
11
12
12
const LinkResult = {
13
- negative : "ErrorOutlineOutlinedIcon " ,
14
- mention : "SentimentSatisfiedIcon " ,
15
- positive : "TaskAltOutlinedIcon " ,
16
- none : null
13
+ negative : "Warning " ,
14
+ mention : "Mentions " ,
15
+ positive : "Fact checker " ,
16
+ none : "Unlabelled"
17
17
} ;
18
18
19
19
const MediaVideoStatus = {
@@ -90,13 +90,13 @@ const MediaServices = {
90
90
mentions : [ "DBKF" ]
91
91
} ,
92
92
extractedURLAnalyses : {
93
- "https://www.unhcr.org/us/emergencies/ukraine-emergency" : null ,
93
+ "https://www.unhcr.org/us/emergencies/ukraine-emergency" : LinkResult . none ,
94
94
"https://www.breitbart.com/europe/2024/01/06/illegal-migrant-arrivals-highest-since-2015-migrant-crisis-says-germany/" : LinkResult . negative ,
95
- "https://www.politico.eu/article/germany-migration-president-frank-walter-steinmeier-breaking-point/" : null ,
95
+ "https://www.politico.eu/article/germany-migration-president-frank-walter-steinmeier-breaking-point/" : LinkResult . none ,
96
96
"https://www.breitbart.com/europe/2023/07/14/half-of-ukrainian-refugees-in-germany-want-to-stay-forever/" : LinkResult . negative ,
97
- "https://www.theglobeandmail.com/politics/article-displaced-ukrainians-want-to-settle-permanently-in-canada/" : null ,
97
+ "https://www.theglobeandmail.com/politics/article-displaced-ukrainians-want-to-settle-permanently-in-canada/" : LinkResult . none ,
98
98
"https://x.com/BreitbartNews" : LinkResult . mention ,
99
- "https://twitter.com/KurtZindulka" : null ,
99
+ "https://twitter.com/KurtZindulka" : LinkResult . none ,
100
100
} ,
101
101
credibilitySignals : {
102
102
topic : [ "Security, Defense and Well-being" , "Politics" , "International Relations" ] ,
@@ -134,7 +134,7 @@ const MediaServices = {
134
134
} ,
135
135
extractedURLAnalyses : {
136
136
"https://x.com/BreitbartNews" : LinkResult . mention ,
137
- "https://twitter.com/pamkeyNEN" : null ,
137
+ "https://twitter.com/pamkeyNEN" : LinkResult . none ,
138
138
} ,
139
139
credibilitySignals : {
140
140
topic : [ "Law and Justice System" , "Politics" ] ,
@@ -190,7 +190,6 @@ const MediaServices = {
190
190
} ,
191
191
extractedURLAnalyses : {
192
192
"https://twitter.com/DemagogCZ" : LinkResult . positive ,
193
- "https://www.facebook.com/journalismproject/programs/third-party-fact-checking" : LinkResult . mention ,
194
193
"https://drive.google.com/drive/folders/1J6nkGqAan4B5tet7dG5I9rRxHGyUwHGq" : LinkResult . negative ,
195
194
"https://web.archive.org/web/20230323215342/https:/www.ustavnysud.sk/c/document_library/get_file?uuid=67bda80c-2905-43c2-a802-7796b0c14c31&groupId=10182" : LinkResult . negative
196
195
} ,
@@ -339,11 +338,11 @@ const MediaServices = {
339
338
"https://911truth.org/us-judge-condemns-fbi-while-ordering-release-of-man-in-newburgh-four-terror-sting/" : LinkResult . negative ,
340
339
"https://911truth.org/author/mb/" : LinkResult . negative ,
341
340
"https://911truth.org/" : LinkResult . negative ,
342
- "https://michaelshermer.substack.com/p/the-truth-about-911-truth" : null ,
343
- "https://ine.uaf.edu/wtc7" : null ,
344
- "https://www.facebook.com/sharer.php?u=https%3A%2F%2F911truth.org%2Frationality-9-11-asking-questions-response-michael-shermer%2F" : null ,
345
- "https://www.reddit.com/submit?url=https://911truth.org/rationality-9-11-asking-questions-response-michael-shermer/&title=Rationality, 9/11, and the Art of Asking Questions: A Response to Michael Shermer and other “Professional” Debunkers" : LinkResult . negative ,
346
- "https://www.youtube.com/@911TruthOrg" : null
341
+ // "https://michaelshermer.substack.com/p/the-truth-about-911-truth": LinkResult.none ,
342
+ // "https://ine.uaf.edu/wtc7": LinkResult.none, // not on the first page
343
+ // "https://www.facebook.com/sharer.php?u=https%3A%2F%2F911truth.org%2Frationality-9-11-asking-questions-response-michael-shermer%2F": LinkResult.none ,
344
+ // "https://www.reddit.com/submit?url=https://911truth.org/rationality-9-11-asking-questions-response-michael-shermer/&title=Rationality, 9/11, and the Art of Asking Questions: A Response to Michael Shermer and other “Professional” Debunkers": LinkResult.negative,
345
+ // "https://www.youtube.com/@911TruthOrg": LinkResult.none
347
346
} ,
348
347
credibilitySignals : {
349
348
topic : [ "Religious, Ethical and Cultural" ] ,
@@ -419,7 +418,7 @@ const MediaServices = {
419
418
extractedURLAnalyses : {
420
419
// "https://twitter.com/share": LinkResult.negative, // Extracted, but doesn't appear in the page?!
421
420
"https://www.blogpreston.co.uk" : LinkResult . positive ,
422
- "https://www.blogpreston.co.uk/photos/" : LinkResult . positive ,
421
+ // "https://www.blogpreston.co.uk/photos/": LinkResult.positive, // Not on first page
423
422
"https://www.blogpreston.co.uk/category/preston-news/" : LinkResult . positive ,
424
423
"https://www.blogpreston.co.uk/category/preston-news/preston-redevelopment/" : LinkResult . positive ,
425
424
"https://www.blogpreston.co.uk/category/preston-proud/" : LinkResult . positive ,
@@ -441,14 +440,14 @@ const MediaServices = {
441
440
// This seems to be flakey behaviour:
442
441
// The first time it will extract it as normal, and then it'll resolve to the "login" URL
443
442
// I guess this is a facebook think rather than an us thing.
444
- // "http://facebook.com/blogpreston": null ,
445
- "http://twitter.com/blogpreston" : null ,
446
- "https://instagram.com/blog.preston/" : null ,
447
- "https://lancashire.citizenspace.com/environment-and-planning/stcsurvey/" : null ,
448
- "https://whatsapp.com/channel/0029VaFnaP3HgZWdNB6IR41U" : null ,
449
- "http://eepurl.com/irNrXU" : null ,
450
- // "http://flickr.com/11253414@N04/54119224627": null , // flaky
451
- // "http://flickr.com/11253414@N04/54120533300": null , // flaky
443
+ // "http://facebook.com/blogpreston": LinkResult.none ,
444
+ "http://twitter.com/blogpreston" : LinkResult . none ,
445
+ "https://instagram.com/blog.preston/" : LinkResult . none ,
446
+ "https://lancashire.citizenspace.com/environment-and-planning/stcsurvey/" : LinkResult . none ,
447
+ "https://whatsapp.com/channel/0029VaFnaP3HgZWdNB6IR41U" : LinkResult . none ,
448
+ "http://eepurl.com/irNrXU" : LinkResult . none ,
449
+ // "http://flickr.com/11253414@N04/54119224627": LinkResult.none , // flaky
450
+ // "http://flickr.com/11253414@N04/54120533300": LinkResult.none , // flaky
452
451
} ,
453
452
credibilitySignals : {
454
453
topic : [
@@ -644,7 +643,7 @@ const MediaServices = {
644
643
factChecker : [ "Bundesverband Digitalpublisher und Zeitungsverleger" ]
645
644
} ,
646
645
extractedURLAnalyses : {
647
- "https://www.az-online.de/politik/spd-cdu-auszaehlung- wahl-in-niedersachsen-ergebnisse-hochrechnungen-prognosen-landtagswahl-2022-weil-althusmann-ministerpraesident-zr-91836603.html" : LinkResult . positive
646
+ "https://www.az-online.de/politik/wahl-in-niedersachsen-ergebnisse-hochrechnungen-prognosen-landtagswahl-2022-weil-althusmann-ministerpraesident-spd-cdu-auszaehlung -zr-91836603.html" : LinkResult . positive
648
647
} ,
649
648
credibilitySignals : {
650
649
topic : [
@@ -853,7 +852,6 @@ const MediaServices = {
853
852
{
854
853
url : "https://www.facebook.com/sheffieldstar/videos/out-in-sheffield-with-john-burkhill-and-his-many-many-fans/458905073200654" ,
855
854
mediaType : MediaType . video ,
856
- videoGridIndex : 0 ,
857
855
services : [ MediaServices . analysisVideo , MediaServices . keyframes , MediaServices . videoDownload , MediaServices . videoDownloadGeneric ] ,
858
856
namedEntities : {
859
857
Person : [ "John Burkhill" ]
@@ -865,7 +863,7 @@ const MediaServices = {
865
863
topic : [
866
864
"Politics" , // No?
867
865
] ,
868
- genre : [ "Satire" ] , // It's not
866
+ genre : [ ] ,
869
867
persuasion : [
870
868
"Appeal to Popularity" // Not really
871
869
] ,
@@ -1011,12 +1009,9 @@ const MediaServices = {
1011
1009
topic : [
1012
1010
"Economy and Resources" ,
1013
1011
] ,
1014
- genre : [ "Opinionated News" ] , // I don't think so
1012
+ genre : [ ] ,
1015
1013
persuasion : [
1016
- "Appeal to fear/prejudice" ,
1017
1014
"Exaggeration or minimisation" ,
1018
- "Loaded language" ,
1019
- "Repetition" ,
1020
1015
] ,
1021
1016
subjectivity : [ ]
1022
1017
}
@@ -1031,12 +1026,12 @@ const MediaServices = {
1031
1026
"Security, Defense and Well-being" ,
1032
1027
"Health and Safety"
1033
1028
] ,
1034
- genre : [ ] ,
1029
+ genre : [ "Satire" ] , // No
1035
1030
persuasion : [
1036
1031
// None of these!
1037
- // "Loaded language",
1038
- // "Name calling or labeling",
1039
- // "Repetition"
1032
+ "Loaded language" ,
1033
+ "Name calling or labeling" ,
1034
+ "Repetition"
1040
1035
] ,
1041
1036
subjectivity : [ "Subjective" ] // "Toot toot." is not a subjective sentence
1042
1037
}
@@ -1054,8 +1049,8 @@ const MediaServices = {
1054
1049
genre : [ "Satire" ] , // I don't think so (Seems to be the default when it doesn't know?)
1055
1050
persuasion : [
1056
1051
// None of these!
1057
- // "Doubt",
1058
- // "Loaded language",
1052
+ "Doubt" ,
1053
+ "Loaded language" ,
1059
1054
] ,
1060
1055
subjectivity : [ ] // "Toot toot." is not a subjective sentence
1061
1056
}
@@ -1074,22 +1069,21 @@ const MediaServices = {
1074
1069
mediaType : MediaType . none ,
1075
1070
extractedURLAnalyses : {
1076
1071
// "http://spreadshirt.de": ?? // Missing
1077
- "https://t.co/4AkKRFywd8?amp=1" : LinkResult . none ,
1078
- "https://t.me/QUERDENKEN711" : LinkResult . none ,
1079
- "https://t.me/QUERDENKEN711_aktiv" : LinkResult . none ,
1080
- "https://t.me/QUERDENKEN_711" : LinkResult . none ,
1081
- "https://twitter.com/Crazyca07572857/status/1334513909022208001?s=20" : LinkResult . none ,
1072
+ "https://t.co/4AkKRFywd8?amp=1" : LinkResult . negative ,
1073
+ "https://t.me/QUERDENKEN711" : LinkResult . negative ,
1074
+ "https://t.me/QUERDENKEN711_aktiv" : LinkResult . negative ,
1075
+ "https://t.me/QUERDENKEN_711" : LinkResult . negative ,
1076
+ "https://twitter.com/Crazyca07572857/status/1334513909022208001?s=20" : LinkResult . negative ,
1082
1077
} ,
1083
1078
credibilitySignals : {
1084
1079
topic : [
1085
1080
"Religious, Ethical and Cultural" , // Tenuous
1086
- "Security, Defense and Well-being" // Don't think so, possibly debatable, but highly contextual
1087
1081
] ,
1088
1082
genre : [ "Satire" ] , // I don't think so (Seems to be the default when it doesn't know?)
1089
1083
persuasion : [
1090
- "Appeal to Hypocrisy" ,
1084
+ // "Appeal to Hypocrisy", // flaky
1091
1085
"Guilt by association" ,
1092
- "Loaded language" ,
1086
+ // "Loaded language", // flaky
1093
1087
"Name calling or labeling" ,
1094
1088
"Questioning the reputation" , // Maybe this one, but not the others, I don't think
1095
1089
"Repetition" ,
@@ -1164,9 +1158,7 @@ const MediaServices = {
1164
1158
] ,
1165
1159
genre : [ "Opinionated News" ] , // I guess not (Seems to be the default when it doesn't know?)
1166
1160
persuasion : [
1167
- "Loaded language" ,
1168
1161
"Name calling or labeling" ,
1169
- "Slogans"
1170
1162
] ,
1171
1163
subjectivity : [ "Subjective" ]
1172
1164
}
@@ -1511,17 +1503,11 @@ const MediaServices = {
1511
1503
}
1512
1504
// Extracted URL domain analysis
1513
1505
if ( Object . keys ( extractedURLAnalyses ) . length > 0 ) {
1506
+ const urlAnalysisDiv = page . getByTestId ( "url-domain-analysis" )
1514
1507
for ( const url in extractedURLAnalyses ) {
1515
- await expect ( page . getByTestId ( "url-domain-analysis" ) . locator ( "[href=\"" + url + "\"]" ) ) . toBeVisible ( ) ;
1516
- const resultRow = page . getByTestId ( "url-domain-analysis" ) . locator ( "div.MuiGrid2-container" ) . filter ( { has : page . locator ( `text="${ url } "` ) } ) ;
1517
-
1518
- if ( extractedURLAnalyses [ url ] != null ) {
1519
- await expect ( resultRow . locator ( ">div" ) ) . toHaveCount ( 3 ) ;
1520
- await expect ( resultRow . getByTestId ( extractedURLAnalyses [ url ] ) ) . toBeVisible ( ) ;
1521
- }
1522
- else {
1523
- await expect ( resultRow . locator ( ">div" ) ) . toHaveCount ( 2 ) ;
1524
- }
1508
+ await expect ( urlAnalysisDiv . locator ( "[href=\"" + url + "\"]" ) ) . toBeVisible ( ) ;
1509
+ const resultRow = urlAnalysisDiv . locator ( "div.MuiDataGrid-row" ) . filter ( { has : page . locator ( `text="${ url } "` ) } ) ;
1510
+ await expect ( resultRow . locator ( "[data-field=\"status\"]" ) ) . toContainText ( extractedURLAnalyses [ url ] ) ;
1525
1511
}
1526
1512
}
1527
1513
// Credibility signals
0 commit comments