san650/ember-cli-page-object

View on GitHub

Showing 211 of 211 total issues

Similar blocks of code found in 3 locations. Consider refactoring.
Open

test('looks for elements within test container specified at node level', async function (this: TestContext, assert) {
const page = create({
testContainer: '#alternate-ember-testing',
foo: isPresent('span'),
});
Severity: Major
Found in test-app/tests/unit/-private/properties/is-present-test.ts and 2 other locations - About 3 hrs to fix
test-app/tests/unit/-private/properties/is-hidden-test.ts on lines 128..141
test-app/tests/unit/-private/properties/is-visible-test.ts on lines 128..141

Similar blocks of code found in 2 locations. Consider refactoring.
Open

test('no value attributes', async function (assert) {
const page = create({
scope: 'span',
disabled: attribute('disabled'),
datatest: attribute('data-test'),
Severity: Major
Found in test-app/tests/unit/-private/properties/attribute-test.ts and 1 other location - About 3 hrs to fix
test-app/tests/unit/-private/properties/attribute-test.ts on lines 151..162

Similar blocks of code found in 2 locations. Consider refactoring.
Open

test('uppercase', async function (assert) {
const page = create({
scope: 'span',
disabled: attribute('DISABLED'),
withValueSpecified: attribute('DATA-TEST'),
Severity: Major
Found in test-app/tests/unit/-private/properties/attribute-test.ts and 1 other location - About 3 hrs to fix
test-app/tests/unit/-private/properties/attribute-test.ts on lines 138..149

Similar blocks of code found in 2 locations. Consider refactoring.
Open

test('resetScope param', async function (assert) {
const page = create({ scope: 'my-page' });
 
await render(hbs`
<span class="lorem">1</span>
Severity: Major
Found in test-app/tests/unit/extend/find-element-test.ts and 1 other location - About 3 hrs to fix
test-app/tests/unit/extend/find-element-with-assert-test.ts on lines 90..107

Similar blocks of code found in 2 locations. Consider refactoring.
Open

test('resetScope param', async function (assert) {
const page = create({ scope: 'my-page' });
 
await render(hbs`
<span class="lorem">1</span>
Severity: Major
Found in test-app/tests/unit/extend/find-element-with-assert-test.ts and 1 other location - About 3 hrs to fix
test-app/tests/unit/extend/find-element-test.ts on lines 74..91

Similar blocks of code found in 3 locations. Consider refactoring.
Open

test('looks for elements that are display none', async function (this: TestContext, assert) {
const page = create({
foo: contains('span'),
});
 
 
Severity: Major
Found in test-app/tests/unit/-private/properties/contains-test.ts and 2 other locations - About 3 hrs to fix
test-app/tests/unit/-private/properties/contains-test.ts on lines 8..17
test-app/tests/unit/-private/properties/contains-test.ts on lines 143..154

Similar blocks of code found in 3 locations. Consider refactoring.
Open

test('looks for elements that are visibility hidden', async function (this: TestContext, assert) {
const page = create({
foo: contains('span'),
});
 
 
Severity: Major
Found in test-app/tests/unit/-private/properties/contains-test.ts and 2 other locations - About 3 hrs to fix
test-app/tests/unit/-private/properties/contains-test.ts on lines 8..17
test-app/tests/unit/-private/properties/contains-test.ts on lines 156..167

Similar blocks of code found in 3 locations. Consider refactoring.
Open

test('returns true when the element contains the text', async function (this: TestContext, assert) {
const page = create({
foo: contains('span'),
});
 
 
Severity: Major
Found in test-app/tests/unit/-private/properties/contains-test.ts and 2 other locations - About 3 hrs to fix
test-app/tests/unit/-private/properties/contains-test.ts on lines 143..154
test-app/tests/unit/-private/properties/contains-test.ts on lines 156..167

Similar blocks of code found in 2 locations. Consider refactoring.
Open

test('multiple param', async function (assert) {
const page = create({});
 
await render(hbs`
<span class="lorem">1</span>
Severity: Major
Found in test-app/tests/unit/extend/find-element-with-assert-test.ts and 1 other location - About 3 hrs to fix
test-app/tests/unit/extend/find-element-test.ts on lines 177..192

Similar blocks of code found in 2 locations. Consider refactoring.
Open

test('multiple param', async function (assert) {
const page = create({});
 
await render(hbs`
<span class="lorem">1</span>
Severity: Major
Found in test-app/tests/unit/extend/find-element-test.ts and 1 other location - About 3 hrs to fix
test-app/tests/unit/extend/find-element-with-assert-test.ts on lines 193..208

Similar blocks of code found in 6 locations. Consider refactoring.
Open

test('contains param', async function (assert) {
const page = create({});
 
await render(hbs`
<span class="lorem" id="1"></span>
Severity: Major
Found in test-app/tests/unit/extend/find-element-test.ts and 5 other locations - About 2 hrs to fix
test-app/tests/unit/extend/find-element-test.ts on lines 54..72
test-app/tests/unit/extend/find-element-test.ts on lines 109..125
test-app/tests/unit/extend/find-element-with-assert-test.ts on lines 70..88
test-app/tests/unit/extend/find-element-with-assert-test.ts on lines 109..123
test-app/tests/unit/extend/find-element-with-assert-test.ts on lines 125..141

Similar blocks of code found in 6 locations. Consider refactoring.
Open

test('testContainer param', async function (assert) {
const page = create({});
 
await render(hbs`
<span class="ipsum">1</span>
Severity: Major
Found in test-app/tests/unit/extend/find-element-test.ts and 5 other locations - About 2 hrs to fix
test-app/tests/unit/extend/find-element-test.ts on lines 93..107
test-app/tests/unit/extend/find-element-test.ts on lines 109..125
test-app/tests/unit/extend/find-element-with-assert-test.ts on lines 70..88
test-app/tests/unit/extend/find-element-with-assert-test.ts on lines 109..123
test-app/tests/unit/extend/find-element-with-assert-test.ts on lines 125..141

Similar blocks of code found in 6 locations. Consider refactoring.
Open

test('testContainer param', async function (assert) {
const page = create({});
 
await render(hbs`
<span class="ipsum">1</span>
Severity: Major
Found in test-app/tests/unit/extend/find-element-with-assert-test.ts and 5 other locations - About 2 hrs to fix
test-app/tests/unit/extend/find-element-test.ts on lines 54..72
test-app/tests/unit/extend/find-element-test.ts on lines 93..107
test-app/tests/unit/extend/find-element-test.ts on lines 109..125
test-app/tests/unit/extend/find-element-with-assert-test.ts on lines 109..123
test-app/tests/unit/extend/find-element-with-assert-test.ts on lines 125..141

Similar blocks of code found in 6 locations. Consider refactoring.
Open

test('scope param', async function (assert) {
const page = create({});
 
await render(hbs`
<span class="lorem">1</span>
Severity: Major
Found in test-app/tests/unit/extend/find-element-with-assert-test.ts and 5 other locations - About 2 hrs to fix
test-app/tests/unit/extend/find-element-test.ts on lines 54..72
test-app/tests/unit/extend/find-element-test.ts on lines 93..107
test-app/tests/unit/extend/find-element-test.ts on lines 109..125
test-app/tests/unit/extend/find-element-with-assert-test.ts on lines 70..88
test-app/tests/unit/extend/find-element-with-assert-test.ts on lines 109..123

Similar blocks of code found in 4 locations. Consider refactoring.
Open

test('visible param', async function (assert) {
const page = create({});
 
await render(hbs`
<span class="lorem" style="display:none">1</span>
Severity: Major
Found in test-app/tests/unit/extend/find-element-with-assert-test.ts and 3 other locations - About 2 hrs to fix
test-app/tests/unit/extend/find-element-test.ts on lines 127..141
test-app/tests/unit/extend/find-element-test.ts on lines 160..175
test-app/tests/unit/extend/find-element-with-assert-test.ts on lines 176..191

Similar blocks of code found in 6 locations. Consider refactoring.
Open

test('contains param', async function (assert) {
const page = create({});
 
await render(hbs`
<span class="lorem" id="1"></span>
Severity: Major
Found in test-app/tests/unit/extend/find-element-with-assert-test.ts and 5 other locations - About 2 hrs to fix
test-app/tests/unit/extend/find-element-test.ts on lines 54..72
test-app/tests/unit/extend/find-element-test.ts on lines 93..107
test-app/tests/unit/extend/find-element-test.ts on lines 109..125
test-app/tests/unit/extend/find-element-with-assert-test.ts on lines 70..88
test-app/tests/unit/extend/find-element-with-assert-test.ts on lines 125..141

Similar blocks of code found in 3 locations. Consider refactoring.
Open

test('generates .isVisible', async function (this: TestContext, assert) {
const page = create({
scope: 'span',
foo: {},
});
Severity: Major
Found in test-app/tests/unit/-private/properties/dsl-test.ts and 2 other locations - About 2 hrs to fix
test-app/tests/unit/-private/properties/dsl-test.ts on lines 21..31
test-app/tests/unit/-private/properties/dsl-test.ts on lines 33..43

Similar blocks of code found in 3 locations. Consider refactoring.
Open

test('generates .isHidden', async function (this: TestContext, assert) {
const page = create({
scope: 'span',
foo: {},
});
Severity: Major
Found in test-app/tests/unit/-private/properties/dsl-test.ts and 2 other locations - About 2 hrs to fix
test-app/tests/unit/-private/properties/dsl-test.ts on lines 9..19
test-app/tests/unit/-private/properties/dsl-test.ts on lines 33..43

Similar blocks of code found in 6 locations. Consider refactoring.
Open

test('scope param', async function (assert) {
const page = create({});
 
await render(hbs`
<span class="lorem">1</span>
Severity: Major
Found in test-app/tests/unit/extend/find-element-test.ts and 5 other locations - About 2 hrs to fix
test-app/tests/unit/extend/find-element-test.ts on lines 54..72
test-app/tests/unit/extend/find-element-test.ts on lines 93..107
test-app/tests/unit/extend/find-element-with-assert-test.ts on lines 70..88
test-app/tests/unit/extend/find-element-with-assert-test.ts on lines 109..123
test-app/tests/unit/extend/find-element-with-assert-test.ts on lines 125..141

Similar blocks of code found in 3 locations. Consider refactoring.
Open

test('generates .isPresent', async function (this: TestContext, assert) {
const page = create({
scope: 'span',
foo: {},
});
Severity: Major
Found in test-app/tests/unit/-private/properties/dsl-test.ts and 2 other locations - About 2 hrs to fix
test-app/tests/unit/-private/properties/dsl-test.ts on lines 9..19
test-app/tests/unit/-private/properties/dsl-test.ts on lines 21..31
Severity
Category
Status
Source
Language