-
Notifications
You must be signed in to change notification settings - Fork 354
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This PR cleans up the tests by utilizing page objects and breaking out tests into various files. It also attempts to start formalizing some scenario helpers that can be used to run the same modules against multiple scenarios.
- Loading branch information
Showing
16 changed files
with
535 additions
and
634 deletions.
There are no files selected for viewing
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
import { module, moduleForComponent } from 'ember-qunit'; | ||
|
||
export function scenarioModule(scenarios, callback) { | ||
for (let scenario in scenarios) { | ||
module(scenario, function(...moduleArgs) { | ||
callback(scenarios[scenario], ...moduleArgs); | ||
}); | ||
} | ||
} | ||
|
||
export function componentModule(moduleName, callback) { | ||
moduleForComponent('ember-table', moduleName, { integration: true }); | ||
|
||
callback(); | ||
} |
Oops, something went wrong.