SHARE
TWEET

Untitled

a guest Mar 21st, 2019 50 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. describe('Internet Explorer 11', () => {
  2.   it('displays a banner', () => {
  3.     const { expectBannerToBeDisplayed } = setup({
  4.       userAgent: FakeUserAgent.InternetExplorer11,
  5.     });
  6.  
  7.     expectBannerToBeDisplayed();
  8.   });
  9.  
  10.   it('the banner is dismissable', () => {
  11.     const { clickDismissButton, expectBannerToBeHidden } = setup({
  12.       userAgent: FakeUserAgent.InternetExplorer11
  13.     });
  14.  
  15.     clickDismissButton();
  16.  
  17.     expectBannerToBeHidden();
  18.   });
  19. });
  20.  
  21.  
  22. describe('Other browsers', () => {
  23.   it('hides the banner', () => {
  24.     const { expectBannerToBeHidden } = setup({
  25.       userAgent: FakeUserAgent.Chrome,
  26.     });
  27.  
  28.     expectBannerToBeHidden();
  29.   });
  30. });
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top