Uh oh!
There was an error while loading. Please reload this page.
[DONE ] Testing Recipes .. - #198
Conversation
Deploy preview for ar-reactjs ready! Built with commit 6594af5 |
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
3imed-jaberi
left a comment
There was a problem hiding this comment.
ارجو منك التاكد من ان كل كلمة renders تمت ترجمتها إلى التصيير ..
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
3imed-jaberi
commented
Nov 17, 2019
@mohamedsgap, any update !! |
mohamedsgap
commented
Nov 18, 2019
@3imed-jaberi sorry, I'm so busy this week but I'm going to submit the new changes on Friday. |
mohamedsgap
commented
Nov 22, 2019
@3imed-jaberi@Aissaoui-Ahmed I've finished translating the request changes! |
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
mohamedsgap
commented
Nov 23, 2019
I've done the latest request changes! @3imed-jaberi@Aissaoui-Ahmed thanks a lot guys for helping me :) |
| يساعد هذا في جعل اختباراتك أقرب إلى ما سيختبره المستخدمون الحقيقيون عند استخدام التطبيق الخاص بك. تستخدم بقية هذه الأمثلة `act()` لتقديم هذه الضمانات. | ||
| You might find using `act()` directly a bit too verbose. To avoid some of the boilerplate, you could use a library like [React Testing Library](https://testing-library.com/react), whose helpers are wrapped with `act()`. | ||
| قد تجد استخدام `act()`بشكل مطول قليلاً جدًا. لتجنب بعض العناصر النحاسية ، يمكنك استخدام مكتبة مثل [React Testing Library](https://testing-library.com/react)، حيث يتم لف مساعديه `act()`. |
There was a problem hiding this comment.
| قد تجد استخدام `act()`بشكل مطول قليلاً جدًا. لتجنب بعض العناصر النحاسية ، يمكنك استخدام مكتبة مثل [React Testing Library](https://testing-library.com/react)، حيث يتم لف مساعديه `act()`. | |
| قد تجد استخدام `act()`بشكل مطول قليلاً جدًا. لتجنب بعض العناصر النحاسية ، يمكنك استخدام مكتبة مثل [React Testing Library](https://testing-library.com/react)، حيث يتم لف مساعديه `act()`. |
| > ملاحظة: | ||
| > | ||
| > The name `act` comes from the [Arrange-Act-Assert](http://wiki.c2.com/?ArrangeActAssert) pattern. | ||
| > اسم `act` يأتى من نمط ال [Arrange-Act-Assert](http://wiki.c2.com/?ArrangeActAssert) |
There was a problem hiding this comment.
| > اسم `act` يأتى من نمط ال [Arrange-Act-Assert](http://wiki.c2.com/?ArrangeActAssert) | |
| > اسم `act` يأتى من نمط ال [Arrange-Act-Assert](http://wiki.c2.com/?ArrangeActAssert) |
| --- | ||
| ### Data Fetching {#data-fetching} | ||
| ### جلب البيانات {#data-fetching} |
There was a problem hiding this comment.
| ### جلب البيانات {#data-fetching} | |
| ### جلب البيانات {#data-fetching} |
| --- | ||
| ### Mocking Modules {#mocking-modules} | ||
| ### محاكاة الوحدات {#mocking-modules} |
There was a problem hiding this comment.
| ### محاكاة الوحدات {#mocking-modules} | |
| ### محاكاة الوحدات {#mocking-modules} |
| --- | ||
| ### Events {#events} | ||
| ### الأحداث {#events} |
There was a problem hiding this comment.
| ### الأحداث {#events} | |
| ### الأحداث {#events} |
| --- | ||
| ### Snapshot Testing {#snapshot-testing} | ||
| ### لقطة اختبار {#snapshot-testing} |
There was a problem hiding this comment.
| ### لقطة اختبار {#snapshot-testing} | |
| ### لقطة اختبار {#snapshot-testing} |
| > ملاحظة: | ||
| > | ||
| > This page assumes you're using [Jest](https://jestjs.io/) as a test runner. If you use a different test runner, you may need to adjust the API, but the overall shape of the solution will likely be the same. Read more details on setting up a testing environment on the [Testing Environments](/docs/testing-environments.html) page. | ||
| > تفترض هذه الصفحة أنك تستخدم [Jest](https://jestjs.io/) كمرشح للاختبار. إذا كنت تستخدم عداء اختبار مختلفًا ، فقد تحتاج إلى ضبط واجهة برمجة التطبيقات ، ولكن من المحتمل أن يكون الشكل العام للحل هو نفسه. اقرأ المزيد من التفاصيل حول إعداد بيئة اختبار على صفحة اختبار البيئات.[بيئات الاختبار](/docs/testing-environments.html) |
There was a problem hiding this comment.
| > تفترض هذه الصفحة أنك تستخدم [Jest](https://jestjs.io/) كمرشح للاختبار. إذا كنت تستخدم عداء اختبار مختلفًا ، فقد تحتاج إلى ضبط واجهة برمجة التطبيقات ، ولكن من المحتمل أن يكون الشكل العام للحل هو نفسه. اقرأ المزيد من التفاصيل حول إعداد بيئة اختبار على صفحة اختبار البيئات.[بيئات الاختبار](/docs/testing-environments.html) | |
| > تفترض هذه الصفحة أنك تستخدم [Jest](https://jestjs.io/) كمرشح للاختبار. إذا كنت تستخدم عداء اختبار مختلفًا ، فقد تحتاج إلى ضبط واجهة برمجة التطبيقات ، ولكن من المحتمل أن يكون الشكل العام للحل هو نفسه. اقرأ المزيد من التفاصيل حول إعداد بيئة اختبار على صفحة اختبار البيئات.[بيئات الاختبار](/docs/testing-environments.html) |
| ### التثبيت/الغاء التثبيت {#setup--teardown} | ||
| For each test, we usually want to render our React tree to a DOM element that's attached to `document`. This is important so that it can receive DOM events. When the test ends, we want to "clean up" and unmount the tree from the `document`. | ||
| لكل اختبار نقوم باعادة تقديم React tree الى عنصر DOM المرفق ب `document`. وهذا مهم حتى نتمكن من استقبال DOM events. وعندما ينتهى الاختبار نريد ازاله ال tree من `document`. |
There was a problem hiding this comment.
| لكل اختبار نقوم باعادة تقديم React tree الى عنصر DOM المرفق ب `document`. وهذا مهم حتى نتمكن من استقبال DOM events. وعندما ينتهى الاختبار نريد ازاله ال tree من `document`. | |
| لكل اختبار نقوم باعادة تقديم React tree الى عنصر DOM المرفق ب `document`. وهذا مهم حتى نتمكن من استقبال DOM events. وعندما ينتهى الاختبار نريد ازاله ال tree من `document`. |
| لكل اختبار نقوم باعادة تقديم React tree الى عنصر DOM المرفق ب `document`. وهذا مهم حتى نتمكن من استقبال DOM events. وعندما ينتهى الاختبار نريد ازاله ال tree من `document`. | ||
| A common way to do it is to use a pair of `beforeEach` and `afterEach` blocks so that they'll always run and isolate the effects of a test to itself: | ||
| هناك طريقة شائعة للقيام بذلك هي استخدام زوج من `beforeEach` و `afterEach` بحيث يتم تشغيلهما دائمًا وعزل آثار الاختبار عن نفسه: |
There was a problem hiding this comment.
| هناك طريقة شائعة للقيام بذلك هي استخدام زوج من `beforeEach` و `afterEach` بحيث يتم تشغيلهما دائمًا وعزل آثار الاختبار عن نفسه: | |
| هناك طريقة شائعة للقيام بذلك هي استخدام زوج من `beforeEach` و `afterEach` بحيث يتم تشغيلهما دائمًا وعزل آثار الاختبار عن نفسه: |
Aissaoui-Ahmed
left a comment
There was a problem hiding this comment.
Great job just remove double spaces
mohamedsgap
commented
Nov 24, 2019
just removed double spaces @Aissaoui-Ahmed , @3imed-jaberi approved the pull request!, what's next guys! ? |
asantarissy
commented
Nov 24, 2019
Great job @mohamedsgap 🚀 check out #1 we still have couple of pages, enjoy 😊 |
Finish translating Testing Recipes page!
Refs: HERE