def METHOD_NAME(page, port, card_components):
    w1, w2 = card_components
    background = 'rgb(128, 128, 128)'
    card = Card(w1, w2, background=background)
    serve_panel_widget(page, port, card)
    card_widget = page.locator('.card')
    assert f'background: {background};' in card_widget.get_attribute('style')