Add Selenium Tests

parent 3594d425
# Default ignored files
/shelf/
/workspace.xml
# Rider ignored files
/projectSettingsUpdater.xml
/modules.xml
/contentModel.xml
/.idea.StudyBlog.iml
# Editor-based HTTP Client requests
/httpRequests/
# Datasource local storage ignored files
/dataSources/
/dataSources.local.xml
StudyBlog
\ No newline at end of file
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="Encoding" addBOMForNewFiles="with BOM under Windows, with no BOM otherwise" />
</project>
\ No newline at end of file
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="UserContentModel">
<attachedFolders />
<explicitIncludes />
<explicitExcludes />
</component>
</project>
\ No newline at end of file
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="VcsDirectoryMappings">
<mapping directory="$PROJECT_DIR$" vcs="Git" />
</component>
</project>
\ No newline at end of file
......@@ -2,6 +2,8 @@
Microsoft Visual Studio Solution File, Format Version 12.00
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "StudyBlog", "StudyBlog\StudyBlog.csproj", "{586E3569-FF54-4F42-A386-7DCC6B96F446}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "StudyBlogTests", "StudyBlogTests\StudyBlogTests.csproj", "{D9EAC8A7-3049-4FB7-8E59-B0CFD3FEC9B3}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
......@@ -12,5 +14,9 @@ Global
{586E3569-FF54-4F42-A386-7DCC6B96F446}.Debug|Any CPU.Build.0 = Debug|Any CPU
{586E3569-FF54-4F42-A386-7DCC6B96F446}.Release|Any CPU.ActiveCfg = Release|Any CPU
{586E3569-FF54-4F42-A386-7DCC6B96F446}.Release|Any CPU.Build.0 = Release|Any CPU
{D9EAC8A7-3049-4FB7-8E59-B0CFD3FEC9B3}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{D9EAC8A7-3049-4FB7-8E59-B0CFD3FEC9B3}.Debug|Any CPU.Build.0 = Debug|Any CPU
{D9EAC8A7-3049-4FB7-8E59-B0CFD3FEC9B3}.Release|Any CPU.ActiveCfg = Release|Any CPU
{D9EAC8A7-3049-4FB7-8E59-B0CFD3FEC9B3}.Release|Any CPU.Build.0 = Release|Any CPU
EndGlobalSection
EndGlobal
<wpf:ResourceDictionary xml:space="preserve" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:s="clr-namespace:System;assembly=mscorlib" xmlns:ss="urn:shemas-jetbrains-com:settings-storage-xaml" xmlns:wpf="http://schemas.microsoft.com/winfx/2006/xaml/presentation">
<s:String x:Key="/Default/Environment/UnitTesting/UnitTestSessionStore/Sessions/=26476c39_002D70f7_002D439c_002D8878_002D202ba0056e67/@EntryIndexedValue">&lt;SessionState ContinuousTestingMode="0" IsActive="True" Name="CheckMainPage" xmlns="urn:schemas-jetbrains-com:jetbrains-ut-session"&gt;
&lt;Project Location="/home/valentin/Документы/work/c#7/esdp/less5/main/myblog/StudyBlogTests" Presentation="&amp;lt;StudyBlogTests&amp;gt;" /&gt;
&lt;/SessionState&gt;</s:String></wpf:ResourceDictionary>
\ No newline at end of file
......@@ -27,7 +27,7 @@
<input class="form-check-inline" asp-for="RememberMe"/>
</div>
<div class="form-group">
<input class="form-control" type="submit" value="Войти"/>
<input class="form-control" type="submit" id="submit" value="Войти"/>
</div>
</form>
</div>
......
......@@ -8,77 +8,77 @@ build_property.PlatformNeutralAssembly =
build_property._SupportedPlatformList = Linux,macOS,Windows
build_property.RootNamespace = StudyBlog
build_property.RootNamespace = StudyBlog
build_property.ProjectDir = /home/valentin/Документы/work/c#7/esdp/less5/Test/StudyBlog/
build_property.ProjectDir = /home/valentin/Документы/work/c#7/esdp/less5/main/myblog/StudyBlog/
build_property.RazorLangVersion = 6.0
build_property.SupportLocalizedComponentNames =
build_property.GenerateRazorMetadataSourceChecksumAttributes =
build_property.MSBuildProjectDirectory = /home/valentin/Документы/work/c#7/esdp/less5/Test/StudyBlog
build_property.MSBuildProjectDirectory = /home/valentin/Документы/work/c#7/esdp/less5/main/myblog/StudyBlog
build_property._RazorSourceGeneratorDebug =
[/home/valentin/Документы/work/c\#7/esdp/less5/Test/StudyBlog/Views/Account/ChangePassword.cshtml]
[/home/valentin/Документы/work/c\#7/esdp/less5/main/myblog/StudyBlog/Views/Account/ChangePassword.cshtml]
build_metadata.AdditionalFiles.TargetPath = Vmlld3MvQWNjb3VudC9DaGFuZ2VQYXNzd29yZC5jc2h0bWw=
build_metadata.AdditionalFiles.CssScope =
[/home/valentin/Документы/work/c\#7/esdp/less5/Test/StudyBlog/Views/Account/Edit.cshtml]
[/home/valentin/Документы/work/c\#7/esdp/less5/main/myblog/StudyBlog/Views/Account/Edit.cshtml]
build_metadata.AdditionalFiles.TargetPath = Vmlld3MvQWNjb3VudC9FZGl0LmNzaHRtbA==
build_metadata.AdditionalFiles.CssScope =
[/home/valentin/Документы/work/c\#7/esdp/less5/Test/StudyBlog/Views/Account/Index.cshtml]
[/home/valentin/Документы/work/c\#7/esdp/less5/main/myblog/StudyBlog/Views/Account/Index.cshtml]
build_metadata.AdditionalFiles.TargetPath = Vmlld3MvQWNjb3VudC9JbmRleC5jc2h0bWw=
build_metadata.AdditionalFiles.CssScope =
[/home/valentin/Документы/work/c\#7/esdp/less5/Test/StudyBlog/Views/Account/Login.cshtml]
[/home/valentin/Документы/work/c\#7/esdp/less5/main/myblog/StudyBlog/Views/Account/Login.cshtml]
build_metadata.AdditionalFiles.TargetPath = Vmlld3MvQWNjb3VudC9Mb2dpbi5jc2h0bWw=
build_metadata.AdditionalFiles.CssScope =
[/home/valentin/Документы/work/c\#7/esdp/less5/Test/StudyBlog/Views/Account/Register.cshtml]
[/home/valentin/Документы/work/c\#7/esdp/less5/main/myblog/StudyBlog/Views/Account/Register.cshtml]
build_metadata.AdditionalFiles.TargetPath = Vmlld3MvQWNjb3VudC9SZWdpc3Rlci5jc2h0bWw=
build_metadata.AdditionalFiles.CssScope =
[/home/valentin/Документы/work/c\#7/esdp/less5/Test/StudyBlog/Views/Errors/NotFound.cshtml]
[/home/valentin/Документы/work/c\#7/esdp/less5/main/myblog/StudyBlog/Views/Errors/NotFound.cshtml]
build_metadata.AdditionalFiles.TargetPath = Vmlld3MvRXJyb3JzL05vdEZvdW5kLmNzaHRtbA==
build_metadata.AdditionalFiles.CssScope =
[/home/valentin/Документы/work/c\#7/esdp/less5/Test/StudyBlog/Views/Posts/Create.cshtml]
[/home/valentin/Документы/work/c\#7/esdp/less5/main/myblog/StudyBlog/Views/Posts/Create.cshtml]
build_metadata.AdditionalFiles.TargetPath = Vmlld3MvUG9zdHMvQ3JlYXRlLmNzaHRtbA==
build_metadata.AdditionalFiles.CssScope =
[/home/valentin/Документы/work/c\#7/esdp/less5/Test/StudyBlog/Views/Posts/Edit.cshtml]
[/home/valentin/Документы/work/c\#7/esdp/less5/main/myblog/StudyBlog/Views/Posts/Edit.cshtml]
build_metadata.AdditionalFiles.TargetPath = Vmlld3MvUG9zdHMvRWRpdC5jc2h0bWw=
build_metadata.AdditionalFiles.CssScope =
[/home/valentin/Документы/work/c\#7/esdp/less5/Test/StudyBlog/Views/Posts/Index.cshtml]
[/home/valentin/Документы/work/c\#7/esdp/less5/main/myblog/StudyBlog/Views/Posts/Index.cshtml]
build_metadata.AdditionalFiles.TargetPath = Vmlld3MvUG9zdHMvSW5kZXguY3NodG1s
build_metadata.AdditionalFiles.CssScope =
[/home/valentin/Документы/work/c\#7/esdp/less5/Test/StudyBlog/Views/Posts/Post.cshtml]
[/home/valentin/Документы/work/c\#7/esdp/less5/main/myblog/StudyBlog/Views/Posts/Post.cshtml]
build_metadata.AdditionalFiles.TargetPath = Vmlld3MvUG9zdHMvUG9zdC5jc2h0bWw=
build_metadata.AdditionalFiles.CssScope =
[/home/valentin/Документы/work/c\#7/esdp/less5/Test/StudyBlog/Views/Shared/Error.cshtml]
[/home/valentin/Документы/work/c\#7/esdp/less5/main/myblog/StudyBlog/Views/Shared/Error.cshtml]
build_metadata.AdditionalFiles.TargetPath = Vmlld3MvU2hhcmVkL0Vycm9yLmNzaHRtbA==
build_metadata.AdditionalFiles.CssScope =
[/home/valentin/Документы/work/c\#7/esdp/less5/Test/StudyBlog/Views/Shared/PartialViews/PostPartialView.cshtml]
[/home/valentin/Документы/work/c\#7/esdp/less5/main/myblog/StudyBlog/Views/Shared/PartialViews/PostPartialView.cshtml]
build_metadata.AdditionalFiles.TargetPath = Vmlld3MvU2hhcmVkL1BhcnRpYWxWaWV3cy9Qb3N0UGFydGlhbFZpZXcuY3NodG1s
build_metadata.AdditionalFiles.CssScope =
[/home/valentin/Документы/work/c\#7/esdp/less5/Test/StudyBlog/Views/Shared/_Layout.cshtml]
[/home/valentin/Документы/work/c\#7/esdp/less5/main/myblog/StudyBlog/Views/Shared/_Layout.cshtml]
build_metadata.AdditionalFiles.TargetPath = Vmlld3MvU2hhcmVkL19MYXlvdXQuY3NodG1s
build_metadata.AdditionalFiles.CssScope =
[/home/valentin/Документы/work/c\#7/esdp/less5/Test/StudyBlog/Views/Shared/_ValidationScriptsPartial.cshtml]
[/home/valentin/Документы/work/c\#7/esdp/less5/main/myblog/StudyBlog/Views/Shared/_ValidationScriptsPartial.cshtml]
build_metadata.AdditionalFiles.TargetPath = Vmlld3MvU2hhcmVkL19WYWxpZGF0aW9uU2NyaXB0c1BhcnRpYWwuY3NodG1s
build_metadata.AdditionalFiles.CssScope =
[/home/valentin/Документы/work/c\#7/esdp/less5/Test/StudyBlog/Views/Users/Index.cshtml]
[/home/valentin/Документы/work/c\#7/esdp/less5/main/myblog/StudyBlog/Views/Users/Index.cshtml]
build_metadata.AdditionalFiles.TargetPath = Vmlld3MvVXNlcnMvSW5kZXguY3NodG1s
build_metadata.AdditionalFiles.CssScope =
[/home/valentin/Документы/work/c\#7/esdp/less5/Test/StudyBlog/Views/_ViewImports.cshtml]
[/home/valentin/Документы/work/c\#7/esdp/less5/main/myblog/StudyBlog/Views/_ViewImports.cshtml]
build_metadata.AdditionalFiles.TargetPath = Vmlld3MvX1ZpZXdJbXBvcnRzLmNzaHRtbA==
build_metadata.AdditionalFiles.CssScope =
[/home/valentin/Документы/work/c\#7/esdp/less5/Test/StudyBlog/Views/_ViewStart.cshtml]
[/home/valentin/Документы/work/c\#7/esdp/less5/main/myblog/StudyBlog/Views/_ViewStart.cshtml]
build_metadata.AdditionalFiles.TargetPath = Vmlld3MvX1ZpZXdTdGFydC5jc2h0bWw=
build_metadata.AdditionalFiles.CssScope =
......@@ -38,3 +38,43 @@
/home/valentin/Документы/work/c#7/esdp/less5/Test/StudyBlog/obj/Debug/net6.0/StudyBlog.pdb
/home/valentin/Документы/work/c#7/esdp/less5/Test/StudyBlog/obj/Debug/net6.0/StudyBlog.genruntimeconfig.cache
/home/valentin/Документы/work/c#7/esdp/less5/Test/StudyBlog/obj/Debug/net6.0/ref/StudyBlog.dll
/home/valentin/Документы/work/c#7/esdp/less5/main/myblog/StudyBlog/bin/Debug/net6.0/appsettings.Development.json
/home/valentin/Документы/work/c#7/esdp/less5/main/myblog/StudyBlog/bin/Debug/net6.0/appsettings.json
/home/valentin/Документы/work/c#7/esdp/less5/main/myblog/StudyBlog/bin/Debug/net6.0/StudyBlog.staticwebassets.runtime.json
/home/valentin/Документы/work/c#7/esdp/less5/main/myblog/StudyBlog/bin/Debug/net6.0/StudyBlog
/home/valentin/Документы/work/c#7/esdp/less5/main/myblog/StudyBlog/bin/Debug/net6.0/StudyBlog.deps.json
/home/valentin/Документы/work/c#7/esdp/less5/main/myblog/StudyBlog/bin/Debug/net6.0/StudyBlog.runtimeconfig.json
/home/valentin/Документы/work/c#7/esdp/less5/main/myblog/StudyBlog/bin/Debug/net6.0/StudyBlog.dll
/home/valentin/Документы/work/c#7/esdp/less5/main/myblog/StudyBlog/bin/Debug/net6.0/StudyBlog.pdb
/home/valentin/Документы/work/c#7/esdp/less5/main/myblog/StudyBlog/bin/Debug/net6.0/Castle.Core.dll
/home/valentin/Документы/work/c#7/esdp/less5/main/myblog/StudyBlog/bin/Debug/net6.0/Humanizer.dll
/home/valentin/Документы/work/c#7/esdp/less5/main/myblog/StudyBlog/bin/Debug/net6.0/Microsoft.AspNetCore.Cryptography.Internal.dll
/home/valentin/Документы/work/c#7/esdp/less5/main/myblog/StudyBlog/bin/Debug/net6.0/Microsoft.AspNetCore.Cryptography.KeyDerivation.dll
/home/valentin/Документы/work/c#7/esdp/less5/main/myblog/StudyBlog/bin/Debug/net6.0/Microsoft.AspNetCore.Identity.EntityFrameworkCore.dll
/home/valentin/Документы/work/c#7/esdp/less5/main/myblog/StudyBlog/bin/Debug/net6.0/Microsoft.EntityFrameworkCore.dll
/home/valentin/Документы/work/c#7/esdp/less5/main/myblog/StudyBlog/bin/Debug/net6.0/Microsoft.EntityFrameworkCore.Abstractions.dll
/home/valentin/Документы/work/c#7/esdp/less5/main/myblog/StudyBlog/bin/Debug/net6.0/Microsoft.EntityFrameworkCore.Design.dll
/home/valentin/Документы/work/c#7/esdp/less5/main/myblog/StudyBlog/bin/Debug/net6.0/Microsoft.EntityFrameworkCore.Proxies.dll
/home/valentin/Документы/work/c#7/esdp/less5/main/myblog/StudyBlog/bin/Debug/net6.0/Microsoft.EntityFrameworkCore.Relational.dll
/home/valentin/Документы/work/c#7/esdp/less5/main/myblog/StudyBlog/bin/Debug/net6.0/Microsoft.Extensions.Caching.Memory.dll
/home/valentin/Документы/work/c#7/esdp/less5/main/myblog/StudyBlog/bin/Debug/net6.0/Microsoft.Extensions.Identity.Core.dll
/home/valentin/Документы/work/c#7/esdp/less5/main/myblog/StudyBlog/bin/Debug/net6.0/Microsoft.Extensions.Identity.Stores.dll
/home/valentin/Документы/work/c#7/esdp/less5/main/myblog/StudyBlog/bin/Debug/net6.0/Npgsql.dll
/home/valentin/Документы/work/c#7/esdp/less5/main/myblog/StudyBlog/bin/Debug/net6.0/Npgsql.EntityFrameworkCore.PostgreSQL.dll
/home/valentin/Документы/work/c#7/esdp/less5/main/myblog/StudyBlog/obj/Debug/net6.0/StudyBlog.csproj.AssemblyReference.cache
/home/valentin/Документы/work/c#7/esdp/less5/main/myblog/StudyBlog/obj/Debug/net6.0/StudyBlog.GeneratedMSBuildEditorConfig.editorconfig
/home/valentin/Документы/work/c#7/esdp/less5/main/myblog/StudyBlog/obj/Debug/net6.0/StudyBlog.AssemblyInfoInputs.cache
/home/valentin/Документы/work/c#7/esdp/less5/main/myblog/StudyBlog/obj/Debug/net6.0/StudyBlog.AssemblyInfo.cs
/home/valentin/Документы/work/c#7/esdp/less5/main/myblog/StudyBlog/obj/Debug/net6.0/StudyBlog.csproj.CoreCompileInputs.cache
/home/valentin/Документы/work/c#7/esdp/less5/main/myblog/StudyBlog/obj/Debug/net6.0/StudyBlog.MvcApplicationPartsAssemblyInfo.cache
/home/valentin/Документы/work/c#7/esdp/less5/main/myblog/StudyBlog/obj/Debug/net6.0/StudyBlog.RazorAssemblyInfo.cache
/home/valentin/Документы/work/c#7/esdp/less5/main/myblog/StudyBlog/obj/Debug/net6.0/StudyBlog.RazorAssemblyInfo.cs
/home/valentin/Документы/work/c#7/esdp/less5/main/myblog/StudyBlog/obj/Debug/net6.0/staticwebassets.build.json
/home/valentin/Документы/work/c#7/esdp/less5/main/myblog/StudyBlog/obj/Debug/net6.0/staticwebassets.development.json
/home/valentin/Документы/work/c#7/esdp/less5/main/myblog/StudyBlog/obj/Debug/net6.0/scopedcss/bundle/StudyBlog.styles.css
/home/valentin/Документы/work/c#7/esdp/less5/main/myblog/StudyBlog/obj/Debug/net6.0/StudyBlog.csproj.CopyComplete
/home/valentin/Документы/work/c#7/esdp/less5/main/myblog/StudyBlog/obj/Debug/net6.0/StudyBlog.dll
/home/valentin/Документы/work/c#7/esdp/less5/main/myblog/StudyBlog/obj/Debug/net6.0/refint/StudyBlog.dll
/home/valentin/Документы/work/c#7/esdp/less5/main/myblog/StudyBlog/obj/Debug/net6.0/StudyBlog.pdb
/home/valentin/Документы/work/c#7/esdp/less5/main/myblog/StudyBlog/obj/Debug/net6.0/StudyBlog.genruntimeconfig.cache
/home/valentin/Документы/work/c#7/esdp/less5/main/myblog/StudyBlog/obj/Debug/net6.0/ref/StudyBlog.dll
454dd9da6345d1b8d27e9756b14a1165905b9762
14a85460b6711bc8b564d276657f60fcc22733f0
{
"format": 1,
"restore": {
"/home/valentin/Документы/work/c#7/esdp/less5/Test/StudyBlog/StudyBlog.csproj": {}
"/home/valentin/Документы/work/c#7/esdp/less5/main/myblog/StudyBlog/StudyBlog.csproj": {}
},
"projects": {
"/home/valentin/Документы/work/c#7/esdp/less5/Test/StudyBlog/StudyBlog.csproj": {
"/home/valentin/Документы/work/c#7/esdp/less5/main/myblog/StudyBlog/StudyBlog.csproj": {
"version": "1.0.0",
"restore": {
"projectUniqueName": "/home/valentin/Документы/work/c#7/esdp/less5/Test/StudyBlog/StudyBlog.csproj",
"projectUniqueName": "/home/valentin/Документы/work/c#7/esdp/less5/main/myblog/StudyBlog/StudyBlog.csproj",
"projectName": "StudyBlog",
"projectPath": "/home/valentin/Документы/work/c#7/esdp/less5/Test/StudyBlog/StudyBlog.csproj",
"projectPath": "/home/valentin/Документы/work/c#7/esdp/less5/main/myblog/StudyBlog/StudyBlog.csproj",
"packagesPath": "/home/valentin/.nuget/packages/",
"outputPath": "/home/valentin/Документы/work/c#7/esdp/less5/Test/StudyBlog/obj/",
"outputPath": "/home/valentin/Документы/work/c#7/esdp/less5/main/myblog/StudyBlog/obj/",
"projectStyle": "PackageReference",
"configFilePaths": [
"/home/valentin/.nuget/NuGet/NuGet.Config"
......
......@@ -5900,11 +5900,11 @@
"project": {
"version": "1.0.0",
"restore": {
"projectUniqueName": "/home/valentin/Документы/work/c#7/esdp/less5/Test/StudyBlog/StudyBlog.csproj",
"projectUniqueName": "/home/valentin/Документы/work/c#7/esdp/less5/main/myblog/StudyBlog/StudyBlog.csproj",
"projectName": "StudyBlog",
"projectPath": "/home/valentin/Документы/work/c#7/esdp/less5/Test/StudyBlog/StudyBlog.csproj",
"projectPath": "/home/valentin/Документы/work/c#7/esdp/less5/main/myblog/StudyBlog/StudyBlog.csproj",
"packagesPath": "/home/valentin/.nuget/packages/",
"outputPath": "/home/valentin/Документы/work/c#7/esdp/less5/Test/StudyBlog/obj/",
"outputPath": "/home/valentin/Документы/work/c#7/esdp/less5/main/myblog/StudyBlog/obj/",
"projectStyle": "PackageReference",
"configFilePaths": [
"/home/valentin/.nuget/NuGet/NuGet.Config"
......
{
"version": 2,
"dgSpecHash": "bPWHXt1bCUpyoKChuLMM/nwwJHpxda/icDiD3LGhGEhsiV9N2fHpVbeRaBpVmPkCWYuuFEVMq42ekCkYCd5KMQ==",
"dgSpecHash": "nT4gQy8sidv/185ELBkiaOl6cAqJGv68toYrZxtolYWnKzJut7KleKeZmrR8MccRG+esMTYgCl70hqK/n4JjEQ==",
"success": true,
"projectFilePath": "/home/valentin/Документы/work/c#7/esdp/less5/Test/StudyBlog/StudyBlog.csproj",
"projectFilePath": "/home/valentin/Документы/work/c#7/esdp/less5/main/myblog/StudyBlog/StudyBlog.csproj",
"expectedPackageFiles": [
"/home/valentin/.nuget/packages/castle.core/4.4.1/castle.core.4.4.1.nupkg.sha512",
"/home/valentin/.nuget/packages/humanizer.core/2.8.26/humanizer.core.2.8.26.nupkg.sha512",
......
"restore":{"projectUniqueName":"/home/valentin/Документы/work/c#7/esdp/less5/Test/StudyBlog/StudyBlog.csproj","projectName":"StudyBlog","projectPath":"/home/valentin/Документы/work/c#7/esdp/less5/Test/StudyBlog/StudyBlog.csproj","outputPath":"/home/valentin/Документы/work/c#7/esdp/less5/Test/StudyBlog/obj/","projectStyle":"PackageReference","originalTargetFrameworks":["net6.0"],"sources":{"https://api.nuget.org/v3/index.json":{}},"frameworks":{"net6.0":{"targetAlias":"net6.0","projectReferences":{}}},"warningProperties":{"warnAsError":["NU1605"]}}"frameworks":{"net6.0":{"targetAlias":"net6.0","dependencies":{"Microsoft.AspNetCore.Identity.EntityFrameworkCore":{"target":"Package","version":"[6.0.6, )"},"Microsoft.EntityFrameworkCore.Design":{"include":"Runtime, Build, Native, ContentFiles, Analyzers, BuildTransitive","suppressParent":"All","target":"Package","version":"[6.0.6, )"},"Microsoft.EntityFrameworkCore.Proxies":{"target":"Package","version":"[6.0.6, )"},"Npgsql.EntityFrameworkCore.PostgreSQL":{"target":"Package","version":"[6.0.5, )"}},"imports":["net461","net462","net47","net471","net472","net48"],"assetTargetFallback":true,"warn":true,"frameworkReferences":{"Microsoft.AspNetCore.App":{"privateAssets":"none"},"Microsoft.NETCore.App":{"privateAssets":"all"}},"runtimeIdentifierGraphPath":"/usr/share/dotnet/sdk/6.0.301/RuntimeIdentifierGraph.json"}}
\ No newline at end of file
"restore":{"projectUniqueName":"/home/valentin/Документы/work/c#7/esdp/less5/main/myblog/StudyBlog/StudyBlog.csproj","projectName":"StudyBlog","projectPath":"/home/valentin/Документы/work/c#7/esdp/less5/main/myblog/StudyBlog/StudyBlog.csproj","outputPath":"/home/valentin/Документы/work/c#7/esdp/less5/main/myblog/StudyBlog/obj/","projectStyle":"PackageReference","originalTargetFrameworks":["net6.0"],"sources":{"https://api.nuget.org/v3/index.json":{}},"frameworks":{"net6.0":{"targetAlias":"net6.0","projectReferences":{}}},"warningProperties":{"warnAsError":["NU1605"]}}"frameworks":{"net6.0":{"targetAlias":"net6.0","dependencies":{"Microsoft.AspNetCore.Identity.EntityFrameworkCore":{"target":"Package","version":"[6.0.6, )"},"Microsoft.EntityFrameworkCore.Design":{"include":"Runtime, Build, Native, ContentFiles, Analyzers, BuildTransitive","suppressParent":"All","target":"Package","version":"[6.0.6, )"},"Microsoft.EntityFrameworkCore.Proxies":{"target":"Package","version":"[6.0.6, )"},"Npgsql.EntityFrameworkCore.PostgreSQL":{"target":"Package","version":"[6.0.5, )"}},"imports":["net461","net462","net47","net471","net472","net48"],"assetTargetFallback":true,"warn":true,"frameworkReferences":{"Microsoft.AspNetCore.App":{"privateAssets":"none"},"Microsoft.NETCore.App":{"privateAssets":"all"}},"runtimeIdentifierGraphPath":"/usr/share/dotnet/sdk/6.0.301/RuntimeIdentifierGraph.json"}}
\ No newline at end of file
16571873026176962
\ No newline at end of file
16572014087467698
\ No newline at end of file
namespace StudyBlogTests;
public class AuthTests
{
private readonly BasicSteps _basicSteps;
public AuthTests()
{
_basicSteps = new BasicSteps();
}
private bool SeeForm()
{
return _basicSteps.IsElementFound("Введите данные для входа");
}
private void FillAuthForm(string email, string password)
{
_basicSteps.FillFormField("Email", email);
_basicSteps.FillFormField("Password", password);
}
private void SubmitAuthForm()
{
_basicSteps.ClickButtonById("submit");
}
[Fact]
public void AuthenticateTest()
{
_basicSteps.GoToLoginPage();
Assert.True(SeeForm());
Thread.Sleep(1500);
FillAuthForm("admin@admin.com", "1qaz@WSX29");
Thread.Sleep(1500);
SubmitAuthForm();
Thread.Sleep(1500);
Assert.True(_basicSteps.IsElementFound("Список пользователей"));
}
}
\ No newline at end of file
using System;
using OpenQA.Selenium;
using OpenQA.Selenium.Chrome;
namespace StudyBlogTests
{
public class BasicSteps : IDisposable
{
private readonly IWebDriver _driver;
private const string MainPageUrl = "http://localhost:5000";
private const string LoginPageUrl = MainPageUrl + "/Account/Login";
public BasicSteps()
{
_driver = new ChromeDriver();
}
public void Dispose()
{
_driver.Quit();
_driver.Dispose();
}
public bool IsElementFound(string text)
{
var element = _driver.FindElement(By.XPath($"//*[contains(text(), '{text}')]"));
return element != null;
}
public void GoToUrl(string url)
{
_driver.Navigate().GoToUrl(url);
}
public void GoToMainPage()
{
GoToUrl(MainPageUrl);
}
public void GoToLoginPage()
{
GoToUrl(LoginPageUrl);
}
public void ClickLink(string linkText)
{
var link = _driver.FindElement(By.LinkText(linkText));
link.Click();
}
public void ClickButtonById(string id)
{
_driver.FindElement(By.Id(id)).Click();
}
public void FillFormField(string fieldId, string inputText)
{
var field = _driver.FindElement(By.Id(fieldId));
field.SendKeys(inputText);
}
}
}
\ No newline at end of file
using System;
using System.Threading;
using OpenQA.Selenium;
using OpenQA.Selenium.Chrome;
using Xunit;
namespace StudyBlogTests
{
public class MainPageTests
{
private readonly BasicSteps _basicSteps;
public MainPageTests()
{
_basicSteps = new BasicSteps();
}
[Fact]
public void CheckMainPageTiile()
{
_basicSteps.GoToMainPage();
Assert.True(_basicSteps.IsElementFound("Публикации пользователей"));
Assert.True(_basicSteps.IsElementFound("Все записи"));
}
[Fact]
public void LoginWrongModelDataReturnsErrorMessage()
{
_basicSteps.GoToLoginPage();
_basicSteps.FillFormField("Email", "admin@admin.com");
_basicSteps.FillFormField("Password", "wrongPassword");
_basicSteps.ClickButtonById("submit");
Assert.True(_basicSteps.IsElementFound("Неправильный логин или пароль"));
}
[Fact]
public void LoginEmptyEmailModelDataReturnsErrorMessage()
{
_basicSteps.GoToLoginPage();
_basicSteps.FillFormField("Email", string.Empty);
_basicSteps.FillFormField("Password", "wrongPassword");
_basicSteps.ClickButtonById("submit");
Assert.True(_basicSteps.IsElementFound("Это поле обязательно"));
}
}
}
\ No newline at end of file
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFramework>net6.0</TargetFramework>
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
<IsPackable>false</IsPackable>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.1.0" />
<PackageReference Include="Selenium.WebDriver" Version="4.3.0" />
<PackageReference Include="Selenium.WebDriver.ChromeDriver" Version="103.0.5060.5300" />
<PackageReference Include="xunit" Version="2.4.1" />
<PackageReference Include="xunit.runner.visualstudio" Version="2.4.3">
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
<PrivateAssets>all</PrivateAssets>
</PackageReference>
<PackageReference Include="coverlet.collector" Version="3.1.2">
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
<PrivateAssets>all</PrivateAssets>
</PackageReference>
</ItemGroup>
</Project>
global using Xunit;
\ No newline at end of file
This diff is collapsed.
{
"runtimeOptions": {
"tfm": "net6.0",
"framework": {
"name": "Microsoft.NETCore.App",
"version": "6.0.0"
}
}
}
\ No newline at end of file
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment