মূল কনটেন্টে যান
🐹
emberjs learning
Quality•দিন ০৬৪/৬৫

Use ember-a11y-testing for Automated Checks

এই দিনের কাজ · মোট ১০′০/১ (০%)
  • Use ember-a11y-testing for Automated Checks — নিচের Incorrect কোড পড়ে, না দেখে ঠিক সংস্করণটা লিখুন; তারপর "কেন" ইংরেজিতে ২–৩ বাক্যে জোরে বলুন, আর খাতায় এক লাইন: নিজের কাজে এটা কোথায় দেখেছেন

    Incorrect (no accessibility testing):

    // tests/integration/components/user-form-test.js
    import { module, test } from 'qunit';
    import { setupRenderingTest } from 'ember-qunit';
    import { render, fillIn, click } from '@ember/test-helpers';
    import UserForm from 'my-app/components/user-form';
    
    module('Integration | Component | user-form', function (hooks) {
      setupRenderingTest(hooks);
    
      test('it submits the form', async function (assert) {
        await render(<template><UserForm /></template>);
        await fillIn('input', 'John');
        await click('button');
        assert.ok(true);
      });
    });
    
    ১০′🔁 ঝালাই হবেimpact · HIGHCorrect: আগে নিজে লিখুন
দিন শেষে — নিজেকে যাচাই
না দেখে ঠিকটা লেখা, আর "কেন" ইংরেজিতে জোরে বলা হয়েছে?

উত্তরের আগে উপরের কাজ না দেখে মনে করুন এই দিনে কী কী করেছেন। 🧠 Test yourself