Configure IntelliJ to Run Cucumber features
When you run the tests through the feature file, you can notice that it create a run configuration for this file. See the picture below.
Choose to Edit Configurations. In the configurations window, specify the path to the steps package in the Glue parameter. That should be it.