-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: non editable Abe data tags were improperly displayed in the editor
- Loading branch information
1 parent
5497ed3
commit cf46b79
Showing
6 changed files
with
87 additions
and
5 deletions.
There are no files selected for viewing
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,14 @@ | ||
|
||
{{abe type='data' key='stores' source='reference/category.json' editable='false'}} | ||
<!DOCTYPE html> | ||
<html> | ||
<head> | ||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> | ||
<meta charset="utf-8"> | ||
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"> | ||
<title>test</title> | ||
</head> | ||
<body> | ||
content | ||
</body> | ||
</html> |
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,60 @@ | ||
describe('Abe', function() { | ||
|
||
describe('data', function() { | ||
|
||
before(function(client, done) { | ||
done(); | ||
}); | ||
|
||
after(function(client, done) { | ||
client.end(function() { | ||
done(); | ||
}); | ||
}); | ||
|
||
afterEach(function(client, done) { | ||
done(); | ||
}); | ||
|
||
beforeEach(function(client, done) { | ||
done(); | ||
}); | ||
|
||
it('Create a autocomplete template post', function(client) { | ||
client | ||
.useXpath() | ||
.url('http://localhost:3003/abe/editor') | ||
.click('//*[@id="selectTemplate"]/option[3]') | ||
.waitForElementVisible("//div[@data-precontrib-templates='data']//input[@id='name']", 1000) | ||
.setValue("//div[@data-precontrib-templates='data']//input[@id='name']", 'data') | ||
.click("//button[@type='submit']") | ||
.pause(1000) | ||
.waitForElementVisible('//*[@id="abeForm"]', 2000) | ||
.assert.urlEquals("http://localhost:3003/abe/editor/data.html", "Clicked URL Matches with URL of the New Window"); | ||
}); | ||
|
||
it('Abe type data reference json', function(client) { | ||
client | ||
.useXpath() | ||
.url('http://localhost:3003/abe/editor/data.html') | ||
.waitForElementVisible('//body') | ||
.pause(1000) | ||
.expect.element("//form[@id='abeForm']//li[@class='active']/a").text.to.contain('slug'); | ||
}); | ||
|
||
|
||
it('The autocomplete article is deleted in the manager', function(client) { | ||
client | ||
.useXpath() | ||
.url('http://localhost:3003/abe/editor') | ||
.waitForElementVisible('//body') | ||
.pause(1000) | ||
.click("//table[@id='navigation-list']/tbody/tr[1]/td[7]/div/a") | ||
.pause(1000) | ||
.acceptAlert() | ||
.url('http://localhost:3003/abe/editor') | ||
.pause(2000) | ||
.expect.element("//table[@id='navigation-list']/tbody/tr[1]/td[2]/a").text.to.not.contain('/articles/ftest.html'); | ||
}); | ||
}); | ||
}); |