Skip to content

Commit a9054ab

Browse files
authored
Update expected links in razor pages template - individual auth (#26205)
1 parent ab62e1c commit a9054ab

File tree

3 files changed

+12
-12
lines changed

3 files changed

+12
-12
lines changed

src/ProjectTemplates/test/IdentityUIPackageTest.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,6 @@ public IdentityUIPackageTest(ProjectFactoryFixture projectFactory, ITestOutputHe
6767

6868
[ConditionalFact]
6969
[SkipOnHelix("cert failure", Queues = "All.OSX")]
70-
[QuarantinedTest("https://github.com/dotnet/aspnetcore/issues/19716")]
7170
public async Task IdentityUIPackage_WorksWithDifferentOptions()
7271
{
7372
var packageOptions = new Dictionary<string, string>();

src/ProjectTemplates/test/MvcTemplateTest.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -136,6 +136,7 @@ public async Task MvcTemplate_IndividualAuth(bool useLocalDB)
136136
Assert.True(0 == migrationsResult.ExitCode, ErrorMessages.GetFailedProcessMessage("run EF migrations", Project, migrationsResult));
137137
Project.AssertEmptyMigration("mvc");
138138

139+
// Note: if any links are updated here, RazorPagesTemplateTest.cs should be updated as well
139140
var pages = new List<Page> {
140141
new Page
141142
{

src/ProjectTemplates/test/RazorPagesTemplateTest.cs

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,6 @@ public async Task RazorPagesTemplate_NoAuth()
9999
[InlineData(false)]
100100
[InlineData(true)]
101101
[SkipOnHelix("cert failure", Queues = "All.OSX")]
102-
[QuarantinedTest("https://github.com/dotnet/aspnetcore/issues/19716")]
103102
public async Task RazorPagesTemplate_IndividualAuth(bool useLocalDB)
104103
{
105104
Project = await ProjectFactory.GetOrCreateProject("razorpagesindividual" + (useLocalDB ? "uld" : ""), Output);
@@ -127,16 +126,17 @@ public async Task RazorPagesTemplate_IndividualAuth(bool useLocalDB)
127126
Assert.True(0 == migrationsResult.ExitCode, ErrorMessages.GetFailedProcessMessage("run EF migrations", Project, migrationsResult));
128127
Project.AssertEmptyMigration("razorpages");
129128

129+
// Note: if any links are updated here, MvcTemplateTest.cs should be updated as well
130130
var pages = new List<Page> {
131131
new Page
132132
{
133133
Url = PageUrls.ForgotPassword,
134134
Links = new string [] {
135135
PageUrls.HomeUrl,
136-
PageUrls.RegisterUrl,
137-
PageUrls.LoginUrl,
138136
PageUrls.HomeUrl,
139137
PageUrls.PrivacyUrl,
138+
PageUrls.RegisterUrl,
139+
PageUrls.LoginUrl,
140140
PageUrls.PrivacyUrl
141141
}
142142
},
@@ -145,10 +145,10 @@ public async Task RazorPagesTemplate_IndividualAuth(bool useLocalDB)
145145
Url = PageUrls.HomeUrl,
146146
Links = new string[] {
147147
PageUrls.HomeUrl,
148-
PageUrls.RegisterUrl,
149-
PageUrls.LoginUrl,
150148
PageUrls.HomeUrl,
151149
PageUrls.PrivacyUrl,
150+
PageUrls.RegisterUrl,
151+
PageUrls.LoginUrl,
152152
PageUrls.DocsUrl,
153153
PageUrls.PrivacyUrl
154154
}
@@ -158,10 +158,10 @@ public async Task RazorPagesTemplate_IndividualAuth(bool useLocalDB)
158158
Url = PageUrls.PrivacyUrl,
159159
Links = new string[] {
160160
PageUrls.HomeUrl,
161-
PageUrls.RegisterUrl,
162-
PageUrls.LoginUrl,
163161
PageUrls.HomeUrl,
164162
PageUrls.PrivacyUrl,
163+
PageUrls.RegisterUrl,
164+
PageUrls.LoginUrl,
165165
PageUrls.PrivacyUrl
166166
}
167167
},
@@ -170,10 +170,10 @@ public async Task RazorPagesTemplate_IndividualAuth(bool useLocalDB)
170170
Url = PageUrls.LoginUrl,
171171
Links = new string[] {
172172
PageUrls.HomeUrl,
173-
PageUrls.RegisterUrl,
174-
PageUrls.LoginUrl,
175173
PageUrls.HomeUrl,
176174
PageUrls.PrivacyUrl,
175+
PageUrls.RegisterUrl,
176+
PageUrls.LoginUrl,
177177
PageUrls.ForgotPassword,
178178
PageUrls.RegisterUrl,
179179
PageUrls.ResendEmailConfirmation,
@@ -185,10 +185,10 @@ public async Task RazorPagesTemplate_IndividualAuth(bool useLocalDB)
185185
Url = PageUrls.RegisterUrl,
186186
Links = new string [] {
187187
PageUrls.HomeUrl,
188-
PageUrls.RegisterUrl,
189-
PageUrls.LoginUrl,
190188
PageUrls.HomeUrl,
191189
PageUrls.PrivacyUrl,
190+
PageUrls.RegisterUrl,
191+
PageUrls.LoginUrl,
192192
PageUrls.ExternalArticle,
193193
PageUrls.PrivacyUrl
194194
}

0 commit comments

Comments
 (0)