UNPKG

@nerdko/testchallenge

Version:
2 lines 7.41 kB
<!doctype html> <html lang="en"><head><meta charSet="utf-8"/><meta http-equiv="X-UA-Compatible" content="IE=edge"/><meta name="viewport" content="width=device-width, initial-scale=1"/><title>Mochawesome Report</title><link rel="stylesheet" href="assets\app.css"/></head><body data-raw="{&quot;stats&quot;:{&quot;suites&quot;:1,&quot;tests&quot;:3,&quot;passes&quot;:3,&quot;pending&quot;:0,&quot;failures&quot;:0,&quot;start&quot;:&quot;2023-12-01T07:16:42.623Z&quot;,&quot;end&quot;:&quot;2023-12-01T07:16:49.334Z&quot;,&quot;duration&quot;:6711,&quot;testsRegistered&quot;:3,&quot;passPercent&quot;:100,&quot;pendingPercent&quot;:0,&quot;other&quot;:0,&quot;hasOther&quot;:false,&quot;skipped&quot;:0,&quot;hasSkipped&quot;:false},&quot;results&quot;:[{&quot;uuid&quot;:&quot;5d7de315-05d1-41da-ad05-0dc109ed5183&quot;,&quot;title&quot;:&quot;&quot;,&quot;fullFile&quot;:&quot;cypress\\e2e\\user_cycle.cy.js&quot;,&quot;file&quot;:&quot;cypress\\e2e\\user_cycle.cy.js&quot;,&quot;beforeHooks&quot;:[],&quot;afterHooks&quot;:[],&quot;tests&quot;:[],&quot;suites&quot;:[{&quot;uuid&quot;:&quot;d648f029-ceb4-4ba5-bf89-023472db75ca&quot;,&quot;title&quot;:&quot;Test user cycle&quot;,&quot;fullFile&quot;:&quot;&quot;,&quot;file&quot;:&quot;&quot;,&quot;beforeHooks&quot;:[],&quot;afterHooks&quot;:[],&quot;tests&quot;:[{&quot;title&quot;:&quot;Should create a user&quot;,&quot;fullTitle&quot;:&quot;Test user cycle Should create a user&quot;,&quot;duration&quot;:2670,&quot;state&quot;:&quot;passed&quot;,&quot;speed&quot;:&quot;fast&quot;,&quot;pass&quot;:true,&quot;fail&quot;:false,&quot;pending&quot;:false,&quot;code&quot;:&quot;//Setin up a listener for the sig up post to occur\ncy.intercept(\&quot;POST\&quot;, \&quot;/signup\&quot;).as(\&quot;signup\&quot;);\ncy.contains(loginButtom).should(\&quot;exist\&quot;);\ncy.get(\&quot;#signin2\&quot;).should(\&quot;be.visible\&quot;).click();\ncy.get(\&quot;#signInModal\&quot;).as(\&quot;popup\&quot;).should(\&quot;be.visible\&quot;).should(\&quot;be.focused\&quot;);\ncy.contains(\&quot;Username\&quot;).should(\&quot;be.visible\&quot;);\ncy.get(\&quot;#sign-username\&quot;).focus().should(\&quot;have.text\&quot;, \&quot;\&quot;).type(user.name);\ncy.get(\&quot;#sign-password\&quot;).focus().should(\&quot;have.text\&quot;, \&quot;\&quot;).type(user.password).blur();\ncy.get(\&quot;@popup\&quot;).find(\&quot;[type=button]\&quot;).contains(signupButton).should(\&quot;be.visible\&quot;).click();\ncy.on(\&quot;window:alert\&quot;, text =&gt; {\n //if this assertion fail, please change the user name in the cypress.env.json file\n if (text.startsWith(\&quot;This user already exist\&quot;)) {\n console.log(`Is expected that alert shows &#x27;${text}&#x27; when user already exist, will be corrected when we have access to delete command`);\n } else {\n expect(text).to.contains(\&quot;Sign up successful.\&quot;);\n }\n});\ncy.wait(\&quot;@signup\&quot;);&quot;,&quot;err&quot;:{},&quot;uuid&quot;:&quot;211acf55-13b8-4dbb-93b2-d8bfd10f7837&quot;,&quot;parentUUID&quot;:&quot;d648f029-ceb4-4ba5-bf89-023472db75ca&quot;,&quot;isHook&quot;:false,&quot;skipped&quot;:false},{&quot;title&quot;:&quot;Should log in with created user&quot;,&quot;fullTitle&quot;:&quot;Test user cycle Should log in with created user&quot;,&quot;duration&quot;:2046,&quot;state&quot;:&quot;passed&quot;,&quot;speed&quot;:&quot;fast&quot;,&quot;pass&quot;:true,&quot;fail&quot;:false,&quot;pending&quot;:false,&quot;code&quot;:&quot;//Setting up a listener for the login post to occur\ncy.intercept(\&quot;POST\&quot;, \&quot;/login\&quot;).as(\&quot;login\&quot;);\ncy.get(\&quot;#login2\&quot;).should(\&quot;be.visible\&quot;).click();\ncy.get(\&quot;#logInModal\&quot;).should(\&quot;be.visible\&quot;).should(\&quot;be.focused\&quot;);\ncy.get(\&quot;#loginusername\&quot;).focus().should(\&quot;be.visible\&quot;).type(user.name);\ncy.get(\&quot;#loginpassword\&quot;).focus().should(\&quot;be.visible\&quot;).type(user.password).blur();\ncy.get(\&quot;#logInModal\&quot;).find(\&quot;[type=button]\&quot;).contains(loginButtom).should(\&quot;be.visible\&quot;).click();\ncy.wait(\&quot;@login\&quot;);\ncy.contains(user.name).should(\&quot;be.visible\&quot;);&quot;,&quot;err&quot;:{},&quot;uuid&quot;:&quot;fbe167dd-347c-4bb1-9db9-de926cc8939f&quot;,&quot;parentUUID&quot;:&quot;d648f029-ceb4-4ba5-bf89-023472db75ca&quot;,&quot;isHook&quot;:false,&quot;skipped&quot;:false},{&quot;title&quot;:&quot;Should log out&quot;,&quot;fullTitle&quot;:&quot;Test user cycle Should log out&quot;,&quot;duration&quot;:1906,&quot;state&quot;:&quot;passed&quot;,&quot;speed&quot;:&quot;fast&quot;,&quot;pass&quot;:true,&quot;fail&quot;:false,&quot;pending&quot;:false,&quot;code&quot;:&quot;cy.login(user).then(() =&gt; {\n cy.contains(user.name).should(\&quot;be.visible\&quot;);\n cy.get(\&quot;#logout2\&quot;).should(\&quot;exist\&quot;).click();\n cy.contains(user.name).should(\&quot;not.exist\&quot;);\n});&quot;,&quot;err&quot;:{},&quot;uuid&quot;:&quot;1691f94d-4d2f-48da-a1cc-e2909ee2e499&quot;,&quot;parentUUID&quot;:&quot;d648f029-ceb4-4ba5-bf89-023472db75ca&quot;,&quot;isHook&quot;:false,&quot;skipped&quot;:false}],&quot;suites&quot;:[],&quot;passes&quot;:[&quot;211acf55-13b8-4dbb-93b2-d8bfd10f7837&quot;,&quot;fbe167dd-347c-4bb1-9db9-de926cc8939f&quot;,&quot;1691f94d-4d2f-48da-a1cc-e2909ee2e499&quot;],&quot;failures&quot;:[],&quot;pending&quot;:[],&quot;skipped&quot;:[],&quot;duration&quot;:6622,&quot;root&quot;:false,&quot;rootEmpty&quot;:false,&quot;_timeout&quot;:2000}],&quot;passes&quot;:[],&quot;failures&quot;:[],&quot;pending&quot;:[],&quot;skipped&quot;:[],&quot;duration&quot;:0,&quot;root&quot;:true,&quot;rootEmpty&quot;:true,&quot;_timeout&quot;:2000}],&quot;meta&quot;:{&quot;mocha&quot;:{&quot;version&quot;:&quot;7.0.1&quot;},&quot;mochawesome&quot;:{&quot;options&quot;:{&quot;quiet&quot;:false,&quot;reportFilename&quot;:&quot;callenge-report&quot;,&quot;saveHtml&quot;:true,&quot;saveJson&quot;:true,&quot;consoleReporter&quot;:&quot;spec&quot;,&quot;useInlineDiffs&quot;:false,&quot;code&quot;:true},&quot;version&quot;:&quot;7.1.3&quot;},&quot;marge&quot;:{&quot;options&quot;:{&quot;reportFilename&quot;:&quot;callenge-report&quot;},&quot;version&quot;:&quot;6.2.0&quot;}}}" data-config="{&quot;reportFilename&quot;:&quot;callenge-report&quot;,&quot;reportDir&quot;:&quot;mochawesome-report&quot;,&quot;reportTitle&quot;:&quot;testChallenge&quot;,&quot;reportPageTitle&quot;:&quot;Mochawesome Report&quot;,&quot;inline&quot;:false,&quot;inlineAssets&quot;:false,&quot;cdn&quot;:false,&quot;charts&quot;:false,&quot;enableCharts&quot;:false,&quot;code&quot;:true,&quot;enableCode&quot;:true,&quot;autoOpen&quot;:false,&quot;overwrite&quot;:true,&quot;timestamp&quot;:false,&quot;ts&quot;:false,&quot;showPassed&quot;:true,&quot;showFailed&quot;:true,&quot;showPending&quot;:true,&quot;showSkipped&quot;:false,&quot;showHooks&quot;:&quot;failed&quot;,&quot;saveJson&quot;:true,&quot;saveHtml&quot;:true,&quot;dev&quot;:false,&quot;assetsDir&quot;:&quot;mochawesome-report\\assets&quot;,&quot;jsonFile&quot;:&quot;C:\\Users\\metal\\source\\repos\\Nerdko\\testChallenge\\mochawesome-report\\callenge-report.json&quot;,&quot;htmlFile&quot;:&quot;C:\\Users\\metal\\source\\repos\\Nerdko\\testChallenge\\mochawesome-report\\callenge-report.html&quot;}"><div id="report"></div><script src="assets\app.js"></script></body></html>