[{"data":1,"prerenderedAt":267},["ShallowReactive",2],{"newsletter-flaky-tests-are-like":3,"newsletter-surround-flaky-tests-are-like":258},{"_path":4,"_dir":5,"_draft":6,"_partial":6,"_locale":7,"title":8,"description":9,"date":10,"publishedAt":11,"slug":12,"image":13,"newsletter":14,"kitId":15,"readingTime":16,"body":21,"_type":252,"_id":253,"_source":254,"_file":255,"_stem":256,"_extension":257},"/newsletter/flaky-tests-are-like","newsletter",false,"","Flaky tests are like...","\\ I’ve been working on a project to reduce test flakes. A project that has over 1200 end-to-end tests in a fairly complex system. As I’ve been slowly trying to reach zero, a pattern emerged.","2025-02-18","2025-02-18T20:27:24Z","flaky-tests-are-like","https://embed.filekitcdn.com/e/7ZDF8HKDtDu5ZtF7YH7UBT/jVpDpuGfAkhCeTmw4Dpo6g",true,18392964,{"text":17,"minutes":18,"time":19,"words":20},"2 min read",1.275,76500,255,{"type":22,"children":23,"toc":240},"root",[24,33,45,61,65,71,83,90,95,104,116,122,135,144,156,162,182,191,194,200,211,224,227,233],{"type":25,"tag":26,"props":27,"children":29},"element","h2",{"id":28},"flaky-tests",[30],{"type":31,"value":32},"text","FLAKY TESTS",{"type":25,"tag":34,"props":35,"children":36},"p",{},[37,39,43],{"type":31,"value":38},"Hello there,",{"type":25,"tag":40,"props":41,"children":42},"br",{},[],{"type":31,"value":44},"\nI’ve been working on a project to reduce test flakes. A project that has over 1200 end-to-end tests in a fairly complex system. As I’ve been slowly trying to reach zero, a pattern emerged.",{"type":25,"tag":34,"props":46,"children":47},{},[48,50,59],{"type":31,"value":49},"It seems like there are common themes when it comes to test flakiness. I shared some of them ",{"type":25,"tag":51,"props":52,"children":56},"a",{"href":53,"rel":54},"https://www.youtube.com/watch?v=_AX7vXHRNoA",[55],"nofollow",[57],{"type":31,"value":58},"in my presentation at CypressConf",{"type":31,"value":60},", but lately it seems that flakiness in end-to-end tests is mostly a timing issue. A situation where test and application fall out of sync.",{"type":25,"tag":62,"props":63,"children":64},"hr",{},[],{"type":25,"tag":26,"props":66,"children":68},{"id":67},"blogposts-discussions-events",[69],{"type":31,"value":70},"Blogposts, discussions, events",{"type":25,"tag":34,"props":72,"children":73},{},[74],{"type":25,"tag":51,"props":75,"children":78},{"href":76,"rel":77},"https://www.linkedin.com/posts/filip-hric_im-working-on-a-project-to-reduce-test-flakes-activity-7296167504064729088-8mPV?utm_source=share&utm_medium=member_desktop&rcm=ACoAAB8OXmYBqZj8pi336do3G55lVgeqmcna8Qc",[55],[79],{"type":25,"tag":80,"props":81,"children":82},"img",{"alt":7,"src":13},[],{"type":25,"tag":84,"props":85,"children":87},"h3",{"id":86},"flaky-tests-are-like-two-cars",[88],{"type":31,"value":89},"Flaky Tests are like two cars...",{"type":25,"tag":34,"props":91,"children":92},{},[93],{"type":31,"value":94},"Flaky tests make debugging a nightmare and can shake confidence in your test suite. I’ve been looking into the most common causes of flaky tests and how to deal with them.",{"type":25,"tag":34,"props":96,"children":97},{},[98],{"type":25,"tag":51,"props":99,"children":101},{"href":76,"rel":100},[55],[102],{"type":31,"value":103},"Read more about it here→",{"type":25,"tag":34,"props":105,"children":106},{},[107],{"type":25,"tag":51,"props":108,"children":111},{"href":109,"rel":110},"https://www.linkedin.com/posts/friendlytester_its-all-just-proof-that-a-tester-was-activity-7296136072286076929-Mvah",[55],[112],{"type":25,"tag":80,"props":113,"children":115},{"alt":7,"src":114},"https://embed.filekitcdn.com/e/7ZDF8HKDtDu5ZtF7YH7UBT/gwJzDS2s32JsZScUU8VaxY",[],{"type":25,"tag":84,"props":117,"children":119},{"id":118},"tester-was-here-a-poem-for-testers",[120],{"type":31,"value":121},"Tester Was Here – A Poem for Testers",{"type":25,"tag":34,"props":123,"children":124},{},[125,127,133],{"type":31,"value":126},"Richard Bradshaw wrote a brilliant poem called ",{"type":25,"tag":128,"props":129,"children":130},"em",{},[131],{"type":31,"value":132},"Tester Was Here",{"type":31,"value":134},", capturing the essence of what it means to be a tester. It’s a fun, insightful read that every tester will relate to.",{"type":25,"tag":34,"props":136,"children":137},{},[138],{"type":25,"tag":51,"props":139,"children":141},{"href":109,"rel":140},[55],[142],{"type":31,"value":143},"Listen the poem →",{"type":25,"tag":34,"props":145,"children":146},{},[147],{"type":25,"tag":51,"props":148,"children":151},{"href":149,"rel":150},"https://www.linkedin.com/posts/filip-hric_i-made-my-course-cheaper-and-added-activity-7296079904352202753-7LKl?utm_source=share&utm_medium=member_desktop&rcm=ACoAAB8OXmYBqZj8pi336do3G55lVgeqmcna8Qc",[55],[152],{"type":25,"tag":80,"props":153,"children":155},{"alt":7,"src":154},"https://embed.filekitcdn.com/e/7ZDF8HKDtDu5ZtF7YH7UBT/63ZZYnMzFtdrJsxWTD8hd2",[],{"type":25,"tag":84,"props":157,"children":159},{"id":158},"_99-cypress-tips-did-you-miss-the-discount",[160],{"type":31,"value":161},"99 Cypress Tips – Did You Miss the Discount?",{"type":25,"tag":34,"props":163,"children":164},{},[165,167,172,174,180],{"type":31,"value":166},"Missed the original discount for my ",{"type":25,"tag":128,"props":168,"children":169},{},[170],{"type":31,"value":171},"99 Cypress Tips",{"type":31,"value":173}," course? You might still be eligible for a ",{"type":25,"tag":175,"props":176,"children":177},"strong",{},[178],{"type":31,"value":179},"location-based discount",{"type":31,"value":181},"!",{"type":25,"tag":34,"props":183,"children":184},{},[185],{"type":25,"tag":51,"props":186,"children":188},{"href":149,"rel":187},[55],[189],{"type":31,"value":190},"Check if you qualify →",{"type":25,"tag":62,"props":192,"children":193},{},[],{"type":25,"tag":26,"props":195,"children":197},{"id":196},"test-automation-tip",[198],{"type":31,"value":199},"Test automation tip",{"type":25,"tag":34,"props":201,"children":202},{},[203,205,209],{"type":31,"value":204},"Cypress allows you to select only elements that are visible by utilizing ",{"type":25,"tag":206,"props":207,"children":208},"visible",{},[],{"type":31,"value":210}," pseudo selector from jQuery. This can be quite useful especially when testing submission forms that tend to have hidden input fields.",{"type":25,"tag":212,"props":213,"children":218},"pre",{"className":214,"code":216,"language":217,"meta":7},[215],"language-js","it(':visible elements', () => {\n\n  const data = [\"Filip\", \"Hric\", \"90210\", \"filip@filiphric.sk\", \"chuckN0rri$\"]\n\n  cy.visit('/')\n\n  cy.get('input:visible').each((el, i) => {\n    cy.wrap(el)\n      .type(data[i])\n  })\n\n  cy.contains('button', 'Register')\n    .should('be.enabled')\n\n})\n","js",[219],{"type":25,"tag":220,"props":221,"children":222},"code",{"__ignoreMap":7},[223],{"type":31,"value":216},{"type":25,"tag":62,"props":225,"children":226},{},[],{"type":25,"tag":26,"props":228,"children":230},{"id":229},"meme-of-the-week",[231],{"type":31,"value":232},"Meme of the week",{"type":25,"tag":34,"props":234,"children":235},{},[236],{"type":25,"tag":80,"props":237,"children":239},{"alt":7,"src":238},"https://embed.filekitcdn.com/e/7ZDF8HKDtDu5ZtF7YH7UBT/bCu4gvqnn7dan25f1pa4Ny/email",[],{"title":7,"searchDepth":241,"depth":241,"links":242},2,[243,244,250,251],{"id":28,"depth":241,"text":32},{"id":67,"depth":241,"text":70,"children":245},[246,248,249],{"id":86,"depth":247,"text":89},3,{"id":118,"depth":247,"text":121},{"id":158,"depth":247,"text":161},{"id":196,"depth":241,"text":199},{"id":229,"depth":241,"text":232},"markdown","content:newsletter:flaky-tests-are-like:index.md","content","newsletter/flaky-tests-are-like/index.md","newsletter/flaky-tests-are-like/index","md",[259,263],{"_path":260,"title":261,"slug":262},"/newsletter/looking-for-a-new-challenge","Looking for a New Challenge","looking-for-a-new-challenge",{"_path":264,"title":265,"slug":266},"/newsletter/llms-are-not-magic","LLMs are not magic","llms-are-not-magic",1796304106386]