Skip to content

NEST-608: Disable attribute-empty-style and update html-validate NPM package - #816

Open
sarahelsaig wants to merge 7 commits into
devfrom
issue/NEST-608
Open

NEST-608: Disable attribute-empty-style and update html-validate NPM package#816
sarahelsaig wants to merge 7 commits into
devfrom
issue/NEST-608

Conversation

@sarahelsaig

@sarahelsaig sarahelsaig commented Aug 28, 2026

Copy link
Copy Markdown
Member

because it will never work. When passing the page source to html-validate using await new HtmlValidator(options).ValidateAsync(context.Driver.PageSource) we will find that Chrome (also Firefox) converts the raw HTML into <div hidden> into <div hidden=\"\"></div> which violates the rule with that empty value. This can be confirmed in the browser's developer console by typing document.body.innerHTML = '<div hidden>'; alert(document.body.innerHTML).

NEST-608

@sarahelsaig sarahelsaig changed the title NEST-608: Disable attribute-empty-style NEST-608: Disable attribute-empty-style and update html-validate NPM package Aug 28, 2026
Comment on lines +802 to +814
private Task OnAssertCloudflareErrorPageAsync(UITestContext context)
{
// Using JavaScript is much faster
var isCloudflareErrorPage = context.ExecuteScript(CloudflareErrorPageDetectionJavaScript);
if (isCloudflareErrorPage is true)
{
throw new PageChangeAssertionException(
$"Cloudflare error page \"{context.Driver.Title}\" encountered. Check the \"PageSource.mhtml\" file " +
"in the test dump for more details.");
}

return Task.CompletedTask;
}

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Since this is remote test-specific for CF, it should rather be in CloudflareRemoteUITestBase.

Comment on lines +34 to +38
<ItemGroup>
<EmbeddedResource Update="Recipes\Lombiq.Tenants.Core.Features.recipe.json">
<CopyToPublishDirectory>Never</CopyToPublishDirectory>
</EmbeddedResource>
</ItemGroup>

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this actually needed, also for proper NuGet publishing? E.g. Lombiq.Walkthroughs and Lombiq.UIKit.Widgets don't have this for their recipes.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants