GithubHelp home page GithubHelp logo

ascendum-wdio's Introduction

Running Test on Ag-Grid using WebdriverIO

Repo for UI Automaton using WebdriverIO with Mocha and Chai. Web Automation Testing with Mocha and Chai, WebdriverIO V6 using Page Object Model


Features


Quick start

Choose one of the following options:

  1. (Optional) Install nvm in your machine.

  2. Install nodeJs using nvm. You can also install nodeJS without using nvm. Here are some references if you are installing not using nvm.

  3. Install your favorite IDE. I used VS Code for this.

  4. Clone the git repo โ€” https://github.com/ianoroceo/ag-grid.

  5. Create .env file and add

    URL=https://www.ag-grid.com/example.php
  6. For Running your tests, Please refer to the npm script in package.json

NPM Script Description
npm run test Runs all of the tests on your Machine in Chrome

Exam Instructions

  1. Follow the Quick start instructions

  2. Create your branch by following the format (First and Last name Initial-AscendumExam). For Example: IO-AscendumExam

  3. Write the tests in grid.test.ts with the following format

    it("Should <what is being validated>", () => {
    })

    For example

    it("Should display the grids", () => {
    });

    Please be descriptive enough on the tests that is being validated

  4. Add Notes on your tests explaining your thought process on creating a function / method. If you use forEach or for loop, explain why you decided to use it (if applicable). Please see example in grid.test.ts

  5. Add descriptive commit messages

  6. Once you are finished, create a PR with the Subject (First and Last name Initial-AscendumExam Final). For Example: IO-AscendumExam Final and add the following

    • Add @ianoroceo as Reviewer

    • Assign the PR to yourself

    • Add Label DO NOT MERGE

    • Add a descriptive comment description for the PR

    • If the PR template is not loaded when you create a PR, please add this on your PR Description

      #### Summary
      
      [A brief description of what this pull request does.]
      
      #### Checklist
      
      [Place an x (no spaces) in all applicable fields. Please remove unrelated fields.]
      
      - [ ] Bug fix (non-breaking change which fixes an issue)
      - [ ] New feature (non-breaking change which adds functionality)
      - [ ] Breaking change (fix or feature that would cause existing functionality to not work as expected)
      - [ ] Is the code properly formatted using EsLint?
      - [ ] Have tested it in integration
      - [ ] Has ReadMe.md been updated, if required?

    Reminder: ONLY create a PR if you are sure you have completed the Exam. Please see sample PR as reference


Tests to be built

Please thoroughly follow instructions. Good luck!

  1. Create a Test to Validate Primary Column Headers have the following Text

    Participant
    Game of Choice
    Performance
    Monthly Breakdown
  2. Create a Test to Validate that the Primary Column Headers are available in the Columns Sidebar options

  3. Create a test to grab the Secondary Column options and validate that these headers are available in the Columns Sidebar options

  4. Create a Test to Validate that Filtering Name will return result. The following names to be used are

    Gil
    Tony
    Isabella
    Poppy
  5. Create a Test to Validate that Winnings in October is less than 5000

Bonus Round

You don't have to do this but it will give you extra points for the exam. Please create a separate test file and name it grid.bonus.test.ts

  1. Upgrade the Test Automation from WebdriverIO v6 to v7.

  2. After upgrading, create a Test where Rating is 2 and 4 Starts ONLY and only show the following columns

    Name
    Country
    Game Name
    Rating
    Jan to May Winnings
  3. Following item #1, after filter by Rating and selecting the columns, create a test to change the data size to 100000 Rows, 22 Cols, change the Theme to Balham and Filter any column by Kobe


FAQ

Question: What is Primary and Secondary Column Headers?

Answer: Please see image below. Primary Column Headers are in Red while the Secondary Column Headers are in Green

ag-grid

ascendum-wdio's People

Contributors

ianoroceo avatar santhosh-alluri avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.