@@ -49,48 +49,48 @@ test('Light and dark brand files', async ({ page }) => {
4949 await page . goto ( './html/unified-brand/light-dark-brand-file.html' ) ;
5050 expect ( await page . locator ( 'a.quarto-color-scheme-toggle' ) . count ( ) ) . toEqual ( 1 ) ;
5151
52- check_link_colors ( page , 'quarto-light' ) ;
52+ await check_link_colors ( page , 'quarto-light' ) ;
5353} ) ;
5454
5555test ( 'Light and dark brands inline' , async ( { page } ) => {
5656 await page . goto ( './html/unified-brand/light-dark-brand.html' ) ;
5757 expect ( await page . locator ( 'a.quarto-color-scheme-toggle' ) . count ( ) ) . toEqual ( 1 ) ;
5858
59- check_link_colors ( page , 'quarto-light' ) ;
59+ await check_link_colors ( page , 'quarto-light' ) ;
6060} ) ;
6161
6262test ( 'Dark and light brand files' , async ( { page } ) => {
6363 await page . goto ( './html/unified-brand/dark-light-brand-file.html' ) ;
6464 expect ( await page . locator ( 'a.quarto-color-scheme-toggle' ) . count ( ) ) . toEqual ( 1 ) ;
6565
66- check_link_colors ( page , 'quarto-dark' ) ;
66+ await check_link_colors ( page , 'quarto-dark' ) ;
6767} ) ;
6868
6969test ( 'Dark and light brands inline' , async ( { page } ) => {
7070 await page . goto ( './html/unified-brand/dark-light-brand.html' ) ;
7171 expect ( await page . locator ( 'a.quarto-color-scheme-toggle' ) . count ( ) ) . toEqual ( 1 ) ;
7272
73- check_link_colors ( page , 'quarto-dark' ) ;
73+ await check_link_colors ( page , 'quarto-dark' ) ;
7474} ) ;
7575
7676
7777test ( 'Unified light and dark brand file' , async ( { page } ) => {
7878 await page . goto ( './html/unified-brand/unified-colors-file.html' ) ;
7979 expect ( await page . locator ( 'a.quarto-color-scheme-toggle' ) . count ( ) ) . toEqual ( 1 ) ;
8080
81- check_link_colors ( page , 'quarto-light' ) ;
81+ await check_link_colors ( page , 'quarto-light' ) ;
8282} ) ;
8383
8484test ( 'Unified light and dark brand inline' , async ( { page } ) => {
8585 await page . goto ( './html/unified-brand/unified-colors.html' ) ;
8686 expect ( await page . locator ( 'a.quarto-color-scheme-toggle' ) . count ( ) ) . toEqual ( 1 ) ;
8787
88- check_link_colors ( page , 'quarto-light' ) ;
88+ await check_link_colors ( page , 'quarto-light' ) ;
8989} ) ;
9090
9191test ( 'Unified light and dark typography inline' , async ( { page } ) => {
9292 await page . goto ( './html/unified-brand/unified-typography.html' ) ;
9393 expect ( await page . locator ( 'a.quarto-color-scheme-toggle' ) . count ( ) ) . toEqual ( 1 ) ;
9494
95- check_link_colors ( page , 'quarto-light' ) ;
95+ await check_link_colors ( page , 'quarto-light' ) ;
9696} ) ;
0 commit comments