refreshApplication(); } afterEach(function () { rebootWithShowcase(true); }); it('mounts the showcase when enabled', function () { $this->withoutVite() ->get('/material') ->assertOk() ->assertSee('Livewire Material'); }); it('does not mount the showcase when disabled', function () { rebootWithShowcase(false); $this->get('/material')->assertNotFound(); }); it('serves a symbol for the icon search', function () { $this->get('/material/symbols/filled/favorite.svg') ->assertOk() ->assertHeader('Content-Type', 'image/svg+xml') ->assertSee('viewBox="0 -960 960 960"', false); }); it('answers 404 for a symbol or style that does not exist', function () { $this->get('/material/symbols/outlined/not_a_symbol_at_all.svg')->assertNotFound(); $this->get('/material/symbols/sharp/favorite.svg')->assertNotFound(); }); it('lists the symbol names for the icon search', function () { $this->getJson('/material/symbols.json') ->assertOk() ->assertJsonFragment(['calendar_month']) ->assertJsonCount(count(SvgFile::symbolNames())); });