We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 98d0c5a commit a26550aCopy full SHA for a26550a
tests/cypress/integration/cloudflare-fonts.cy.js
@@ -24,13 +24,15 @@ describe(
24
} );
25
26
it( 'Shows Font Optimization section when capability is true and toggle is enabled', () => {
27
- setSiteCapabilities( { hasCloudflareFonts: true } );
28
-
+ // Visit the performance page to set the initial capabilities
29
cy.visit( '/wp-admin/admin.php?page=nfd-performance' );
30
cy.get( '#nfd-performance', { timeout: 10000 } ).should(
31
'be.visible'
32
);
33
+ setSiteCapabilities( { hasCloudflareFonts: true } );
34
+ cy.reload();
35
+
36
performancePageLocators.getFontToggle().should( 'exist' );
37
performancePageLocators
38
.getFontToggle()
0 commit comments