@testim/testim-cli 4.26.0 → 4.28.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/cli.js +56 -64
- package/cli.js.map +4 -4
- package/npm-shrinkwrap.json +50 -46
- package/package.json +3 -3
- package/codim/template.js/package.json +0 -22
- package/codim/template.js/tests/examples/01-simple-text-validation.test.js +0 -21
- package/codim/template.js/tests/examples/02-using-locators.test.js +0 -28
- package/codim/template.js/tests/examples/03-using-hooks.test.js +0 -34
- package/codim/template.js/tests/examples/04-skip-and-only.test.js +0 -31
- package/codim/template.js/tests/examples/05-multiple-windows.test.js +0 -31
- package/codim/template.js/tests/examples/locators/locator.2tAJgSAmk3.json +0 -1
- package/codim/template.js/tests/examples/locators/locator.9k9VCOUL4y.json +0 -1
- package/codim/template.js/tests/examples/locators/locator.AjIJ15ZuBj.json +0 -1
- package/codim/template.js/tests/examples/locators/locator.FjmSDY45IZ.json +0 -1
- package/codim/template.js/tests/examples/locators/locator.QJ77pQxaRz.json +0 -1
- package/codim/template.js/tests/examples/locators/locator.QxcJVFC2C1.json +0 -1
- package/codim/template.js/tests/examples/locators/locator.Qxpa59SlFg.json +0 -1
- package/codim/template.js/tests/examples/locators/locator.X3UDpG1Gdq.json +0 -1
- package/codim/template.js/tests/examples/locators/locator.g2SudoELzB.json +0 -1
- package/codim/template.js/tests/examples/locators/locator.hRAXmKR3zE.json +0 -1
- package/codim/template.js/tests/examples/locators/locator.kSEI5IhgWU.json +0 -1
- package/codim/template.js/tests/examples/locators/locator.pTxwqDP1pW.json +0 -1
- package/codim/template.js/tests/examples/locators/locators.js +0 -14
- package/codim/template.js/vsproj.njsproj +0 -61
- package/codim/template.js/webpack.config.js +0 -4
- package/codim/template.ts/package.json +0 -25
- package/codim/template.ts/tests/examples/01-simple-text-validation.test.ts +0 -21
- package/codim/template.ts/tests/examples/02-using-locators.test.ts +0 -30
- package/codim/template.ts/tests/examples/03-using-hooks.test.ts +0 -36
- package/codim/template.ts/tests/examples/04-skip-and-only.test.ts +0 -32
- package/codim/template.ts/tests/examples/05-multiple-windows.test.ts +0 -32
- package/codim/template.ts/tests/examples/locators/locator.2tAJgSAmk3.json +0 -1
- package/codim/template.ts/tests/examples/locators/locator.9k9VCOUL4y.json +0 -1
- package/codim/template.ts/tests/examples/locators/locator.AjIJ15ZuBj.json +0 -1
- package/codim/template.ts/tests/examples/locators/locator.FjmSDY45IZ.json +0 -1
- package/codim/template.ts/tests/examples/locators/locator.QJ77pQxaRz.json +0 -1
- package/codim/template.ts/tests/examples/locators/locator.QxcJVFC2C1.json +0 -1
- package/codim/template.ts/tests/examples/locators/locator.Qxpa59SlFg.json +0 -1
- package/codim/template.ts/tests/examples/locators/locator.X3UDpG1Gdq.json +0 -1
- package/codim/template.ts/tests/examples/locators/locator.g2SudoELzB.json +0 -1
- package/codim/template.ts/tests/examples/locators/locator.hRAXmKR3zE.json +0 -1
- package/codim/template.ts/tests/examples/locators/locator.kSEI5IhgWU.json +0 -1
- package/codim/template.ts/tests/examples/locators/locator.pTxwqDP1pW.json +0 -1
- package/codim/template.ts/tests/examples/locators/locators.js +0 -14
- package/codim/template.ts/tsconfig.json +0 -8
- package/codim/template.ts/vsproj.njsproj +0 -62
- package/codim/template.ts/webpack.config.js +0 -16
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"elementLocator":{"document":[{"type":"ElementLocator","selectors":[{"parentsLocators":[],"isUsed":true,"correctStreak":0,"wrongStreak":0,"selfScore":1,"type":"BodySelector"}],"score":"1.00","nonUniqueSelectors":[]},{"type":"ElementLocator","selectors":[{"parentsLocators":[0],"isUsed":true,"correctStreak":0,"wrongStreak":0,"selfScore":0.9,"type":"IdSelector","elementId":"app"},{"parentsLocators":[0],"isUsed":true,"correctStreak":0,"wrongStreak":0,"selfScore":0.5,"type":"CSSClassSelector","cssClassName":"layout"},{"parentsLocators":[0],"isUsed":true,"correctStreak":0,"wrongStreak":0,"selfScore":0.1,"type":"NthChildSelector","index":0,"siblingCount":5,"reverseIndex":false}],"score":"1.00","nonUniqueSelectors":[{"parentsLocators":[],"isUsed":true,"correctStreak":0,"wrongStreak":0,"selfScore":0.1,"type":"TagSelector","tagName":"DIV"}]},{"type":"ChildElementLocator","selectors":[{"parentsLocators":[1],"isUsed":true,"correctStreak":0,"wrongStreak":0,"selfScore":0.9,"type":"InnerTextSelector","directInnerText":"Space Advisor"},{"parentsLocators":[1],"isUsed":true,"correctStreak":0,"wrongStreak":0,"selfScore":0.5,"type":"CSSClassSelector","cssClassName":"TopBar__logo___3-82j"}],"score":"1.00","nonUniqueSelectors":[{"parentsLocators":[],"isUsed":true,"correctStreak":0,"wrongStreak":0,"selfScore":0.6,"type":"TextContentSelector","textContent":"Space Advisor"},{"parentsLocators":[],"isUsed":true,"correctStreak":0,"wrongStreak":0,"selfScore":0.3,"type":"TagSelector","tagName":"H1"}]},{"type":"ElementLocator","selectors":[{"parentsLocators":[1],"isUsed":true,"correctStreak":0,"wrongStreak":0,"selfScore":0.1,"type":"NthChildSelector","index":0,"siblingCount":1,"reverseIndex":false},{"parentsLocators":[2],"isUsed":true,"correctStreak":0,"wrongStreak":0,"selfScore":1,"type":"ChildSelector","indexInPath":1}],"score":"1.00","nonUniqueSelectors":[{"parentsLocators":[],"isUsed":true,"correctStreak":0,"wrongStreak":0,"selfScore":0.1,"type":"TagSelector","tagName":"DIV"}]},{"type":"ElementLocator","selectors":[{"parentsLocators":[0,1,3],"isUsed":true,"correctStreak":0,"wrongStreak":0,"selfScore":0.5,"type":"CSSClassSelector","cssClassName":"Login__login___3HOEm"},{"parentsLocators":[3],"isUsed":true,"correctStreak":0,"wrongStreak":0,"selfScore":0.1,"type":"NthChildSelector","index":5,"siblingCount":6,"reverseIndex":false}],"score":"1.00","nonUniqueSelectors":[{"parentsLocators":[],"isUsed":true,"correctStreak":0,"wrongStreak":0,"selfScore":0.3,"type":"TagSelector","tagName":"SECTION"}]},{"type":"ElementLocator","selectors":[{"parentsLocators":[0,1,3,4],"isUsed":true,"correctStreak":0,"wrongStreak":0,"selfScore":0.5,"type":"CSSClassSelector","cssClassName":"Login__flex-grow___2DSXS"},{"parentsLocators":[4],"isUsed":true,"correctStreak":0,"wrongStreak":0,"selfScore":0.5,"type":"CSSClassSelector","cssClassName":"flexboxgrid__row___1y_mg"},{"parentsLocators":[4],"isUsed":true,"correctStreak":0,"wrongStreak":0,"selfScore":0.1,"type":"NthChildSelector","index":0,"siblingCount":1,"reverseIndex":false}],"score":"1.00","nonUniqueSelectors":[{"parentsLocators":[],"isUsed":true,"correctStreak":0,"wrongStreak":0,"selfScore":0.1,"type":"TagSelector","tagName":"DIV"}]},{"type":"ElementLocator","selectors":[{"parentsLocators":[0,1,3,4,5],"isUsed":true,"correctStreak":0,"wrongStreak":0,"selfScore":0.5,"type":"CSSClassSelector","cssClassName":"Login__card-box___1pKg0"},{"parentsLocators":[5],"isUsed":true,"correctStreak":0,"wrongStreak":0,"selfScore":0.1,"type":"NthChildSelector","index":1,"siblingCount":2,"reverseIndex":false}],"score":"1.00","nonUniqueSelectors":[{"parentsLocators":[],"isUsed":true,"correctStreak":0,"wrongStreak":0,"selfScore":0.5,"type":"CSSClassSelector","cssClassName":"flexboxgrid__col-xs-6___1DhV6"},{"parentsLocators":[],"isUsed":true,"correctStreak":0,"wrongStreak":0,"selfScore":0.1,"type":"TagSelector","tagName":"DIV"}]},{"type":"ElementLocator","selectors":[{"parentsLocators":[4,5,6],"isUsed":true,"correctStreak":0,"wrongStreak":0,"selfScore":0.5,"type":"CSSClassSelector","cssClassName":"Box__box___2XzJ2"},{"parentsLocators":[0,1,3,4,5,6],"isUsed":true,"correctStreak":0,"wrongStreak":0,"selfScore":0.5,"type":"CSSClassSelector","cssClassName":"Login__card___32Upz"},{"parentsLocators":[6],"isUsed":true,"correctStreak":0,"wrongStreak":0,"selfScore":0.1,"type":"NthChildSelector","index":0,"siblingCount":1,"reverseIndex":false}],"score":"1.00","nonUniqueSelectors":[{"parentsLocators":[],"isUsed":true,"correctStreak":0,"wrongStreak":0,"selfScore":0.1,"type":"TagSelector","tagName":"DIV"}]},{"type":"ElementLocator","selectors":[{"parentsLocators":[0,1,3,4,5,6,7],"isUsed":true,"correctStreak":0,"wrongStreak":0,"selfScore":0.5,"type":"CSSClassSelector","cssClassName":"Login__button-box___1OzjH"},{"parentsLocators":[0,1,3,4,5,6,7],"isUsed":true,"correctStreak":0,"wrongStreak":0,"selfScore":0.6,"type":"TextContentSelector","textContent":"CancelLog in"},{"parentsLocators":[0,1,3,4,5,6,7],"isUsed":true,"correctStreak":0,"wrongStreak":0,"selfScore":0.3,"type":"TagSelector","tagName":"NAV"},{"parentsLocators":[7],"isUsed":true,"correctStreak":0,"wrongStreak":0,"selfScore":0.1,"type":"NthChildSelector","index":3,"siblingCount":4,"reverseIndex":false}],"score":"1.00","nonUniqueSelectors":[]},{"type":"ElementLocator","selectors":[{"parentsLocators":[0,1,3,4,5,6,7,8],"isUsed":true,"correctStreak":0,"wrongStreak":0,"selfScore":0.5,"type":"AttributeSelector","attributeName":"form","attributeValue":"login"},{"parentsLocators":[0,1,3,4,5,6,7,8],"isUsed":true,"correctStreak":0,"wrongStreak":0,"selfScore":0.15,"type":"AttributeSelector","attributeName":"tabindex","attributeValue":"3"},{"parentsLocators":[4,5,6,7,8],"isUsed":true,"correctStreak":0,"wrongStreak":0,"selfScore":0.5,"type":"CSSClassSelector","cssClassName":"theme__raised___ONZv6"},{"parentsLocators":[0,1,3,4,5,6,7,8],"isUsed":true,"correctStreak":0,"wrongStreak":0,"selfScore":0.5,"type":"CSSClassSelector","cssClassName":"LoginButton__raised___1fUxJ"},{"parentsLocators":[4,5,6,7,8],"isUsed":true,"correctStreak":0,"wrongStreak":0,"selfScore":0.5,"type":"CSSClassSelector","cssClassName":"theme__primary___2NhN1"},{"parentsLocators":[0,1,3,4,5,6,7,8],"isUsed":true,"correctStreak":0,"wrongStreak":0,"selfScore":0.5,"type":"CSSClassSelector","cssClassName":"LoginButton__primary___38GOe"},{"parentsLocators":[8],"isUsed":true,"correctStreak":0,"wrongStreak":0,"selfScore":0.5,"type":"AttributeSelector","attributeName":"type","attributeValue":"submit"},{"parentsLocators":[4,5,6,7,8],"isUsed":true,"correctStreak":0,"wrongStreak":0,"selfScore":0.6,"type":"TextContentSelector","textContent":"Log in"},{"parentsLocators":[4,5,6,7,8],"isUsed":true,"correctStreak":0,"wrongStreak":0,"selfScore":0.9,"type":"InnerTextSelector","directInnerText":"Log in"},{"parentsLocators":[8],"isUsed":true,"correctStreak":0,"wrongStreak":0,"selfScore":0.1,"type":"NthChildSelector","index":1,"siblingCount":2,"reverseIndex":false}],"score":"1.00","nonUniqueSelectors":[{"parentsLocators":[],"isUsed":true,"correctStreak":0,"wrongStreak":0,"selfScore":0.5,"type":"CSSClassSelector","cssClassName":"theme__button___1iKuo"},{"parentsLocators":[],"isUsed":true,"correctStreak":0,"wrongStreak":0,"selfScore":0.5,"type":"CSSClassSelector","cssClassName":"LoginButton__button___1Sd3Q"},{"parentsLocators":[],"isUsed":true,"correctStreak":0,"wrongStreak":0,"selfScore":0.5,"type":"AttributeSelector","attributeName":"data-react-toolbox","attributeValue":"button"},{"parentsLocators":[],"isUsed":true,"correctStreak":0,"wrongStreak":0,"selfScore":0.3,"type":"TagSelector","tagName":"BUTTON"}]}],"index":9},"id":"pTxwqDP1pW","name":"[form='login']"}
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
module.exports = {
|
|
2
|
-
"SPACE_&_BEYOND": require('./locator.QxcJVFC2C1.json'),
|
|
3
|
-
"SELECT_DESTINATION": require('./locator.hRAXmKR3zE.json'),
|
|
4
|
-
"LOG_IN": require('./locator.kSEI5IhgWU.json'),
|
|
5
|
-
"[tabindex='1']": require('./locator.2tAJgSAmk3.json'),
|
|
6
|
-
"[type='password']": require('./locator.g2SudoELzB.json'),
|
|
7
|
-
"[form='login']": require('./locator.pTxwqDP1pW.json'),
|
|
8
|
-
"QJ77pQxaRz": require('./locator.QJ77pQxaRz.json'),
|
|
9
|
-
"ul > li:nth-of-type(33) a": require('./locator.FjmSDY45IZ.json'),
|
|
10
|
-
"Multiple_Windows": require('./locator.X3UDpG1Gdq.json'),
|
|
11
|
-
"Opening_a_new_window": require('./locator.9k9VCOUL4y.json'),
|
|
12
|
-
"Click_Here": require('./locator.AjIJ15ZuBj.json'),
|
|
13
|
-
"New_Window": require('./locator.Qxpa59SlFg.json'),
|
|
14
|
-
};
|
|
@@ -1,62 +0,0 @@
|
|
|
1
|
-
<Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003" ToolsVersion="4.0">
|
|
2
|
-
<PropertyGroup>
|
|
3
|
-
<VisualStudioVersion Condition="'$(VisualStudioVersion)' == ''">14.0</VisualStudioVersion>
|
|
4
|
-
<VSToolsPath Condition="'$(VSToolsPath)' == ''">$(MSBuildExtensionsPath32)\Microsoft\VisualStudio\v$(VisualStudioVersion)</VSToolsPath>
|
|
5
|
-
<Name>TestimProject</Name>
|
|
6
|
-
<RootNamespace>TestimProject</RootNamespace>
|
|
7
|
-
<SaveNodeJsSettingsInProjectFile>True</SaveNodeJsSettingsInProjectFile>
|
|
8
|
-
<Environment>NODE_OPTIONS=--max-old-space-size=8196</Environment>
|
|
9
|
-
<ScriptArguments>--webpackConfig=webpack.config.js run "./tests/**/*.test.ts" --require-credentials</ScriptArguments>
|
|
10
|
-
</PropertyGroup>
|
|
11
|
-
<Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
|
|
12
|
-
<PropertyGroup>
|
|
13
|
-
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
|
|
14
|
-
<SchemaVersion>2.0</SchemaVersion>
|
|
15
|
-
<ProjectGuid>df45c9dd-afdf-4039-a3f5-3d030344fd74</ProjectGuid>
|
|
16
|
-
<ProjectHome>.</ProjectHome>
|
|
17
|
-
<StartupFile>node_modules\@testim\testim-cli\cli.js</StartupFile>
|
|
18
|
-
<StartWebBrowser>False</StartWebBrowser>
|
|
19
|
-
<SearchPath>
|
|
20
|
-
</SearchPath>
|
|
21
|
-
<WorkingDirectory>.</WorkingDirectory>
|
|
22
|
-
<OutputPath>.</OutputPath>
|
|
23
|
-
<TargetFrameworkVersion>v4.0</TargetFrameworkVersion>
|
|
24
|
-
<ProjectTypeGuids>{3AF33F2E-1136-4D97-BBB7-1795711AC8B8};{9092AA53-FB77-4645-B42D-1CCCA6BD08BD}</ProjectTypeGuids>
|
|
25
|
-
<StartWebBrowser>False</StartWebBrowser>
|
|
26
|
-
</PropertyGroup>
|
|
27
|
-
<PropertyGroup Condition=" '$(Configuration)' == 'Debug' ">
|
|
28
|
-
<DebugSymbols>true</DebugSymbols>
|
|
29
|
-
</PropertyGroup>
|
|
30
|
-
<PropertyGroup Condition=" '$(Configuration)' == 'Release' ">
|
|
31
|
-
<DebugSymbols>true</DebugSymbols>
|
|
32
|
-
</PropertyGroup>
|
|
33
|
-
<ItemGroup>
|
|
34
|
-
<Content Include="package.json" />
|
|
35
|
-
<Content Include="tests\examples\01-simple-text-validation.test.ts" />
|
|
36
|
-
<Content Include="tests\examples\02-using-locators.test.ts" />
|
|
37
|
-
<Content Include="tests\examples\03-using-hooks.test.ts" />
|
|
38
|
-
<Content Include="tests\examples\04-skip-and-only.test.ts" />
|
|
39
|
-
<Content Include="tests\examples\05-multiple-windows.test.ts" />
|
|
40
|
-
<Content Include="tests\examples\locators\locator.2tAJgSAmk3.json" />
|
|
41
|
-
<Content Include="tests\examples\locators\locator.9k9VCOUL4y.json" />
|
|
42
|
-
<Content Include="tests\examples\locators\locator.AjIJ15ZuBj.json" />
|
|
43
|
-
<Content Include="tests\examples\locators\locator.FjmSDY45IZ.json" />
|
|
44
|
-
<Content Include="tests\examples\locators\locator.g2SudoELzB.json" />
|
|
45
|
-
<Content Include="tests\examples\locators\locator.hRAXmKR3zE.json" />
|
|
46
|
-
<Content Include="tests\examples\locators\locator.kSEI5IhgWU.json" />
|
|
47
|
-
<Content Include="tests\examples\locators\locator.pTxwqDP1pW.json" />
|
|
48
|
-
<Content Include="tests\examples\locators\locator.QJ77pQxaRz.json" />
|
|
49
|
-
<Content Include="tests\examples\locators\locator.QxcJVFC2C1.json" />
|
|
50
|
-
<Content Include="tests\examples\locators\locator.Qxpa59SlFg.json" />
|
|
51
|
-
<Content Include="tests\examples\locators\locator.X3UDpG1Gdq.json" />
|
|
52
|
-
<Content Include="tests\examples\locators\locators.js" />
|
|
53
|
-
<Content Include="tsconfig.json" />
|
|
54
|
-
<Content Include="webpack.config.js" />
|
|
55
|
-
</ItemGroup>
|
|
56
|
-
<ItemGroup>
|
|
57
|
-
<Folder Include="tests\" />
|
|
58
|
-
<Folder Include="tests\examples\" />
|
|
59
|
-
<Folder Include="tests\examples\locators\" />
|
|
60
|
-
</ItemGroup>
|
|
61
|
-
<Import Project="$(VSToolsPath)\Node.js Tools\Microsoft.NodejsToolsV2.targets" />
|
|
62
|
-
</Project>
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
module.exports = {
|
|
2
|
-
mode: 'development', // always run with development and source maps
|
|
3
|
-
devtool: 'inline-source-map', // always debuggable
|
|
4
|
-
module: {
|
|
5
|
-
rules: [
|
|
6
|
-
{
|
|
7
|
-
test: /\.tsx?$/,
|
|
8
|
-
loader: 'ts-loader',
|
|
9
|
-
exclude: /node_modules/,
|
|
10
|
-
},
|
|
11
|
-
],
|
|
12
|
-
},
|
|
13
|
-
resolve: {
|
|
14
|
-
extensions: ['.tsx', '.ts', '.js'],
|
|
15
|
-
},
|
|
16
|
-
};
|