Skip to content

Commit ceb3de0

Browse files
committed
ECER-5270: test fix
1 parent dac1c8f commit ceb3de0

File tree

1 file changed

+1
-11
lines changed

1 file changed

+1
-11
lines changed

src/ECER.Tests/Integration/RegistryApi/IcraTests.cs

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
using Alba;
22
using Bogus;
33
using ECER.Clients.RegistryPortal.Server.ICRA;
4-
using ECER.Clients.RegistryPortal.Server;
54
using Shouldly;
65
using System.Net;
76
using System.Net.Http.Headers;
@@ -131,16 +130,7 @@ public async Task SaveDraftIcraEligibility_WithInternationalCertificationAndFile
131130

132131
var uploadedFileResponse = (await fileResponse.ReadAsJsonAsync<ECER.Clients.RegistryPortal.Server.Files.FileResponse>()).ShouldNotBeNull();
133132

134-
var countriesResponse = await Host.Scenario(_ =>
135-
{
136-
_.WithExistingUser(this.Fixture.AuthenticatedBcscUserIdentity, this.Fixture.AuthenticatedBcscUser);
137-
_.Get.Url("/api/countrylist");
138-
_.StatusCodeShouldBeOk();
139-
});
140-
141-
var countries = await countriesResponse.ReadAsJsonAsync<Country[]>();
142-
countries.ShouldNotBeNull();
143-
var countryId = countries.FirstOrDefault(c => c.IsICRA)?.CountryId ?? countries.First().CountryId;
133+
var countryId = this.Fixture.Country.ecer_CountryId!.Value.ToString();
144134

145135
var eligibility = new ICRAEligibility
146136
{

0 commit comments

Comments
 (0)