mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-09-17 15:13:08 +00:00
initial commit of chrome only of new replacement web ui
remove node modules make new data file for web ui initial commit of dashboard switch back to non SSL request move port splitting to common place; add to node resource location Signed-off-by: Patrick Reilly <patrick@kismatic.io> various path fixes make svg path relative work around missing mime type Signed-off-by: Patrick Reilly <patrick@kismatic.io> fix paths fix karma path remove bad protractor test
This commit is contained in:
13
www/test/e2e/protractor.conf.js
Normal file
13
www/test/e2e/protractor.conf.js
Normal file
@@ -0,0 +1,13 @@
|
||||
exports.config = {
|
||||
allScriptsTimeout: 11000,
|
||||
|
||||
specs: ['*.js'],
|
||||
|
||||
capabilities: {'browserName': 'chrome'},
|
||||
|
||||
baseUrl: 'http://localhost:8000/app/',
|
||||
|
||||
framework: 'jasmine',
|
||||
|
||||
jasmineNodeOpts: {defaultTimeoutInterval: 30000}
|
||||
};
|
32
www/test/e2e/scenarios.js
Normal file
32
www/test/e2e/scenarios.js
Normal file
@@ -0,0 +1,32 @@
|
||||
'use strict';
|
||||
|
||||
/* https://github.com/angular/protractor/blob/master/docs/toc.md */
|
||||
|
||||
describe('my app', function() {
|
||||
|
||||
browser.get('index.html');
|
||||
|
||||
it('should automatically redirect to /view1 when location hash/fragment is empty', function() {
|
||||
expect(browser.getLocationAbsUrl()).toMatch("/view1");
|
||||
});
|
||||
|
||||
describe('view1', function() {
|
||||
|
||||
beforeEach(function() { browser.get('index.html#/view1'); });
|
||||
|
||||
it('should render view1 when user navigates to /view1', function() {
|
||||
expect(element.all(by.css('[ng-view] p')).first().getText()).toMatch(/partial for view 1/);
|
||||
});
|
||||
|
||||
});
|
||||
|
||||
describe('view2', function() {
|
||||
|
||||
beforeEach(function() { browser.get('index.html#/view2'); });
|
||||
|
||||
it('should render view2 when user navigates to /view2', function() {
|
||||
expect(element.all(by.css('[ng-view] p')).first().getText()).toMatch(/partial for view 2/);
|
||||
});
|
||||
|
||||
});
|
||||
});
|
Reference in New Issue
Block a user